diff --git a/public/ssd-icons/FTL Drive.svg b/public/icons/ftl-drive.svg similarity index 100% rename from public/ssd-icons/FTL Drive.svg rename to public/icons/ftl-drive.svg diff --git a/public/icons/internal-systems.svg b/public/icons/internal-systems.svg new file mode 100644 index 0000000..12374ca --- /dev/null +++ b/public/icons/internal-systems.svg @@ -0,0 +1,175 @@ + + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/icons/standard-drive.svg b/public/icons/standard-drive.svg new file mode 100644 index 0000000..3f25f35 --- /dev/null +++ b/public/icons/standard-drive.svg @@ -0,0 +1,57 @@ + + + +image/svg+xml + + + \ No newline at end of file diff --git a/public/ssd-icons/unlabeled (2).svg b/public/ssd-icons/unlabeled (2).svg deleted file mode 100644 index 28e092a..0000000 --- a/public/ssd-icons/unlabeled (2).svg +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/standard-drive.svg b/public/standard-drive.svg new file mode 100644 index 0000000..3f25f35 --- /dev/null +++ b/public/standard-drive.svg @@ -0,0 +1,57 @@ + + + +image/svg+xml + + + \ No newline at end of file diff --git a/src/components/Output/Print/MainSystems/index.svelte b/src/components/Output/Print/MainSystems/index.svelte new file mode 100644 index 0000000..c08e1bc --- /dev/null +++ b/src/components/Output/Print/MainSystems/index.svelte @@ -0,0 +1,41 @@ +
+ + {#if ftl !== "none" } + ftl drive + {/if} + + {#if engine > 0} +
{engine}
+ {/if} + + internal systems +
+ + + + diff --git a/src/components/Output/Print/MainSystems/stories.js b/src/components/Output/Print/MainSystems/stories.js new file mode 100644 index 0000000..2b96e67 --- /dev/null +++ b/src/components/Output/Print/MainSystems/stories.js @@ -0,0 +1,13 @@ +import Component from '.'; + +export default { + title: "printouts/main_systems" +}; + +export const basic = () => ({ + Component, + props: { + ftl: 'standard', + engine: 4, + } +}) diff --git a/src/components/Output/Print/index.svelte b/src/components/Output/Print/index.svelte index bd864fe..d017ea6 100644 --- a/src/components/Output/Print/index.svelte +++ b/src/components/Output/Print/index.svelte @@ -7,12 +7,19 @@ advanced={ship.structure.hull.advanced} ship_mass={ship.general.mass} /> + + + diff --git a/src/components/Output/Print/sample.js b/src/components/Output/Print/sample.js index 9b251dc..f2ea6cd 100644 --- a/src/components/Output/Print/sample.js +++ b/src/components/Output/Print/sample.js @@ -2,7 +2,7 @@ export default { "ftl": { "mass": 0, "cost": 0, - "type": "none" + "type": "standard" }, "engine": { "mass": 40,