0 votes
by (180 points)
I am writing a story where I want the main focus to be solely on the text. Currently I have the default sidebar to the left, but it takes up too much space and is distracting in my opinion, so I would like to move it to the top and for it to be small so it takes up minimal space. I know next to nothing about writing code so does anyone know if there's any way that I could do this?

2 Answers

0 votes
by (880 points)

I can't help with moving the UI sidebar to the top, but have you considered minimizing it at the side where it is?

When editing with Twine2, open the menu at the left (select the upward pointing triangle), and select the entry "Edit Story Javascript". Insert the text below. The UI sidebar will be shown as a thin vertical bar along the left edge of the browser window where the story is run. Only the "expand" icon will be shown at the top of that bar. This is documented at https://www.motoslave.net/sugarcube/2/docs/#config-api-ui

// As a boolean; always start stowed
Config.ui.stowBarInitially = true;
by (180 points)
Yes, I actually tried that option after posting this question. After thinking about it in depth, however, I felt that it wasn't a good solution to my issue. If readers want to save or go back in the story, since it will be novel length, they will still open it and most likely keep it open as they read. This is why I was hoping to keep the options visible and easily accessible without having to stow/unstow the sidebar.
0 votes
by (149k points)

If you are unhappy with the layout of the SugarCube 2's default User Interface then you can use the StoryInterface special passage to define your own custom one.

Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.