Skip to content
Snippets Groups Projects
Commit 3aa24dbc authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'MoreSugarCube.State' into 'pregmod-master'

Additional MoreSugarCube.State's caught.

See merge request pregmodfan/fc-pregmod!1695
parents e32fbfa0 a70d0096
No related branches found
No related tags found
No related merge requests found
...@@ -319,7 +319,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.'' ...@@ -319,7 +319,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.''
<</if>> <</if>>
/* Display an HTML5 color picker */ /* Display an HTML5 color picker */
/* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */ /* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */
<<print '<input type="color" value="'+_clothingBaseColor+'" onInput="SugarCube.State.variables.activeSlave.clothingBaseColor = event.target.value;">'>> <<print '<input type="color" value="'+_clothingBaseColor+'" onInput="State.variables.activeSlave.clothingBaseColor = event.target.value;">'>>
<<link "use default color">> <<link "use default color">>
<<run delete $activeSlave.clothingBaseColor >> <<run delete $activeSlave.clothingBaseColor >>
/* reload passage to display everything correctly */ /* reload passage to display everything correctly */
...@@ -501,7 +501,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.'' ...@@ -501,7 +501,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.''
<</if>> <</if>>
/* Display an HTML5 color picker */ /* Display an HTML5 color picker */
/* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */ /* This is hackish due to direct accessment of SugarCube internal data structure. Improvements are welcome. */
<<print '<input type="color" value="'+_shoeColour+'" onInput="SugarCube.State.variables.activeSlave.shoeColor = event.target.value;">'>> <<print '<input type="color" value="'+_shoeColour+'" onInput="State.variables.activeSlave.shoeColor = event.target.value;">'>>
<<link "use default color">> <<link "use default color">>
<<run delete $activeSlave.shoeColor >> <<run delete $activeSlave.shoeColor >>
/* reload passage to display everything correctly */ /* reload passage to display everything correctly */
......
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