Thread Tools Display Modes
11-06-08, 10:39 AM   #1
0Blackmage0
A Chromatic Dragonspawn
 
0Blackmage0's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2005
Posts: 192
eepanel Lua

Im looking for what Lua i could put in to have EEpanels show FrameX when there is a pet and Hide FrameX when there isnt. Thanks in advance
__________________


  Reply With Quote
11-06-08, 10:47 AM   #2
Taffu
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 149
Use the OnUpdate script:

Code:
local panel = <youreePanel#>
if ( HasPetUI() ) then
     panel:Show()
else
     panel:Hide()
end
  Reply With Quote
11-06-08, 10:53 AM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
nah, just parent the frame to your pet's unit frame or the pet bar.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-06-08, 02:26 PM   #4
Taffu
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 149
Originally Posted by Seerah View Post
nah, just parent the frame to your pet's unit frame or the pet bar.
Or that
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » eepanel Lua


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