aotds-docks/src/lib/components/ShipEdit/Structure/Streamlining.svelte

44 lines
924 B
Svelte
Raw Normal View History

2022-03-04 21:31:05 +00:00
<ShipItem {...reqs}>
2023-04-20 15:54:18 +00:00
<div>streamlining</div>
<div class="field middle-align">
<label class="radio">
<input type="radio" bind:group={type} value="none" />
<span>none</span></label
>
<label class="radio">
<input type="radio" bind:group={type} value="partial" />
<span>partial</span></label
>
<label class="radio">
<input type="radio" bind:group={type} value="full" />
<span>full</span></label
>
</div>
2022-03-04 21:31:05 +00:00
</ShipItem>
<script>
2023-03-24 15:01:04 +00:00
import ShipItem from "$lib/components/ShipItem.svelte";
import Field from "$lib/components/Field.svelte";
2022-03-04 21:31:05 +00:00
import { getContext } from "svelte";
export let type = "none";
export let reqs = {};
2023-03-24 15:01:04 +00:00
export let api = getContext("api");
2022-03-04 21:31:05 +00:00
2023-03-24 15:01:04 +00:00
$: api?.dispatch?.setStreamlining?.(type);
2022-03-04 21:31:05 +00:00
</script>
<style>
div {
display: flex;
}
label {
2023-04-20 15:54:18 +00:00
margin-left: 2em !important;
2022-03-04 21:31:05 +00:00
}
2023-05-01 16:41:39 +00:00
div.field {
margin-bottom: 0px;
}
2022-03-04 21:31:05 +00:00
</style>