weapon print
This commit is contained in:
parent
a48559e3db
commit
74d0317580
@ -1,14 +1,14 @@
|
|||||||
<div>
|
<div>
|
||||||
<Arcs selected={arcs} size="40">
|
<Arcs selected={arcs} size="40">
|
||||||
<text x="50%" y="50%">
|
<text x="50%" y="50%">
|
||||||
{weapon_class}
|
{weaponClass}
|
||||||
</text>
|
</text>
|
||||||
</Arcs>
|
</Arcs>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Arcs from "$lib/components/Weapon/Arcs/index.svelte";
|
import Arcs from "$lib/components/ShipEdit/Weaponry/Weapon/Arcs.svelte";
|
||||||
export let weapon_class = 1;
|
export let weaponClass = 1;
|
||||||
export let arcs = [];
|
export let arcs = [];
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
export let weapons = [];
|
export let weapons = [];
|
||||||
|
|
||||||
let beams = [];
|
let beams = [];
|
||||||
$: beams = weapons.filter(({ weapon_type }) => weapon_type === "beam");
|
$: beams = weapons.filter(({ type }) => type === "beam");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
<div>
|
<div>
|
||||||
<Identification {...$state.identification} />
|
<Identification {...$state.identification} />
|
||||||
|
|
||||||
|
<Weapons weapons={$state.weaponry.weapons} />
|
||||||
|
|
||||||
|
<MainSystems ftl={$state?.propulsion?.ftl}
|
||||||
|
engine={$state?.propulsion?.drive?.rating} />
|
||||||
</div>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
<aside class="ship-sheet" transition:fade>
|
<aside class="ship-sheet" transition:fade>
|
||||||
<Identification {...ship.general} />
|
|
||||||
|
|
||||||
<Weapons weapons={ship.weaponry.weapons} />
|
|
||||||
|
|
||||||
<div class="section-2">
|
<div class="section-2">
|
||||||
<Hull structure={ship.structure} ship_mass={ship.general.mass} />
|
<Hull structure={ship.structure} ship_mass={ship.general.mass} />
|
||||||
@ -18,8 +21,6 @@
|
|||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
-->
|
-->
|
||||||
<MainSystems ftl={$state?.propulsion?.ftl}
|
|
||||||
engine={$state?.propulsion?.drive?.rating} />
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getContext } from 'svelte';
|
import { getContext } from 'svelte';
|
||||||
@ -28,7 +29,7 @@ import { getContext } from 'svelte';
|
|||||||
import Identification from "./Identification/index.svelte";
|
import Identification from "./Identification/index.svelte";
|
||||||
import MainSystems from "./MainSystems/index.svelte";
|
import MainSystems from "./MainSystems/index.svelte";
|
||||||
/* import Hull from "./Hull/index.svelte"; */
|
/* import Hull from "./Hull/index.svelte"; */
|
||||||
/* import Weapons from "./Weapons/index.svelte"; */
|
import Weapons from "./Weapons/index.svelte";
|
||||||
/* import Systems from "./Systems/index.svelte"; */
|
/* import Systems from "./Systems/index.svelte"; */
|
||||||
|
|
||||||
/* export let ship; */
|
/* export let ship; */
|
||||||
@ -38,15 +39,17 @@ import { getContext } from 'svelte';
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.ship-sheet {
|
div {
|
||||||
width: 4.25in;
|
width: 4.25in;
|
||||||
height: 5.5in;
|
height: 5.5in;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
margin: 0px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-2 {
|
.section-2 {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user