Przeglądaj źródła

Give names to views for objects

tags/v0.0.4
Fen Dweller 5 lat temu
rodzic
commit
629474da80
1 zmienionych plików z 7 dodań i 4 usunięć
  1. +7
    -4
      presets/objects.js

+ 7
- 4
presets/objects.js Wyświetl plik

@@ -14,7 +14,7 @@ function makeObject(name, viewInfo) {
}
},
image: value.image,
name: "Object"
name: value.name
}

if (value.mass) {
@@ -42,7 +42,8 @@ function makeObjects() {
front: {
height: math.unit(4.83, "inches"),
mass: math.unit(15, "grams"),
image: { source: "./media/objects/soda-can.svg" }
image: { source: "./media/objects/soda-can.svg" },
name: "Side"
}
}
)
@@ -55,11 +56,13 @@ function makeObjects() {
{
side: {
height: math.unit(1.5, "inches"),
image: { source: "./media/objects/sewing-pin.svg" }
image: { source: "./media/objects/sewing-pin.svg" },
name: "Side"
},
top: {
height: math.unit(2, "millimeters"),
image: { source: "./media/objects/pin-head.svg" }
image: { source: "./media/objects/pin-head.svg" },
name: "Head"
}
}
)


Ładowanie…
Anuluj
Zapisz