EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 07-24-2010, 09:04 PM
Draakthor's Avatar
Draakthor Draakthor is offline
A Crazed Gnoll
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 22
Default Scripting issue(s)

I've been beating my head against the desk with this for hours now, and could use another set or two of eyes/brains.

I'm trying to add class detection to Dragowulf's SpellTimer Window. Basically, I'm setting it up for use by up to five different classes. I added a text object to hold the subclass name for comparison, and five hidden buttons with the scripts to copy data into the working set.

The gist of each button's script is (OnPress):
Code:
Parent.SpellTimerData.1.SpellName=Parent.ClassSpellData.A.1.SpellName
Parent.SpellTimerData.2.SpellName=Parent.ClassSpellData.A.2.SpellName
Parent.SpellTimerData.3.SpellName=Parent.ClassSpellData.A.3.SpellName
...repeated through 15. SpellTimerData is the 'working set' from Dragowulf's original code, which I haven't modified in any way (as far as I know); and ClassSpellData is the new set I added. There's one button per class, A through E, to reduce the workload.

I seem to have figured out the class detection part, but apparently the data getting put into the working set is "Parent.ClassSpellData.A.1.SpellName" and so forth, rather than the contents of that property.

A slightly less frustrating problem is getting the buttons to activate. OnPress should be triggered by Buttonname.Activated=true, correct?

If looking at the actual files would help more, links to both are below (the data is in a separate file for easy modification).
main xml
data xml
Reply With Quote
 



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
Forum Jump


All times are GMT -5. The time now is 03:26 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI