mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-25 17:54:08 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const aircon = defineObject({
|
export const aircon = defineObject({
|
||||||
id: 'aircon',
|
id: 'aircon',
|
||||||
defaultOptions: {},
|
name: 'Air Conditioner',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'wall',
|
placement: 'wall',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const aquarium = defineObject({
|
export const aquarium = defineObject({
|
||||||
id: 'aquarium',
|
id: 'aquarium',
|
||||||
defaultOptions: {},
|
name: 'Aquarium',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const banknote = defineObject({
|
export const banknote = defineObject({
|
||||||
id: 'banknote',
|
id: 'banknote',
|
||||||
defaultOptions: {},
|
name: 'Banknote',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const bed = defineObject({
|
export const bed = defineObject({
|
||||||
id: 'bed',
|
id: 'bed',
|
||||||
defaultOptions: {},
|
name: 'Bed',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,8 +7,18 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const book = defineObject({
|
export const book = defineObject({
|
||||||
id: 'book',
|
id: 'book',
|
||||||
defaultOptions: {
|
name: 'Book',
|
||||||
variation: null as number | null,
|
options: {
|
||||||
|
schema: {
|
||||||
|
variation: {
|
||||||
|
type: 'enum',
|
||||||
|
label: 'Variation',
|
||||||
|
enum: [0, 1],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: {
|
||||||
|
variation: 0,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ options, root }) => {
|
createInstance: ({ options, root }) => {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const cactusS = defineObject({
|
export const cactusS = defineObject({
|
||||||
id: 'cactusS',
|
id: 'cactusS',
|
||||||
defaultOptions: {},
|
name: 'Cactus S',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -8,8 +8,18 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const cardboardBox = defineObject({
|
export const cardboardBox = defineObject({
|
||||||
id: 'cardboardBox',
|
id: 'cardboardBox',
|
||||||
defaultOptions: {
|
name: 'Cardboard Box',
|
||||||
variation: null as string | null,
|
options: {
|
||||||
|
schema: {
|
||||||
|
variation: {
|
||||||
|
type: 'enum',
|
||||||
|
label: 'Variation',
|
||||||
|
enum: ['default', 'mikan', 'aizon'],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: {
|
||||||
|
variation: 'default',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ room, options, root }) => {
|
createInstance: ({ room, options, root }) => {
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const ceilingFanLight = defineObject({
|
export const ceilingFanLight = defineObject({
|
||||||
id: 'ceilingFanLight',
|
id: 'ceilingFanLight',
|
||||||
defaultOptions: {},
|
name: 'Ceiling Fan Light',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'ceiling',
|
placement: 'ceiling',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const chair = defineObject({
|
export const chair = defineObject({
|
||||||
id: 'chair',
|
id: 'chair',
|
||||||
defaultOptions: {},
|
name: 'Chair',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
isChair: true,
|
isChair: true,
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const colorBox = defineObject({
|
export const colorBox = defineObject({
|
||||||
id: 'colorBox',
|
id: 'colorBox',
|
||||||
defaultOptions: {},
|
name: 'Color Box',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -9,7 +9,11 @@ import { yuge } from '../utility.js';
|
|||||||
|
|
||||||
export const cupNoodle = defineObject({
|
export const cupNoodle = defineObject({
|
||||||
id: 'cupNoodle',
|
id: 'cupNoodle',
|
||||||
defaultOptions: {},
|
name: 'Cup Noodle',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const desk = defineObject({
|
export const desk = defineObject({
|
||||||
id: 'desk',
|
id: 'desk',
|
||||||
defaultOptions: {},
|
name: 'Desk',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const ductTape = defineObject({
|
export const ductTape = defineObject({
|
||||||
id: 'ductTape',
|
id: 'ductTape',
|
||||||
defaultOptions: {},
|
name: 'Duct Tape',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const energyDrink = defineObject({
|
export const energyDrink = defineObject({
|
||||||
id: 'energyDrink',
|
id: 'energyDrink',
|
||||||
defaultOptions: {},
|
name: 'Energy Drink',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const facialTissue = defineObject({
|
export const facialTissue = defineObject({
|
||||||
id: 'facialTissue',
|
id: 'facialTissue',
|
||||||
defaultOptions: {},
|
name: 'Facial Tissue',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const keyboard = defineObject({
|
export const keyboard = defineObject({
|
||||||
id: 'keyboard',
|
id: 'keyboard',
|
||||||
defaultOptions: {},
|
name: 'Keyboard',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const lavaLamp = defineObject({
|
export const lavaLamp = defineObject({
|
||||||
id: 'lavaLamp',
|
id: 'lavaLamp',
|
||||||
defaultOptions: {},
|
name: 'Lava Lamp',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const letterCase = defineObject({
|
export const letterCase = defineObject({
|
||||||
id: 'letterCase',
|
id: 'letterCase',
|
||||||
defaultOptions: {},
|
name: 'Letter Case',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const milk = defineObject({
|
export const milk = defineObject({
|
||||||
id: 'milk',
|
id: 'milk',
|
||||||
defaultOptions: {},
|
name: 'Milk',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const monitor = defineObject({
|
export const monitor = defineObject({
|
||||||
id: 'monitor',
|
id: 'monitor',
|
||||||
defaultOptions: {},
|
name: 'Monitor',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const monstera = defineObject({
|
export const monstera = defineObject({
|
||||||
id: 'monstera',
|
id: 'monstera',
|
||||||
defaultOptions: {},
|
name: 'Monstera',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -9,7 +9,11 @@ import { yuge } from '../utility.js';
|
|||||||
|
|
||||||
export const mug = defineObject({
|
export const mug = defineObject({
|
||||||
id: 'mug',
|
id: 'mug',
|
||||||
defaultOptions: {},
|
name: 'Mug',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const openedCardboardBox = defineObject({
|
export const openedCardboardBox = defineObject({
|
||||||
id: 'openedCardboardBox',
|
id: 'openedCardboardBox',
|
||||||
defaultOptions: {},
|
name: 'Opened Cardboard Box',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const pachira = defineObject({
|
export const pachira = defineObject({
|
||||||
id: 'pachira',
|
id: 'pachira',
|
||||||
defaultOptions: {},
|
name: 'Pachira',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const plant = defineObject({
|
export const plant = defineObject({
|
||||||
id: 'plant',
|
id: 'plant',
|
||||||
defaultOptions: {},
|
name: 'Plant',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const plant2 = defineObject({
|
export const plant2 = defineObject({
|
||||||
id: 'plant2',
|
id: 'plant2',
|
||||||
defaultOptions: {},
|
name: 'Plant 2',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const powerStrip = defineObject({
|
export const powerStrip = defineObject({
|
||||||
id: 'powerStrip',
|
id: 'powerStrip',
|
||||||
defaultOptions: {},
|
name: 'Power Strip',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const rolledUpPoster = defineObject({
|
export const rolledUpPoster = defineObject({
|
||||||
id: 'rolledUpPoster',
|
id: 'rolledUpPoster',
|
||||||
defaultOptions: {},
|
name: 'Rolled-up Poster',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const roundRug = defineObject({
|
export const roundRug = defineObject({
|
||||||
id: 'roundRug',
|
id: 'roundRug',
|
||||||
defaultOptions: {},
|
name: 'Round Rug',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const snakeplant = defineObject({
|
export const snakeplant = defineObject({
|
||||||
id: 'snakeplant',
|
id: 'snakeplant',
|
||||||
defaultOptions: {},
|
name: 'Snake Plant',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const steelRack = defineObject({
|
export const steelRack = defineObject({
|
||||||
id: 'steelRack',
|
id: 'steelRack',
|
||||||
defaultOptions: {},
|
name: 'Steel Rack',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'floor',
|
placement: 'floor',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const tabletopCalendar = defineObject({
|
export const tabletopCalendar = defineObject({
|
||||||
id: 'tabletopCalendar',
|
id: 'tabletopCalendar',
|
||||||
defaultOptions: {},
|
name: 'Tabletop Calendar',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const tv = defineObject({
|
export const tv = defineObject({
|
||||||
id: 'tv',
|
id: 'tv',
|
||||||
defaultOptions: {},
|
name: 'TV',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'top',
|
placement: 'top',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const wallClock = defineObject({
|
export const wallClock = defineObject({
|
||||||
id: 'wallClock',
|
id: 'wallClock',
|
||||||
defaultOptions: {},
|
name: 'Wall Clock',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'side',
|
placement: 'side',
|
||||||
createInstance: ({ room, root }) => {
|
createInstance: ({ room, root }) => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export const wallShelf = defineObject({
|
|||||||
style: {
|
style: {
|
||||||
type: 'enum',
|
type: 'enum',
|
||||||
label: 'Style',
|
label: 'Style',
|
||||||
enum: ['A', 'B'],
|
enum: ['A', 'B', 'C', 'D'],
|
||||||
},
|
},
|
||||||
boardStyle: {
|
boardStyle: {
|
||||||
type: 'enum',
|
type: 'enum',
|
||||||
@@ -37,6 +37,8 @@ export const wallShelf = defineObject({
|
|||||||
const applyStyle = () => {
|
const applyStyle = () => {
|
||||||
const aMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_A__'));
|
const aMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_A__'));
|
||||||
const bMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_B__'));
|
const bMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_B__'));
|
||||||
|
const cMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_C__'));
|
||||||
|
const dMeshes = root.getChildMeshes().filter(m => m.name.includes('__X_VARIATION_D__'));
|
||||||
|
|
||||||
for (const m of aMeshes) {
|
for (const m of aMeshes) {
|
||||||
(m as BABYLON.Mesh).setEnabled(options.style === 'A');
|
(m as BABYLON.Mesh).setEnabled(options.style === 'A');
|
||||||
@@ -44,11 +46,17 @@ export const wallShelf = defineObject({
|
|||||||
for (const m of bMeshes) {
|
for (const m of bMeshes) {
|
||||||
(m as BABYLON.Mesh).setEnabled(options.style === 'B');
|
(m as BABYLON.Mesh).setEnabled(options.style === 'B');
|
||||||
}
|
}
|
||||||
|
for (const m of cMeshes) {
|
||||||
|
(m as BABYLON.Mesh).setEnabled(options.style === 'C');
|
||||||
|
}
|
||||||
|
for (const m of dMeshes) {
|
||||||
|
(m as BABYLON.Mesh).setEnabled(options.style === 'D');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
applyStyle();
|
applyStyle();
|
||||||
|
|
||||||
const bodyMesh = root.getChildMeshes().find(m => m.name.includes('__X_BOARD__')) as BABYLON.Mesh;
|
const bodyMesh = root.getChildMeshes().find(m => m.name.includes('__X_BODY__')) as BABYLON.Mesh;
|
||||||
const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial;
|
const bodyMaterial = bodyMesh.material as BABYLON.PBRMaterial;
|
||||||
const bodyTexture = bodyMaterial.albedoTexture as BABYLON.Texture;
|
const bodyTexture = bodyMaterial.albedoTexture as BABYLON.Texture;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { defineObject } from '../engine.js';
|
|||||||
|
|
||||||
export const woodSoundAbsorbingPanel = defineObject({
|
export const woodSoundAbsorbingPanel = defineObject({
|
||||||
id: 'woodSoundAbsorbingPanel',
|
id: 'woodSoundAbsorbingPanel',
|
||||||
defaultOptions: {},
|
name: 'Wood Sound Absorbing Panel',
|
||||||
|
options: {
|
||||||
|
schema: {},
|
||||||
|
default: {},
|
||||||
|
},
|
||||||
placement: 'side',
|
placement: 'side',
|
||||||
createInstance: () => {
|
createInstance: () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user