Thread Tools Display Modes
01-07-06, 03:11 PM   #1
Chandaman
A Defias Bandit
Join Date: Jan 2006
Posts: 3
DART: Switch textures on event?

Just a quick question, is it possible to have a texture switch to another one upon an event occuring?

I'm building up my UI with some custom textures. Right now I have one set up which is mainly green, and I thought about using an identical texture but mainly red, then have them switch when in and out of combat.

Hopefully the script to do this is simple...
  Reply With Quote
01-07-06, 04:26 PM   #2
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
OnLoad:
this:RegisterEvent("PLAYER_REGEN_ENABLED");
this:RegisterEvent("PLAYER_REGEN_DISABLED");
this:RegisterEvent("PLAYER_ENTER_COMBAT");
this:RegisterEvent("PLAYER_LEAVE_COMBAT");
this:RegisterEvent("PLAYER_ENTERING_WORLD");

OnEvent:
if DL_INCOMBAT then
DART_Texture(ti, "full filepath and name of the combat texture");
else
DART_Texture(ti, "full filepath and name of the non-combat texture");
end

All \ in the filepath must be typed as \\. For example: "Interface\\AddOns\\DiscordArt\\CustomTextures\\mytexture"
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote
01-07-06, 04:58 PM   #3
Chandaman
A Defias Bandit
Join Date: Jan 2006
Posts: 3
That sure did it, works like a charm. Thanks a lot!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » DART: Switch textures on event?


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