Thread Tools Display Modes
03-18-06, 12:45 PM   #1
123noob
A Frostmaul Preserver
 
123noob's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 256
Toggling 2 texture when target is true or not

So I have 2 textures where one is just a background and the other is a frame for target. Can you tell me how to toggle the textures to change when I have a target selected?
  Reply With Quote
03-19-06, 08:04 AM   #2
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
OnLoad:
this:RegisterEvent("PLAYER_TARGET_CHANGED")

OnEvent:
if UnitName("target") then
DART_Show(#);
DART_Hide(#);
else
DART_Show(#);
DART_Hide(#);
end

Change # to the id of the texture to show or hide.
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote
03-19-06, 02:28 PM   #3
123noob
A Frostmaul Preserver
 
123noob's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 256
Thz Loz... and it b/c of ur mods that brought me back into WOW after 3 months quiting ghahahha... i mean i should say... dam u LOZ for bringing me back into the no life zone
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » Toggling 2 texture when target is true or not


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