Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-12-11, 01:43 PM   #1
frohanss
A Cyclonian
AddOn Author - Click to view addons
Join Date: Mar 2011
Posts: 40
Show custom frame when having a target?

Im trying to create a panel that toggles on and off based on if i have a target or not. I just can't seem to get it to work.

Im using:
Code:
if (event == PLAYER_TARGET_CHANGED) then
    if (UnitExists("target")) then
	Target_Power:Show()
    else
	Target_Power:Hide()
    end
	end
Baisicly i whant the panel to only be shown when i have a target.


What am i doing wrong?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Show custom frame when having a target?


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