View Single Post
  #1  
Unread 11-28-2007, 03:09 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default Variable question

Is it possible to use a variable inside of a location string?

ie:
Code:
Parent.Parent.(OBJECT).visible=true  OBJECT=name
Where OBJECT=name is getting the name of the current, say, button. And activating a page with the same name, in a different part of the XML tree.

So far I've managed to crash the UIBuilder, or have nothing happen

*edit*
My workaround for now, which works fine, is to just use a slightly different method. Original Info Center uses a slew of buttons that each hide every related page, and then unhide the appropriate one. This is just way too many lines of script.
So, I decided to just make a hidden button that does this same thing, which when activated hides all the pages, then deactivates itself. This way, all buttons only need to set a variable with the correct name, and then activate the hidden button.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>

Last edited by Drumstix42 : 11-28-2007 at 03:27 AM.
Reply With Quote