diff --git a/src/interaction/siUtilities.js b/src/interaction/siUtilities.js index c95185faa662bf01efbf4e2f5def262bd2095d7f..4592d2fa6f1479e1a753d974228a297bd8f33b06 100644 --- a/src/interaction/siUtilities.js +++ b/src/interaction/siUtilities.js @@ -32,6 +32,7 @@ App.UI.SlaveInteract.placeInLine = function(slave) { * @property {object} [update] - properties to be merged into global state * @property {string} [disabled] - text indicating why the option is unavailable * @property {string} [note] + * @property {string} [slutty] */ /** Generate a row of choices @@ -60,12 +61,20 @@ App.UI.SlaveInteract.generateRows = function(array, slave, category, accessCheck link = App.UI.DOM.disabledLink(item.text, [unlocked]); } else { link = document.createElement('span'); + const toolTips = []; + if (item.hasOwnProperty("slutty")) { + toolTips.push(item.slutty ? 'Slutty' : 'Modest'); + } + console.log(item); // Set up the link link.appendChild( App.UI.DOM.link( `${item.text} `, () => { click(item); }, + [], + "", + toolTips.join(" ") ) ); diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js index 0fcb96a81017fca80c4662254497ad40db04989d..4e8eca0558c921efac540bd55d3559f823f32579 100644 --- a/src/interaction/siWardrobe.js +++ b/src/interaction/siWardrobe.js @@ -57,7 +57,8 @@ App.UI.SlaveInteract.wardrobe = function(slave) { clothingOption = { text: item.name, updateSlave: {clothes: item.value, choosesOwnClothes: 0}, - FS: item.fs + FS: item.fs, + slutty: item.slutty }; niceOptionsArray.push(clothingOption); }); @@ -66,7 +67,8 @@ App.UI.SlaveInteract.wardrobe = function(slave) { clothingOption = { text: item.name, updateSlave: {clothes: item.value, choosesOwnClothes: 0}, - FS: item.fs + FS: item.fs, + slutty: item.slutty }; if (item.value !== "choosing her own clothes") { harshOptionsArray.push(clothingOption);