Species Numbering Fix

This commit is contained in:
Neshura 2023-09-12 18:30:40 +02:00
parent e21a475b0c
commit e56c051267
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -208,14 +208,14 @@
<br />
<!--TODO: Add Scrolling to Dropdown Element-->
<DropDown
dropdownTitle={'Species*: ' + $LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species[empire.portrait_id].id}
dropdownTitle={'Species*: ' + ($LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species[empire.portrait_id].id + 1)}
dropdownId={speciesDropdownId}
>
{#each Object.values($LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species) as species}
{#if species}
<DropDownElement dropdownId={speciesDropdownId}>
<input id={'checkbox' + species.id} data-dropdown={speciesDropdownId} type="radio" bind:group={empire.portrait_id} value={species.id} />
<label for={'checkbox' + species.id} data-dropdown={speciesDropdownId}>{species.id}</label>
<label for={'checkbox' + species.id} data-dropdown={speciesDropdownId}>{species.id + 1}</label>
</DropDownElement>
{/if}
{/each}
@ -303,14 +303,14 @@
<br />
<!--TODO: Add Scrolling to Dropdown Element-->
<DropDown
dropdownTitle={'Species: ' + $LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species[empire.portrait_id].id}
dropdownTitle={'Species: ' + ($LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species[empire.portrait_id].id + 1)}
dropdownId={speciesDropdownId}
>
{#each Object.values($LeanChellarisDataStore.phenotypes[empire.portrait_group_id].species) as species}
{#if species}
<DropDownElement dropdownId={speciesDropdownId}>
<input id={'checkbox' + species.id} data-dropdown={speciesDropdownId} type="radio" bind:group={empire.portrait_id} value={species.id} />
<label for={'checkbox' + species.id} data-dropdown={speciesDropdownId}>{species.id}</label>
<label for={'checkbox' + species.id} data-dropdown={speciesDropdownId}>{species.id + 1}</label>
</DropDownElement>
{/if}
{/each}