Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Calling the Save Menu in SugarCube 2

$
0
0
Is there a simple way to call the save system in Sugarcube 2 without using the sidebar?

There was an old thread (here) that indicated that this snippet would work from the StoryInit passage, but it seems to be out of date:
/% Special code that triggers at startup %/
<<script>>
	$("body").append("<button id='save-sub' style='position:fixed; top:0; right:0;'>Inspect saved games</button>");
	UISystem.addClickHandler("#save-sub", null, function () { UISystem.buildSaves(); });
<</script>>

Thanks! Sorry if I missed something in that thread... it went over my head quickly.

Viewing all articles
Browse latest Browse all 1844

Trending Articles