0 votes
by (690 points)
This arrow let's you cheat the game by going back a frame and refreshing the (random:) and (either:) rolls. I want to get rid of this nuisance, but can't figure out how...

1 Answer

+2 votes
by (149k points)
selected by
 
Best answer

If you use your web-browser's built-in Web Developer tools to Inspect that area of the Harlowe sidebar you will learn that the HTML used looks something like the following.

<tw-sidebar>
	<tw-icon tabindex="0" class="undo" title="Undo">↶</tw-icon>
	<tw-icon tabindex="0" class="redo" title="Redo" style="visibility: hidden;">↷</tw-icon>
</tw-sidebar>

You can use CSS within your Story Stylesheet area to target the tw-sidebar element and to change that element's display property to none.

tw-sidebar {
	display: none;
}

 

by (690 points)
I'll try that, thanks

(Addendum)

Will I have to do that to every passage, or just the starting passage?
by (149k points)

Will I have to do that to every passage, or just the starting passage?

Placing that CSS in your story's Story Stylesheet area will effect every Passage shown to the Reader.

by (110 points)
Thank you for your answer, greyelf. That's definitely effective.

Is there a way to disable the undo button only in select passages? I'm in Twine 2.0.11 using Harlowe and I would like to disable the back button for every passage except for one. Apologies if you've answered this elsewhere, I haven't been able to find a solution for this specific issue.
by (1.1k points)

The (undo:) docs suggest that you can (in a header-tagged passage) use the following to clear the sidebar:

(replace: ?Sidebar)[]

So you should be able to use that conditionally?

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.
...