From 2db85110d79c5c29a2675ad7966a775edab2caf1 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 21 Dec 2020 00:01:43 -0500 Subject: [PATCH] add indent back in --- src/interaction/siWardrobe.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js index a69a342215e..e64fed6e126 100644 --- a/src/interaction/siWardrobe.js +++ b/src/interaction/siWardrobe.js @@ -120,10 +120,17 @@ App.UI.SlaveInteract.wardrobe = function(slave) { let label = document.createElement('div'); label.append(`Clothes: `); - let choice = App.UI.DOM.disabledLink(`${slave.clothes}`, [clothTooltip(`${slave.clothes}`)]); + let choice = App.UI.DOM.disabledLink(`${slave.clothes} `, [clothTooltip(`${slave.clothes}`)]); choice.style.fontWeight = "bold"; label.appendChild(choice); + if (slave.fuckdoll !== 0 || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit" || slave.clothes === "a cybersuit" || slave.clothes === "a comfortable bodysuit") { + if (V.seeImages === 1 && V.imageChoice === 1) { + // Color options + label.appendChild(colorOptions("clothingBaseColor")); + } + } + // Choose her own if (slave.clothes !== `choosing her own clothes`) { let choiceOptionsArray = []; @@ -134,13 +141,6 @@ App.UI.SlaveInteract.wardrobe = function(slave) { links = App.UI.DOM.appendNewElement("div", el, clothingSelection()); links.id = "clothing-selection"; } - if (slave.fuckdoll !== 0 || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit" || slave.clothes === "a cybersuit" || slave.clothes === "a comfortable bodysuit") { - if (V.seeImages === 1 && V.imageChoice === 1) { - // Color options - links = App.UI.DOM.appendNewElement("div", el, "Color: ", "choices"); - links.appendChild(colorOptions("clothingBaseColor")); - } - } const label = document.createElement('div'); label.append(`Collar: `); @@ -185,11 +185,11 @@ App.UI.SlaveInteract.wardrobe = function(slave) { // Sort array = array.sort((a, b) => (a.text > b.text) ? 1 : -1); - el.append("Choose clothing: "); + const choices = App.UI.DOM.appendNewElement("div", el, "Choose clothing: ", "choices"); if (array.length > 0) { - el.appendChild(generateRows(array, "clothes", true)); + choices.appendChild(generateRows(array, "clothes", true)); } else { - App.UI.DOM.appendNewElement("span", el, "No available clothing meets your criteria", "note"); + App.UI.DOM.appendNewElement("span", choices, "No available clothing meets your criteria", "note"); } return el; } @@ -215,11 +215,11 @@ App.UI.SlaveInteract.wardrobe = function(slave) { // Sort array = array.sort((a, b) => (a.text > b.text) ? 1 : -1); - el.append("Choose collar: "); + const choices = App.UI.DOM.appendNewElement("div", el, "Choose collar: ", "choices"); if (array.length > 0) { - el.appendChild(generateRows(array, "collar", true)); + choices.appendChild(generateRows(array, "collar", true)); } else { - App.UI.DOM.appendNewElement("span", el, "No available collar meets your criteria", "note"); + App.UI.DOM.appendNewElement("span", choices, "No available collar meets your criteria", "note"); } return el; } -- GitLab