Comments (7)
I agree that Harlowe (and Snowman) doesn't have an equivalent to that setting, or a Save UI for that matter, however there is currently a "Saving Games" recipe showing how to implement a primitive Save/Load UI using links.
I believe we implement a new recipe showing "passage tag based save limiting functionality" (similar to this issues) using the Harlowe (and maybe the Snowman) example(s) of "Saving Games", while using this Issue as a bases of the SugarCube implementation.
from twine-cookbook.
SugarCube already does this by calling UI.alert()
with the contents of the localized string l10nStrings.savesDisallowed
. If it's not showing up, then that's an issue for its tracker, not a recipe for the cookbook.
EDIT: It's entirely possible that I broke it at some point when fiddling with the Dialog
API.
Also. Please do go ahead and create an issue. Due to health issues, my computer time is still woefully limited at this point and it's time for me to turn back into a pumpkin.
from twine-cookbook.
It's possible that I started using this code prior to that implementation? Or it was broken when I started using SC, abut who knows how long ago that was now. I don't know that I've checked it without that code, variations of it are part of my boilerplate, so to speak. I'll double check it, though, and open an issue at your repo if it doesn't behave as expected.
Thanks for the info. I suspect that I just never checked outside of whatever version I was running when I needed this code.
from twine-cookbook.
@ChapelR: I won't re-open this issue, but I am going to add a note to write an entry on disabling the default save functionality in SugarCube. We aren't covering that currently, and I'd like to make sure we have something on that. Thanks for submitting this and sparking the idea for another entry!
from twine-cookbook.
from twine-cookbook.
@tmedwards
This suggested recipe did two things, and If I understand the previous comments correctly you are stating that point 2 should automatically occur:
- Conditionally disabled saving based on the tags assigned to the current Passage.
- Displayed an alert to let the end-user know they can't save while
isAllowed
is false.
Isn't the functionality of point 1 still a valid reason for implementing this suggestion (excluding the notification part) as a recipe? Or am I misunderstanding something?
from twine-cookbook.
Frankly, using passage tags is probably the most obvious (and common) way to use Config.saves.isAllowed
—I know I've given the example before. I'm not sure it's either uncommon or unique enough to require a cookbook entry. Certainly, it never occurred to me at the time.
I suppose a case could be made that Config.saves.isAllowed
itself could use an entry, however, it's SugarCube specific enough that, again, I'm unsure it deserves an entry. I mean, there's no real analog in any of the other story formats. Are we doing single story format recipes now?
Regardless. I'm not against it if the consensus is that Config.saves.isAllowed
would make for a good candidate for an entry. It's entirely possible I cast too broad a net.
from twine-cookbook.
Related Issues (20)
- Downloading issue at the twinery HOT 6
- "Typewriter Effect" for SugarCube needs an update HOT 3
- Add Twine logo
- Harmonize (match) colors of Cookbook to online editor HOT 1
- Add Twine logo to Cookbook HOT 1
- Some pages on twinery.org/cookbook/ do not work HOT 1
- Harlowe: adding functionality
- Harlowe: storylets
- Harlowe: JS no longer works in macros HOT 1
- Inform Recipe Book broken link HOT 1
- Page not found messages HOT 1
- Markdown conversion issue on Twine 1 formatting page HOT 1
- Create Borogove.io instruction page
- Wrong Example File in "Headers and Footers"
- Twine 2 Editor section is out-of-date HOT 1
- Error: JS -> Storyformats -> SugarCube -> `windows.setup`
- Proposal for 2.2 version and tagging
- Allow all text on Proof screen to be copied HOT 3
- Accessing the html code for a Twine story without an external download
- Obsolete code in snowman left sidebar tutorial
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twine-cookbook.