From e09833032080fef875f0efb3e9b3f74dfc0ff2b3 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Tue, 6 Apr 2021 17:43:19 -0400 Subject: [PATCH] color on off --- src/cheats/cheatEditArcology.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/cheats/cheatEditArcology.js b/src/cheats/cheatEditArcology.js index 7a1ea4d5dd7..c4258dd30cb 100644 --- a/src/cheats/cheatEditArcology.js +++ b/src/cheats/cheatEditArcology.js @@ -60,20 +60,16 @@ App.UI.Cheat.arcology = function(num) { if (arc.hasOwnProperty(`${FS}Research`)) { options.addOption(`${App.Data.FutureSociety.records[FS].noun} Research`, `${FS}Research`, arc) - .addValueList([ - ["Yes", 1], - ["No", 0], - ]); + .addValue("Yes", 1).on() + .addValue("No", 0).off(); } if (arc.hasOwnProperty(`${FS}Decoration`)) { options.addOption(`${App.Data.FutureSociety.records[FS].noun} decoration`, `${FS}Decoration`, arc).showTextBox(); } if (arc.hasOwnProperty(`${FS}SMR`)) { options.addOption(`${App.Data.FutureSociety.records[FS].noun} SMR`, `${FS}SMR`, arc) - .addValueList([ - ["Yes", 1], - ["No", 0], - ]); + .addValue("Yes", 1).on() + .addValue("No", 0).off(); } if (arc.hasOwnProperty(`${FS}Law`)) { options.addOption(`${App.Data.FutureSociety.records[FS].noun} law`, `${FS}Law`, arc).showTextBox(); -- GitLab