diff --git a/src/uncategorized/wardrobeUse.tw b/src/uncategorized/wardrobeUse.tw index 21166aaaa22572c014a5047deba70be5ef947834..2ba5d83912171aabd90cede49829420f95fb0b21 100644 --- a/src/uncategorized/wardrobeUse.tw +++ b/src/uncategorized/wardrobeUse.tw @@ -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 */