I'm trying to get the UI to unstow up when the player visits a certain passage - and stow itself again when they leave it. I can't seem to get the call to UI.Open to work. Anyone got an example that does work?
The UI.open() method is for opening the UI dialog. It has nothing to do with the UI bar. I'm unsure how you got the impression that it did from its documentation.
There's currently no specific API for controlling the (un)stowed state of the UI bar. As noted by greyelf, it's controlled by the presence/absence of the stowed class upon it.
Comments
You can do this either using the DOM (Classes) Macros or via Javascript.
1. Macros - The following example shows you how to use the addclass, removeclass and toggleclass macros:
2. Javascript: The follow show the equivalents of the above three macros:
There's currently no specific API for controlling the (un)stowed state of the UI bar. As noted by greyelf, it's controlled by the presence/absence of the stowed class upon it.
Got it working anyway, thanks.