Added autosave feature. When action is submitted it will save if the save setting is on and if the filename is set.

This commit is contained in:
ebolam
2022-01-20 07:46:34 -05:00
parent 9564ac1892
commit dffd00265b
2 changed files with 34 additions and 0 deletions

View File

@ -173,6 +173,17 @@ gensettingstf = [{
"step": 1,
"default": 0,
"tooltip": "Disables userscript generation modifiers."
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Auto Save",
"id": "autosave",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Whether the game is saved after each action."
}]
gensettingsik =[{
@ -295,6 +306,17 @@ gensettingsik =[{
"step": 1,
"default": 0,
"tooltip": "When enabled, the Memory text box in the Random Story dialog will be prefilled by default with your current story's memory instead of being empty."
},
{
"uitype": "toggle",
"unit": "bool",
"label": "Auto Save",
"id": "autosave",
"min": 0,
"max": 1,
"step": 1,
"default": 0,
"tooltip": "Whether the game is saved after each action."
}]
formatcontrols = [{