Browse Source

Add a doorway

master
Fen Dweller 4 years ago
parent
commit
6a2d88ebf1
3 changed files with 19 additions and 0 deletions
  1. +1
    -0
      media/attribution.js
  2. +9
    -0
      media/buildings/doorway.svg
  3. +9
    -0
      presets/buildings.js

+ 1
- 0
media/attribution.js View File

@@ -1093,6 +1093,7 @@ const attributionData = {
{ name: "house.svg", source: null },
{ name: "mailbox.svg", source: null },
{ name: "mobile-home.svg", source: null },
{ name: "doorway.svg", source: null },
],
authors: [
"chemicalcrux"


+ 9
- 0
media/buildings/doorway.svg View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 384 834" style="enable-background:new 0 0 384 834;" xml:space="preserve">
<style type="text/css">
.st0{fill:#1A1A1A;stroke:#000000;stroke-width:4;stroke-miterlimit:10;}
</style>
<polygon class="st0" points="2,2 2,832 32,832 32,32 352,32 352,832 382,832 382,2 "/>
</svg>

+ 9
- 0
presets/buildings.js View File

@@ -219,6 +219,15 @@ function makeBuildings() {
)
});

results.push({
name: "Doorway",
constructor: () => makeBuilding(
"Doorway",
math.unit(83, "inches"),
{ source: "./media/buildings/doorway.svg" }
)
});

results.sort((b1, b2) => {
e1 = b1.constructor();
e2 = b2.constructor();


Loading…
Cancel
Save