Skip to content
Snippets Groups Projects
Commit 2ee5920e authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'NGplus-tabs' into 'pregmod-master'

Add tabs to NGplus

See merge request !3912
parents 72b3ea16 d932655b
No related branches found
No related tags found
No related merge requests found
...@@ -50,22 +50,48 @@ You <<if $cash >= _fee>>have<<else>>lack<</if>> the funds to bring more than $sl ...@@ -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>> <<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]] 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>> <body>
This slave
<<else>> <div class="tab">
These slaves <button class="tablinks" onclick="opentab(event, 'assign')" id="tab assign">Import a slave</button>
<</if>> <button class="tablinks" onclick="opentab(event, 'remove')" id="tab remove">Remove from import</button>
will be imported into the new game'': </div>
<<if $slavesToImport >= $slavesToImportMax>>
//Current slave import capacity exceded.// <div id="remove" class="tabcontent">
<</if>> <div class="content">
<<set $Flag = 1>> <<include "Slave Summary">> <<if $slavesToImport > 0>>''
<</if>> <<if $slavesToImport === 1>>
<<if $slavesToImport >= $slavesToImportMax>> 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>> <<else>>
<<if $slaves.length > $slavesToImport>> <br><br> <script>document.getElementById("tab assign").click();</script>
''These slaves are available to be imported into the new game:'' <</if>>
<<set $Flag = 0>> <<include "Slave Summary">>
<</if>> </body>
<</if>> \ No newline at end of file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment