Skip to content
Snippets Groups Projects
Commit 8c1ddc87 authored by ezsh's avatar ezsh
Browse files

Add event handlers for game options modifications

parent cfd56c21
Branches
Tags
No related merge requests found
...@@ -6,18 +6,24 @@ ...@@ -6,18 +6,24 @@
/* Don't remove these spans, it will break things. */ /* Don't remove these spans, it will break things. */
<<if _Pass != "End Week">> <<if _Pass != "End Week">>
<<if _Pass == "Main">> <<if _Pass == "Main">>
<strong> <span id="endWeekButton"> <strong>
<div><<link "$nextButton">><</link>> @@.cyan;[Ent]@@</div> <div id="endWeekButton"><<link "$nextButton">><</link>> @@.cyan;[Ent]@@</div>
</span> </strong> </strong>
<<if $rulesAssistantAuto == 1 && DefaultRulesError()>> <<if $rulesAssistantAuto == 1 && DefaultRulesError()>>
<div>@@.yellow;WARNING: Rules Assistant has rules with errors!@@</div> <div>@@.yellow;WARNING: Rules Assistant has rules with errors!@@</div>
<</if>> <</if>>
<<else>> <<else>>
<strong> <span id="nextButton"> <strong>
<<if $nextButton != " ">> <<if $nextButton != " ">>
<div><<link "$nextButton">> <<goto $nextLink>> <</link>> @@.cyan;[Space]@@</div> <div id="nextButton"><<link "$nextButton">>
<<if _passageSwitchHandler>>
<<run _passageSwitchHandler();>>
<<set _passageSwitchHandler = null>>
<</if>>
<<goto $nextLink>>
<</link>> @@.cyan;[Space]@@</div>
<</if>> <</if>>
</span> </strong> </strong>
<</if>> <</if>>
<</if>> <</if>>
<<script>> <<script>>
......
...@@ -14,9 +14,13 @@ App.EventHandlers = function() { ...@@ -14,9 +14,13 @@ App.EventHandlers = function() {
function storyReady() { function storyReady() {
} }
function optionsChanged() {
}
return { return {
onLoad: onLoad, onLoad: onLoad,
onSave: onSave, onSave: onSave,
storyReady: storyReady storyReady: storyReady,
optionsChanged: optionsChanged
}; };
}(); }();
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<<set $showEncyclopedia = 0>> <<set $showEncyclopedia = 0>>
<<set $nextButton = "Back", $nextLink = $storedLink>> <<set $nextButton = "Back", $nextLink = $storedLink>>
<<set _passageSwitchHandler = App.EventHandlers.optionsChanged>>
<<options $autosave>> <<options $autosave>>
End of week autosaving is currently End of week autosaving is currently
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment