瀏覽代碼

Add some road markings

master
Fen Dweller 4 年之前
父節點
當前提交
6b9102b833
共有 4 個檔案被更改,包括 44 行新增1 行删除
  1. +10
    -0
      media/attribution.js
  2. +9
    -0
      media/buildings/road-markings/compact-parking-space.svg
  3. +12
    -0
      media/buildings/road-markings/crosswalk.svg
  4. +13
    -1
      presets/buildings.js

+ 10
- 0
media/attribution.js 查看文件

@@ -1117,6 +1117,16 @@ const attributionData = {
"chemicalcrux"
],
},
{
prefix: "./media/buildings/road-markings/",
files: [
{ name: "compact-parking-space.svg", source: null },
{ name: "crosswalk.svg", source: null },
],
authors: [
"chemicalcrux"
],
},
{
prefix: "./media/buildings/skyscrapers/",
files: [


+ 9
- 0
media/buildings/road-markings/compact-parking-space.svg 查看文件

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.2.1, 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"
width="833.33" height="1616.67" viewBox="0 0 833.33 1616.67" style="enable-background:new 0 0 833.33 1616.67;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:33.333;stroke-miterlimit:10;}
</style>
<polyline class="st0" points="16.67,1616.67 16.67,16.67 816.67,16.67 816.67,1616.67 "/>
</svg>

+ 12
- 0
media/buildings/road-markings/crosswalk.svg 查看文件

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.2.1, 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"
width="1000" height="2625" viewBox="0 0 1000 2625" style="enable-background:new 0 0 1000 2625;" xml:space="preserve">
<style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:33.333;stroke-miterlimit:10;}
</style>
<g>
<rect width="100" height="2625"/>
<rect x="900" width="100" height="2625"/>
</g>
</svg>

+ 13
- 1
presets/buildings.js 查看文件

@@ -152,6 +152,18 @@ function makeBuildings() {
)
)

results.push(
makeHeight(
[
["compact-parking-space", 16 + 4/12, "feet"],
["crosswalk", 26.25, "feet"]
],
"Road Markings",
"",
"buildings"
)
)

results.push(
makeHeight(
[
@@ -269,7 +281,7 @@ function makeBuildings() {
results.sort((b1, b2) => {
e1 = b1.constructor();
e2 = b2.constructor();
return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
return e1.name.localeCompare(e2.name)
});

return results;


Loading…
取消
儲存