Selaa lähdekoodia

Add Vans (as Shoes)

master
Fen Dweller 4 vuotta sitten
vanhempi
commit
21cfae860a
10 muutettua tiedostoa jossa 50 lisäystä ja 31 poistoa
  1. +19
    -0
      media/attribution.js
  2. +1
    -0
      media/clothing/Shoes/Vans-Back Corner.svg
  3. +1
    -0
      media/clothing/Shoes/Vans-Back.svg
  4. +1
    -0
      media/clothing/Shoes/Vans-Bottom.svg
  5. +1
    -0
      media/clothing/Shoes/Vans-Front Corner.svg
  6. +1
    -0
      media/clothing/Shoes/Vans-Front.svg
  7. +1
    -0
      media/clothing/Shoes/Vans-Side.svg
  8. +1
    -0
      media/clothing/Shoes/Vans-Top.svg
  9. +24
    -0
      presets/clothing.js
  10. +0
    -31
      presets/objects.js

+ 19
- 0
media/attribution.js Näytä tiedosto

@@ -1285,6 +1285,21 @@ const attributionData = {
"maurizio-barabani"
]
},
{
prefix: "./media/clothing/Shoes/",
files: [
{ name: "Vans-Front.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Front Corner.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Side.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Back Corner.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Back.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Bottom.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
{ name: "Vans-Top.svg", source: "https://www.cgtrader.com/free-3d-models/interior/house/vans-old-skool-black" },
],
authors: [
"powwow1"
]
},
{
prefix: "./media/characters/abbott-absol/",
files: [
@@ -21317,6 +21332,10 @@ const attributionData = {
"name": "Maurizio Barabani",
"url": "https://www.cgtrader.com/maurizio-barabani"
},
"powwow1": {
"name": "powwow1",
"url": "https://www.cgtrader.com/powwow1"
},
}
}



+ 1
- 0
media/clothing/Shoes/Vans-Back Corner.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Back.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Bottom.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Front Corner.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Front.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Side.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 1
- 0
media/clothing/Shoes/Vans-Top.svg
File diff suppressed because it is too large
Näytä tiedosto


+ 24
- 0
presets/clothing.js Näytä tiedosto

@@ -17,6 +17,21 @@ function makeClothing() {

]

const dataShoes = [
{
name: "Vans",
sides: {
"Front": { height: math.unit(0.1756718009710312, "meters") },
"Front Corner": { height: math.unit(0.1756718009710312, "meters") },
"Side": { height: math.unit(0.1756718009710312, "meters") },
"Back Corner": { height: math.unit(0.1756718009710312, "meters") },
"Back": { height: math.unit(0.1756718009710312, "meters") },
"Bottom": { height: math.unit(0.4387904107570648, "meters") },
"Top": { height: math.unit(0.4387904107570648, "meters") }
}
}
]

results.push({
name: "Boots",
constructor: () => makeAutoVehicleGroup(
@@ -26,6 +41,15 @@ function makeClothing() {
)
})

results.push({
name: "Shoes",
constructor: () => makeAutoVehicleGroup(
dataShoes,
"Shoes",
"clothing"
)
})

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


+ 0
- 31
presets/objects.js Näytä tiedosto

@@ -47,16 +47,6 @@ function makeObject(name, viewInfo) {
return makeEntity({ name: name }, views);
}

SHOE_REFERENCE = 60
function addShoeView(object, name, points) {
object[name] = {
height: math.unit(points / SHOE_REFERENCE, "inches"),
image: { source: "./media/objects/shoes/shoe_" + name + ".svg" },
name: name.replace(/-/g, " ").replace(/\b\w/g, x => x.toUpperCase()),
rename: true
}
}

function makeHeight(info, category, prefix = "", type = "objects", rename = true) {
const views = {};

@@ -154,27 +144,6 @@ function makeHeightWeightSphere(info, category, prefix = "", type = "objects") {
}
}

function makeShoes() {
const views = {};

[
["flip-flops", 154.239],
["knee-boots", 841.827],
["trainers", 260.607],
["stilettos", 418.839]
].forEach(shoe => {
addShoeView(views, shoe[0], shoe[1])
});

return {
name: "Shoes",
constructor: () => makeObject(
"Shoes",
views
)
}
}

function makeObjects() {
const results = [];



Loading…
Peruuta
Tallenna