aotds-docks/src/lib/components/Output/Print/Systems/Firecons/index.svelte

36 lines
662 B
Svelte
Raw Normal View History

<div
style:transform={uiTransform}
use:movable={{
disabled: !isMovable,
ship,
system: "firecons",
}}
>
{#each range(1, stations) as firecon}
2022-04-05 23:58:32 +00:00
<img class="firecon" src="{base}/icons/firecon.svg" alt="firecon" />
2021-06-13 17:14:22 +00:00
{/each}
</div>
2020-07-29 23:17:25 +00:00
2021-06-13 17:14:22 +00:00
<script>
import { base } from "$app/paths";
import { range } from "$lib/utils.js";
import { getContext } from "svelte";
import { movable } from "../../movable.js";
2020-07-29 23:17:25 +00:00
export let stations = 0;
export let isMovable = false;
export let uiTransform = "";
const ship = getContext("ship");
2021-06-13 17:14:22 +00:00
</script>
<style>
div {
display: flex;
gap: 0.5em;
}
2020-07-29 23:17:25 +00:00
img.firecon {
width: 1em;
}
</style>