Skip to content
Snippets Groups Projects
Commit a70d0096 authored by j's avatar j
Browse files

Additional MoreSugarCube.State's caught.

parent 5ddae986
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@
if(id === 0) { return '<i>unknown</i>'; }
if(id === -1) {
/* The PC */
return tmpl.birthFullName(SugarCube.State.variables.PC) + ' (PC)';
return tmpl.birthFullName(State.variables.PC) + ' (PC)';
} else {
var parent = SugarCube.State.variables.genePool.find(function(s) { return s.ID === id; });
return (parent ? tmpl.birthFullName(parent) : '<i>missing</i>') + ' (' + id + ')';
......
......@@ -319,7 +319,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.''
<</if>>
/* Display an HTML5 color picker */
/* 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">>
<<run delete $activeSlave.clothingBaseColor >>
/* reload passage to display everything correctly */
......@@ -501,7 +501,7 @@ Clothes: ''<span id="clothes">$activeSlave.clothes</span>.''
<</if>>
/* Display an HTML5 color picker */
/* 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">>
<<run delete $activeSlave.shoeColor >>
/* 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