I've got a simple Problem at my interface..
I created some panels like in alekk ui, but one of them should only be activated if the character's pet is alive and the other should only be activated if the character got a stance bar with variable size...
How can i tell wow: "If Character is Druid, do panel druid stance bar", and so on?
How to: "If pet is alive, create pet panel, if pet is dismissed or dead, erase pet panel"
The Bars inside the panels are from Bartender.
I post the 2 postitions and my lua code for them:
--PetBar
CreatePanel("aPanels_PetBar01",0,0,218,31,background,border,"BOTTOMRIGHT","TOPRIGHT","aPanels_MButtons01",UIParent)
CreatePanel("aPanels_PetBar02",0,0,218,31,background,border,"BOTTOMRIGHT","TOPRIGHT","aPanels_MButtons01",UIParent)
--DruidStanceBar
CreatePanel("aPanels_StanceBar01",0,0,114,31,background,border,"BOTTOMLEFT","TOPLEFT","aPanels_MButtons01",UIParent)
CreatePanel("aPanels_StanceBar02",0,0,114,31,background,border,"BOTTOMLEFT","TOPLEFT","aPanels_MButtons01",UIParent)