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.
Comments
Calling the save system can be done by making a button or link macro as found on;
https://twinery.org/forum/discussion/8037/twine-2-sugarcube-2-how
Adding will create a link you can use to open the save popup.