Hi, I want to point the player to the “Toggle the UI bar” button on the left side of the screen when the UI bar is stowed and the player needs to unstow it. How can I get that graphic in my main passage text?
The icon font file used for the UI bar icons comes with Sugarcube, so you can right-click and inspect the button in your browser to see what the name of the icon on it is, then in your passage text put something like this:
Then you can style the span #buttonIcon in the CSS stylesheet to have a border and padding to make it look like the actual button on the UI bar.
I think the icon names I used in the example code above are correct, but it’s been a while since I did anything with the built in Sugarcube icons, so I could be mistaken.
<<if $present>>
//To present something to someone,
<<if setup.UiBarIsStowed()>>
expand the sidebar by clicking the <button id="ui-bar-toggle-stowed"></button> button, and
<</if>>
make your selection from your inventory at the top of the sidebar.//
<</if>>