Skip to content
Snippets Groups Projects
Commit 95b7e9d0 authored by Arkerthan's avatar Arkerthan
Browse files

Allow disabling of endweek save warning

parent 7ccc697f
No related branches found
No related tags found
No related merge requests found
...@@ -97,6 +97,7 @@ App.Data.defaultGameStateVariables = { ...@@ -97,6 +97,7 @@ App.Data.defaultGameStateVariables = {
inbreeding: 1, inbreeding: 1,
lastBDayEvent: -1, lastBDayEvent: -1,
lineSeparations: 1, lineSeparations: 1,
endweekSaveWarning: 1,
limitFamilies: 0, limitFamilies: 0,
makeDicks: 0, makeDicks: 0,
modRequestsAllowed: 1, modRequestsAllowed: 1,
......
...@@ -866,6 +866,9 @@ App.Intro.display = function(isIntro) { ...@@ -866,6 +866,9 @@ App.Intro.display = function(isIntro) {
options.addOption("Line separations are", "lineSeparations") options.addOption("Line separations are", "lineSeparations")
.addValue("Shown", 1).on().addValue("Hidden", 0).off(); .addValue("Shown", 1).on().addValue("Hidden", 0).off();
options.addOption("Warning on end week saving", "endweekSaveWarning")
.addValue("Shown", 1).on().addValue("Hidden", 0).off();
el.append(options.render()); el.append(options.render());
r = []; r = [];
......
...@@ -22,7 +22,7 @@ App.EventHandlers = function() { ...@@ -22,7 +22,7 @@ App.EventHandlers = function() {
* @param {TwineSugarCube.SaveObject} save * @param {TwineSugarCube.SaveObject} save
*/ */
function onSave(save) { function onSave(save) {
if (V.endweekFlag) { if (V.endweekFlag && V.endweekSaveWarning) {
$(document).one(':dialogclosed', () => { $(document).one(':dialogclosed', () => {
Dialog.setup("Saving during End Week"); Dialog.setup("Saving during End Week");
Dialog.append("<p>Saves created during End Week should <span class='warning bold'>ONLY</span> be loaded in the <span class='bold'>SAME</span> game version.</p><p>Please save on <span class='bold'>Main</span> or <span class='bold'>Options</span> if you plan on upgrading your game.</p>"); Dialog.append("<p>Saves created during End Week should <span class='warning bold'>ONLY</span> be loaded in the <span class='bold'>SAME</span> game version.</p><p>Please save on <span class='bold'>Main</span> or <span class='bold'>Options</span> if you plan on upgrading your game.</p>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment