make blizz frames appear when damaged
so i want to make the blizz player,target,and pet frames disapear when im out of combat but also have my player frame appear when im damaged.
so the code i have here can hide them out of combat but i dont know what to put to make it appear when im damaged also.
im also trying to make a toggle switch that if i need to make them visible i can press a macro to unhide and hide manually.
RegisterStateDriver(PlayerFrame,"visibility","[combat][exists] show; hide")
RegisterStateDriver(TargetFrame,"visibility","[combat][exists] show; hide")
RegisterStateDriver(PetFrame,"visibility","[combat,@pet,exists] show;hide")
thats what i got so far after searching the internet for a solution for hours.
help me o lua gods your my only hope.
|