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.