EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   XML Modification Help & Info (https://www.eq2interface.com/forums/forumdisplay.php?f=22)
-   -   Anyone know about Event Properties: OnActivate, OnDisable, ...? (https://www.eq2interface.com/forums/showthread.php?t=845)

Selae 02-07-2005 10:22 AM

ok pardon my lack of knowledge, I try to pull what I can read and what I can see from examples to get the jist of things... lets see if I kinda get this...

If I wanted a button on a page that hides that page's parent and opens another page and its parent, would the following be on the right track?

OnPress="parent.playerstats.visible=false 'parent.Personatwo.visible=true'"

where the structure is like:
root>MainHUD>Persona>playerstats/Personatwo

and the button (and its reversed counterpart) is on the playerstats and Personatwo pages trying to hide playerstats and reveal Personatwo.

-Selae

Quib 02-07-2005 10:35 AM

Quote:

Originally Posted by Selae
OnPress="parent.playerstats.visible=false 'parent.Personatwo.visible=true'"

where the structure is like:
root>MainHUD>Persona>playerstats/Personatwo

and the button (and its reversed counterpart) is on the playerstats and Personatwo pages trying to hide playerstats and reveal Personatwo.

Dump the apostrophes; you only need those if declaring a new value that contains spaces (like value='value with spaces'). Other than that, looks good to me.

Quib

Drumstix42 02-07-2005 01:07 PM

So besides the whole parenthasis thing, did anyone try what I suggested?

Sixes 04-03-2005 07:13 AM

Quote:

Originally Posted by Eloa
OnPress="parent.BLARG.opacity=(parent.BLARG.opacity-0.05)" works.

Does anyone know if it's possible to get a second level of indirection? For example:
<Text Name="Foo">BLARG</Text>
...
OnPress="parent.Blarg.opacity=(parent.(parent.Foo.Text).opacity-0.05)"

I've not been able to make this work but I may be missing something. At least I hope I am.

Sixes

Zonx 04-03-2005 02:05 PM

So far noone has gotten any form of concatination or nested variables working. This includes paths with variable segments.

In all tests I've run, it either reads the entire thing as a string with no variable interpritation at all, or it reads the first portion as a variable clipped where the second variable begins.


All times are GMT -5. The time now is 08:17 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI