2022-03-01 17:42:33 +00:00
|
|
|
<ShipItem {cost} {mass}>
|
2020-07-28 18:55:08 +00:00
|
|
|
<div>
|
2022-03-01 17:42:33 +00:00
|
|
|
<Field label="screens">
|
|
|
|
<input type="number" bind:value={standard} min="0" />
|
|
|
|
</Field>
|
|
|
|
|
|
|
|
<Field label="advanced screens">
|
|
|
|
<input type="number" bind:value={advanced} min="0" />
|
|
|
|
</Field>
|
|
|
|
</div>
|
2020-07-19 20:21:28 +00:00
|
|
|
</ShipItem>
|
|
|
|
|
|
|
|
<script>
|
2022-03-01 17:42:33 +00:00
|
|
|
import { createEventDispatcher } from "svelte";
|
2020-07-19 20:21:28 +00:00
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
import Section from "$lib/components/Section/index.svelte";
|
|
|
|
import Field from "$lib/components/Field/index.svelte";
|
|
|
|
import ShipItem from "../../ShipItem/index.svelte";
|
2020-07-19 20:21:28 +00:00
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
export let cost = 0;
|
|
|
|
export let mass = 0;
|
|
|
|
export let standard = 0;
|
|
|
|
export let advanced = 0;
|
2020-07-19 20:21:28 +00:00
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
let nbr_regular, nbr_advanced;
|
2020-07-19 20:21:28 +00:00
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
const dispatch = createEventDispatcher();
|
2020-07-19 20:21:28 +00:00
|
|
|
|
2022-03-01 17:42:33 +00:00
|
|
|
$: dispatch("set_screens", { standard, advanced });
|
2020-07-19 20:21:28 +00:00
|
|
|
</script>
|
2020-07-24 18:11:18 +00:00
|
|
|
|
|
|
|
<style>
|
|
|
|
input {
|
|
|
|
width: 3em;
|
|
|
|
}
|
2020-07-28 18:55:08 +00:00
|
|
|
div {
|
|
|
|
display: flex;
|
|
|
|
gap: 2em;
|
|
|
|
}
|
2022-03-01 17:42:33 +00:00
|
|
|
</style>
|