i was wondering if it was possible to Unstow the UIbar, then disable stowing and disable the back button, all within a single passage.
Then afterwards re-enable stowing and the back button as a feature in a new passage.
The reason i need this, is because i am making a combat system. It's nice to have the back button as a feature when navigating the story sequences of a twine story, but not so smart when in combat.
Unstowing is because i want health and such to be kept in the UI bar, and i want to make it very clear to the player that the bar is important during combat.
The UIBar API section of the documentation explains how to use the UIBar.unstow() function to unstow the side-bar, you would generally use a <<script>> macro to call it when used within a Passage: ... you could combine the above with a <<link>> macro to both send the Reader to the first Passage of your Combat System while also unstowing the side-bar like so.
There are a number of different ways to hide the ui-bar's tray, on of the simplest is to assign a passage tag to each of the Passage's you don't want the tray to be visible in and then use a CSS selector based on the name of the tag to hide that element. This CSS would need to be placed within your story's Story Stylesheet area.
eg. Assuming you assign the relevant passage(s) a tag of no-tray then the related CSS could look the following:
Sorry! It's correct that i use SugarCube 2.18.0
Thanks for the help! It works perfectly