Quote:
Originally Posted by Deathbane27
Unfortunately I don't think there's an "if" statement. OnPress="if(parent.Test.visible==true)visible=false" hides the button whether Test is visible or not.
|
I haven't read through all of this thread but it just came to my attention this post... I was just thinking... heh (amazing I know)
There's another way to do IF statements in coding. Maybe there's some variation that'll work with the EQ2 XML...
Code:
OnPress="parent.Test.visible==true?visible=false:visible:true"
I don't have anything to test it out... but maybe someone could try it.
Or maybe:
Code:
OnPress="(parent.Test.visible==true)?(visible=false):(visible:true)"
(I don't really have a grasp on where to use parenthasis in the EQ2 XML coding) *note* I dunno what's up with the random spaces, they're just showing that way /shrug