From 3610a89b9be3c083d7249f74cc261df8447fdfdc Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Wed, 7 Oct 2020 16:36:12 -0400
Subject: [PATCH] fix refresh

---
 src/interaction/siWardrobe.js | 66 +++++++++++++++++------------------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/src/interaction/siWardrobe.js b/src/interaction/siWardrobe.js
index b25d3c759c9..e050484093d 100644
--- a/src/interaction/siWardrobe.js
+++ b/src/interaction/siWardrobe.js
@@ -47,7 +47,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				if (slave.clothes !== `choosing her own clothes`) {
 					let choiceOptionsArray = [];
 					choiceOptionsArray.push({text: `Let ${him} choose`, updateSlave: {clothes: `choosing her own clothes`, choosesOwnClothes: 1}});
-					label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "clothes", false));
+					label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "clothes", false, refresh));
 				}
 				el.appendChild(label);
 
@@ -85,14 +85,14 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				links = document.createElement('div');
 				links.className = "choices";
 				links.append(`Nice: `);
-				links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "clothes", true));
+				links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "clothes", true, refresh));
 				el.appendChild(links);
 
 				// Harsh options
 				links = document.createElement('div');
 				links.className = "choices";
 				links.append(`Harsh: `);
-				links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "clothes", true));
+				links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "clothes", true, refresh));
 				el.appendChild(links);
 			}
 			if (slave.fuckdoll !== 0 || slave.clothes === "restrictive latex" || slave.clothes === "a latex catsuit" || slave.clothes === "a cybersuit" || slave.clothes === "a comfortable bodysuit") {
@@ -101,7 +101,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 					links = document.createElement('div');
 					links.className = "choices";
 					links.append(`Color: `);
-					links.appendChild(App.UI.Wardrobe.colorOptions(slave, "clothingBaseColor"));
+					links.appendChild(colorOptions("clothingBaseColor"));
 					el.appendChild(links);
 				}
 			}
@@ -128,7 +128,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.collar !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {collar: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "collar", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "collar", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -164,14 +164,14 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			let links = document.createElement('div');
 			links.className = "choices";
 			links.append(`Nice: `);
-			links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "collar", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(niceOptionsArray, slave, "collar", true, refresh));
 			el.appendChild(links);
 
 			// Harsh options
 			links = document.createElement('div');
 			links.className = "choices";
 			links.append(`Harsh: `);
-			links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "collar", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(harshOptionsArray, slave, "collar", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -195,7 +195,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.faceAccessory !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {faceAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "faceAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "faceAccessory", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -217,7 +217,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "faceAccessory", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "faceAccessory", true, refresh));
 			el.appendChild(links);
 
 			if (slave.eyewear === "corrective glasses" || slave.eyewear === "glasses" || slave.eyewear === "blurring glasses" || slave.faceAccessory === "porcelain mask") {
@@ -225,7 +225,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				links = document.createElement('div');
 				links.className = "choices";
 				links.append(`Color: `);
-				links.appendChild(App.UI.Wardrobe.colorOptions(slave, "glassesColor"));
+				links.appendChild(colorOptions("glassesColor"));
 				let note = document.createElement('span');
 				note.className = "note";
 				note.textContent = ` Only glasses and porcelain masks support a custom color. If both are worn, they will share the same color.`;
@@ -254,7 +254,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.mouthAccessory !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {mouthAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "mouthAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "mouthAccessory", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -277,7 +277,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "mouthAccessory", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "mouthAccessory", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -304,7 +304,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Choose her own
 			if (slave.armAccessory !== "none") {
 				array.push({text: `None`, updateSlave: {armAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -315,7 +315,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				{text: "Hand gloves", updateSlave: {armAccessory: "hand gloves"}},
 				{text: "Elbow gloves", updateSlave: {armAccessory: "elbow gloves"}}
 			];
-			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false));
+			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "armAccessory", false, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -340,7 +340,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.shoes !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {shoes: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "shoes", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "shoes", false, refresh));
 			}
 			*/
 			el.appendChild(label);
@@ -363,7 +363,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "shoes", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "shoes", true, refresh));
 			el.appendChild(links);
 
 			if (V.seeImages === 1 && V.imageChoice === 1 && slave.shoes !== "none") {
@@ -371,7 +371,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				links = document.createElement('div');
 				links.className = "choices";
 				links.append(`Color: `);
-				links.appendChild(App.UI.Wardrobe.colorOptions(slave, "shoeColor"));
+				links.appendChild(colorOptions("shoeColor"));
 				el.appendChild(links);
 			}
 
@@ -398,7 +398,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Choose her own
 			if (slave.legAccessory !== "none") {
 				array.push({text: `None`, updateSlave: {legAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -409,7 +409,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 				{text: "Short stockings", updateSlave: {legAccessory: "short stockings"}},
 				{text: "Long stockings", updateSlave: {legAccessory: "long stockings"}}
 			];
-			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false));
+			links.appendChild(App.UI.SlaveInteract.generateRows(array, slave, "legAccessory", false, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -452,7 +452,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 
 			// Choose her own
 			if (slave.bellyAccessory !== `none`) {
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "bellyAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "bellyAccessory", false, refresh));
 			}
 
 			el.appendChild(label);
@@ -460,7 +460,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "bellyAccessory", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "bellyAccessory", true, refresh));
 			if (slave.pregKnown === 1) {
 				let note = document.createElement('span');
 				note.className = "note";
@@ -491,7 +491,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.buttplug !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {buttplug: `none`, buttplugAttachment: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplug", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplug", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -516,7 +516,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplug", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplug", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -539,7 +539,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.buttplugAttachment !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {buttplugAttachment: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplugAttachment", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "buttplugAttachment", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -564,7 +564,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplugAttachment", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "buttplugAttachment", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -590,7 +590,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.vaginalAccessory !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {vaginalAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAccessory", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -615,7 +615,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAccessory", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAccessory", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -638,7 +638,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.vaginalAttachment !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {vaginalAttachment: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAttachment", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "vaginalAttachment", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -663,7 +663,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAttachment", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "vaginalAttachment", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -687,7 +687,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			if (slave.dickAccessory !== `none`) {
 				let choiceOptionsArray = [];
 				choiceOptionsArray.push({text: `None`, updateSlave: {dickAccessory: `none`}});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "dickAccessory", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "dickAccessory", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -712,7 +712,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "dickAccessory", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "dickAccessory", true, refresh));
 			el.appendChild(links);
 
 			return el;
@@ -764,7 +764,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 						chastityVagina: 0
 					}
 				});
-				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "chastity", false));
+				label.appendChild(App.UI.SlaveInteract.generateRows(choiceOptionsArray, slave, "chastity", false, refresh));
 			}
 			el.appendChild(label);
 
@@ -790,7 +790,7 @@ App.UI.SlaveInteract.wardrobe = function(slave) {
 			// Options
 			let links = document.createElement('div');
 			links.className = "choices";
-			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "chastity", true));
+			links.appendChild(App.UI.SlaveInteract.generateRows(optionsArray, slave, "chastity", true, refresh));
 			el.appendChild(links);
 
 			return el;
-- 
GitLab