Rename the ColourChoice modal to ShipDesigner
This commit is contained in:
parent
174add9e49
commit
e7533f60aa
2 changed files with 6 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import ColourChoice from "../../components/modals/ColourChoice.svelte";
|
import ShipDesigner from "../../components/modals/ShipDesigner.svelte";
|
||||||
import OptionInfo from "../../components/modals/OptionInfo.svelte";
|
import OptionInfo from "../../components/modals/OptionInfo.svelte";
|
||||||
import SciFiCheckbox from "../../components/SciFi-Checkbox.svelte";
|
import SciFiCheckbox from "../../components/SciFi-Checkbox.svelte";
|
||||||
import SciFiButton from "../../components/SciFi-Button.svelte";
|
import SciFiButton from "../../components/SciFi-Button.svelte";
|
||||||
|
|
@ -11,7 +11,7 @@ function tempButtonHandler() {};
|
||||||
// The modals that can appear in the lobby
|
// The modals that can appear in the lobby
|
||||||
const modal = {
|
const modal = {
|
||||||
options: false,
|
options: false,
|
||||||
colourChoice: false,
|
shipDesigner: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const gameOptions = [
|
const gameOptions = [
|
||||||
|
|
@ -64,10 +64,10 @@ function toggleOption(e: CustomEvent<string>) {
|
||||||
open="{modal.options}"
|
open="{modal.options}"
|
||||||
on:close="{_ => modal.options = false}"
|
on:close="{_ => modal.options = false}"
|
||||||
/>
|
/>
|
||||||
<ColourChoice
|
<ShipDesigner
|
||||||
open="{modal.colourChoice}"
|
open="{modal.shipDesigner}"
|
||||||
on:selectColour="{tempButtonHandler}"
|
on:selectColour="{tempButtonHandler}"
|
||||||
on:close="{_ => modal.colourChoice = false}"
|
on:close="{_ => modal.shipDesigner = false}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
|
@ -80,7 +80,7 @@ function toggleOption(e: CustomEvent<string>) {
|
||||||
<Player
|
<Player
|
||||||
name="{p.name}"
|
name="{p.name}"
|
||||||
colour="{p.colour}"
|
colour="{p.colour}"
|
||||||
on:changeColour="{_ => modal.colourChoice = true}"
|
on:changeColour="{_ => modal.shipDesigner = true}"
|
||||||
/>
|
/>
|
||||||
{#if i == 1}
|
{#if i == 1}
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue