Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-16-10, 03:51 AM   #1
Nytalgia
A Murloc Raider
Join Date: Feb 2010
Posts: 6
"If Death Knight"; If Pet Alive...

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)
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » "If Death Knight"; If Pet Alive...


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off