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
  #9  
Unread 09-07-2009, 01:49 AM
EQAditu's Avatar
EQAditu EQAditu is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Mar 2005
Server: Permafrost
Posts: 256
Default

There's not much you can do about the group members repositioning themselves. I ran into that issue as well.

http://www.eq2interface.com/forums/s...ad.php?t=12321

You can always put the player as the sixth slot instead of the first.

The parent stuff is just the hierarchical relationship of the XML elements and attributes.

<Page Name="One" A="1" B="2">
___<Page Name="Two" A="7" B="8" OnShow="say A Parent.A Parent.Two.B" />
</Page>


The above OnShow event will say in chat, "7 1 8". The UI scripting will assume a word is a variable name unless it is undefined, then it will be text. So A ends up referring to the A attribute within its own XML node. Parent means it wants to look at the node's parent object; so Parent.A is the A attribute of the Parent node. The last example is simply convoluted... it references the parent, but then specifies itself by name. So Parent.Two.B is the same as simply B within the context of itself.

Feel free to say that was confusing and I'll think of some different examples. But if you understand... the entire UI is set up this way. You can go upwards into the hierarchy into other windows your mod doesn't even own. Though at run-time the top XML nodes will be merged into one... I don't remember the name, but gm9 would mention it every so often. (How he knows, I have no idea)
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 09:56 AM.


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