diff --git a/src/uncategorized/newGamePlus.tw b/src/uncategorized/newGamePlus.tw index 224ad3c3b526a143a50cff337ac5f81c91a8df15..3eb8bf2e8ce3a54319bb5e9242391a2640334fd0 100644 --- a/src/uncategorized/newGamePlus.tw +++ b/src/uncategorized/newGamePlus.tw @@ -50,22 +50,48 @@ You <<if $cash >= _fee>>have<<else>>lack<</if>> the funds to bring more than $sl <<if $cheatMode == 1>> <<link "DEBUG: Add all slaves to import list" "New Game Plus">> <<for _ngi = 0; _ngi < $slaves.length; _ngi++>> <<= assignJob($slaves[_ngi], "be imported")>> <</for>> <</link>> <br> <</if>> Select up to $slavesToImportMax slaves to be imported into a new game and then click [[here.|init][$saveImported = 1,$oldCareer = "undefined",$slavesToImport = 0]] -<<if $slavesToImport > 0>> <br><br>'' - <<if $slavesToImport === 1>> - This slave - <<else>> - These slaves - <</if>> - will be imported into the new game'': - <<if $slavesToImport >= $slavesToImportMax>> - //Current slave import capacity exceded.// - <</if>> - <<set $Flag = 1>> <<include "Slave Summary">> -<</if>> -<<if $slavesToImport >= $slavesToImportMax>> + +<body> + +<div class="tab"> + <button class="tablinks" onclick="opentab(event, 'assign')" id="tab assign">Import a slave</button> + <button class="tablinks" onclick="opentab(event, 'remove')" id="tab remove">Remove from import</button> +</div> + +<div id="remove" class="tabcontent"> + <div class="content"> + <<if $slavesToImport > 0>>'' + <<if $slavesToImport === 1>> + This slave + <<else>> + These slaves + <</if>> + will be imported into the new game'': + <<if $slavesToImport >= $slavesToImportMax>> + //Current slave import capacity exceded.// + <</if>> + <<set $Flag = 1>> <<include "Slave Summary">> + <</if>> + </div> +</div> + +<div id="assign" class="tabcontent"> + <div class="content"> + <<if $slavesToImport >= $slavesToImportMax>> + <<else>> + <<if $slaves.length > $slavesToImport>> + ''These slaves are available to be imported into the new game:'' + <<set $Flag = 0>> <<include "Slave Summary">> + <</if>> + <</if>> + </div> +</div> + + +<<if ($tabChoice.NewGamePlus == "remove")>> + <script>document.getElementById("tab remove").click();</script> <<else>> - <<if $slaves.length > $slavesToImport>> <br><br> - ''These slaves are available to be imported into the new game:'' - <<set $Flag = 0>> <<include "Slave Summary">> - <</if>> -<</if>> \ No newline at end of file + <script>document.getElementById("tab assign").click();</script> +<</if>> + +</body> \ No newline at end of file