Thread Tools Display Modes
03-17-06, 10:58 AM   #1
frukt
A Defias Bandit
Join Date: Mar 2006
Posts: 2
Raidwindow using DART?

Heya, I've got a burning desire for making some kind of gfx enhanced raidwindow, and from what i've read about DART this should be doable.

My problem remains tho; I have added all graphics needed for this window, and now want the textures to hide when not in a raid, and be shown when there is a raid.
On the script section in DART i've added this:

OnLoad:

this:RegisterEvent("PARTY_MEMBERS_CHANGED");

OnEvent:

if GetNumPartyMembers() > 0 then
DART_Show(Your Texture Name);
else
DART_Hide(Your Texture Name);
end

Am I missing something completely? Since at the moment this does nothing to the textures whether u're in a party or not.

EDIT: Ok, I've sorted this, and ofc, at least 1 new problem occurs. Is there an event for when a raid is started? Realized it was rather inconvenient to make the textures show as soon as there is a party, when I wanted a raid window from the start.

Thanks, again,
-Kim

Last edited by frukt : 03-17-06 at 11:33 AM.
  Reply With Quote
03-17-06, 12:25 PM   #2
lilcure
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Feb 2005
Posts: 19
Why not use GetNumRaidMembers() instead and leave the rest of the code the same. As for trigger when a raid starts no, but there is RAID_ROSTER_UPDATE that fires when someone joins leaves goes LD or changes groups/role in the raid. Hope that helps.
__________________

My Interface Portal
  Reply With Quote
03-17-06, 03:23 PM   #3
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
OnLoad:
this:RegisterEvent("RAID_ROSTER_UPDATE")

OnEvent:
if GetNumRaidMembers() > 0 then
DART_Show(ti)
else
DART_Hide(ti)
end
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote
03-19-06, 06:41 AM   #4
frukt
A Defias Bandit
Join Date: Mar 2006
Posts: 2
**

Thanks guys, u're stars!

-Kim
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » Raidwindow using DART?


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