mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip i18n separation
This commit is contained in:
parent
f0bf3cda75
commit
748b571856
216 changed files with 2142 additions and 427 deletions
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const a4Case = defineObject({
|
||||
id: 'a4Case',
|
||||
name: i18n.ts._miRoom._objects.a4Case,
|
||||
options: {
|
||||
schema: {
|
||||
mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._a4Case.mat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/a4Case.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/a4Case.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { a4Case } from './a4Case.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const a4Case_ui = defineObjectUi<typeof a4Case>({
|
||||
name: i18n.ts._miRoom._objects.a4Case,
|
||||
options: {
|
||||
mat: {
|
||||
label: i18n.ts._miRoom._objects._a4Case.mat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aircon = defineObject({
|
||||
id: 'aircon',
|
||||
name: i18n.ts._miRoom._objects.aircon,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/aircon.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/aircon.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { aircon } from './aircon.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aircon_ui = defineObjectUi<typeof aircon>({
|
||||
name: i18n.ts._miRoom._objects.aircon,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -6,11 +6,9 @@
|
|||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { cm } from '../../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aquarium = defineObject({
|
||||
id: 'aquarium',
|
||||
name: i18n.ts._miRoom._objects.aquarium,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/aquarium.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/aquarium.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { aquarium } from './aquarium.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aquarium_ui = defineObjectUi<typeof aquarium>({
|
||||
name: i18n.ts._miRoom._objects.aquarium,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,20 +5,16 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aromaReedDiffuser = defineObject({
|
||||
id: 'aromaReedDiffuser',
|
||||
name: i18n.ts._miRoom._objects.aromaReedDiffuser,
|
||||
options: {
|
||||
schema: {
|
||||
bottleMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._aromaReedDiffuser.bottleMat,
|
||||
},
|
||||
oilMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._aromaReedDiffuser.oilMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { aromaReedDiffuser } from './aromaReedDiffuser.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const aromaReedDiffuser_ui = defineObjectUi<typeof aromaReedDiffuser>({
|
||||
name: i18n.ts._miRoom._objects.aromaReedDiffuser,
|
||||
options: {
|
||||
bottleMat: {
|
||||
label: i18n.ts._miRoom._objects._aromaReedDiffuser.bottleMat,
|
||||
},
|
||||
oilMat: {
|
||||
label: i18n.ts._miRoom._objects._aromaReedDiffuser.oilMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const banknote = defineObject({
|
||||
id: 'banknote',
|
||||
name: i18n.ts._miRoom._objects.banknote,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/banknote.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/banknote.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { banknote } from './banknote.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const banknote_ui = defineObjectUi<typeof banknote>({
|
||||
name: i18n.ts._miRoom._objects.banknote,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -7,11 +7,9 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { cm, WORLD_SCALE } from '../../utility.js';
|
||||
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const beamLamp = defineObject({
|
||||
id: 'beamLamp',
|
||||
name: i18n.ts._miRoom._objects.beamLamp,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/beamLamp.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/beamLamp.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { beamLamp } from './beamLamp.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const beamLamp_ui = defineObjectUi<typeof beamLamp>({
|
||||
name: i18n.ts._miRoom._objects.beamLamp,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const bed = defineObject({
|
||||
id: 'bed',
|
||||
name: i18n.ts._miRoom._objects.bed,
|
||||
options: {
|
||||
schema: {
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._bed.frameMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/bed.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/bed.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { bed } from './bed.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const bed_ui = defineObjectUi<typeof bed>({
|
||||
name: i18n.ts._miRoom._objects.bed,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._bed.frameMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -7,29 +7,24 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { cm, remap } from '../../utility.js';
|
||||
import { createOverridedStates } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const blind = defineObject({
|
||||
id: 'blind',
|
||||
name: i18n.ts._miRoom._objects.blind,
|
||||
options: {
|
||||
schema: {
|
||||
blades: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._blind.blades,
|
||||
min: 1,
|
||||
max: 100,
|
||||
},
|
||||
angle: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._blind.angle,
|
||||
min: -Math.PI / 2,
|
||||
max: Math.PI / 2,
|
||||
step: 0.01,
|
||||
},
|
||||
open: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._blind.open,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
23
packages/frontend/src/world/room/objects/blind.ui.ts
Normal file
23
packages/frontend/src/world/room/objects/blind.ui.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { blind } from './blind.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const blind_ui = defineObjectUi<typeof blind>({
|
||||
name: i18n.ts._miRoom._objects.blind,
|
||||
options: {
|
||||
blades: {
|
||||
label: i18n.ts._miRoom._objects._blind.blades,
|
||||
},
|
||||
angle: {
|
||||
label: i18n.ts._miRoom._objects._blind.angle,
|
||||
},
|
||||
open: {
|
||||
label: i18n.ts._miRoom._objects._blind.open,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,35 +4,29 @@
|
|||
*/
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const book = defineObject({
|
||||
id: 'book',
|
||||
name: i18n.ts._miRoom._objects.book,
|
||||
options: {
|
||||
schema: {
|
||||
variation: {
|
||||
type: 'enum',
|
||||
label: i18n.ts._miRoom._objects._book.variation,
|
||||
enum: [0, 1],
|
||||
},
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._book.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
height: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._book.height,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
thickness: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._book.thickness,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
26
packages/frontend/src/world/room/objects/book.ui.ts
Normal file
26
packages/frontend/src/world/room/objects/book.ui.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { book } from './book.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const book_ui = defineObjectUi<typeof book>({
|
||||
name: i18n.ts._miRoom._objects.book,
|
||||
options: {
|
||||
variation: {
|
||||
label: i18n.ts._miRoom._objects._book.variation,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._book.width,
|
||||
},
|
||||
height: {
|
||||
label: i18n.ts._miRoom._objects._book.height,
|
||||
},
|
||||
thickness: {
|
||||
label: i18n.ts._miRoom._objects._book.thickness,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -6,30 +6,22 @@
|
|||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { cm } from '../../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const books = defineObject({
|
||||
id: 'books',
|
||||
name: i18n.ts._miRoom._objects.books,
|
||||
options: {
|
||||
schema: {
|
||||
variation: {
|
||||
type: 'enum',
|
||||
label: i18n.ts._miRoom._objects._books.variation,
|
||||
enum: [{
|
||||
label: 'A',
|
||||
value: 'A',
|
||||
}, {
|
||||
label: 'B',
|
||||
value: 'B',
|
||||
}, {
|
||||
label: 'C',
|
||||
value: 'C',
|
||||
}, {
|
||||
label: 'D',
|
||||
value: 'D',
|
||||
}, {
|
||||
label: 'E',
|
||||
value: 'E',
|
||||
}],
|
||||
},
|
||||
|
|
|
|||
34
packages/frontend/src/world/room/objects/books.ui.ts
Normal file
34
packages/frontend/src/world/room/objects/books.ui.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { books } from './books.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const books_ui = defineObjectUi<typeof books>({
|
||||
name: i18n.ts._miRoom._objects.books,
|
||||
options: {
|
||||
variation: {
|
||||
label: i18n.ts._miRoom._objects._books.variation,
|
||||
enum: {
|
||||
'A': {
|
||||
label: 'A',
|
||||
},
|
||||
'B': {
|
||||
label: 'B',
|
||||
},
|
||||
'C': {
|
||||
label: 'C',
|
||||
},
|
||||
'D': {
|
||||
label: 'D',
|
||||
},
|
||||
'E': {
|
||||
label: 'E',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,34 +5,28 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const boxWallShelf = defineObject({
|
||||
id: 'boxWallShelf',
|
||||
name: i18n.ts._miRoom._objects.boxWallShelf,
|
||||
options: {
|
||||
schema: {
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
height: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.height,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.bodyMat,
|
||||
},
|
||||
withBack: {
|
||||
type: 'boolean',
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.withBack,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
26
packages/frontend/src/world/room/objects/boxWallShelf.ui.ts
Normal file
26
packages/frontend/src/world/room/objects/boxWallShelf.ui.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { boxWallShelf } from './boxWallShelf.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const boxWallShelf_ui = defineObjectUi<typeof boxWallShelf>({
|
||||
name: i18n.ts._miRoom._objects.boxWallShelf,
|
||||
options: {
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.width,
|
||||
},
|
||||
height: {
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.height,
|
||||
},
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.bodyMat,
|
||||
},
|
||||
withBack: {
|
||||
label: i18n.ts._miRoom._objects._boxWallShelf.withBack,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cactusS = defineObject({
|
||||
id: 'cactusS',
|
||||
name: i18n.ts._miRoom._objects.cactusS,
|
||||
options: {
|
||||
schema: {
|
||||
potMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._cactusS.potMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/cactusS.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/cactusS.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { cactusS } from './cactusS.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cactusS_ui = defineObjectUi<typeof cactusS>({
|
||||
name: i18n.ts._miRoom._objects.cactusS,
|
||||
options: {
|
||||
potMat: {
|
||||
label: i18n.ts._miRoom._objects._cactusS.potMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,24 +5,18 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cardboardBox = defineObject({
|
||||
id: 'cardboardBox',
|
||||
name: i18n.ts._miRoom._objects.cardboardBox,
|
||||
options: {
|
||||
schema: {
|
||||
variation: {
|
||||
type: 'enum',
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation,
|
||||
enum: [{
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_default,
|
||||
value: 'default',
|
||||
}, {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_mikan,
|
||||
value: 'mikan',
|
||||
}, {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_aizon,
|
||||
value: 'aizon',
|
||||
}],
|
||||
},
|
||||
|
|
|
|||
28
packages/frontend/src/world/room/objects/cardboardBox.ui.ts
Normal file
28
packages/frontend/src/world/room/objects/cardboardBox.ui.ts
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { cardboardBox } from './cardboardBox.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cardboardBox_ui = defineObjectUi<typeof cardboardBox>({
|
||||
name: i18n.ts._miRoom._objects.cardboardBox,
|
||||
options: {
|
||||
variation: {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation,
|
||||
enum: {
|
||||
'default': {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_default,
|
||||
},
|
||||
'mikan': {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_mikan,
|
||||
},
|
||||
'aizon': {
|
||||
label: i18n.ts._miRoom._objects._cardboardBox.variation_aizon,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ceilingFanLight = defineObject({
|
||||
id: 'ceilingFanLight',
|
||||
name: i18n.ts._miRoom._objects.ceilingFanLight,
|
||||
options: {
|
||||
schema: {
|
||||
shadeMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ceilingFanLight.shadeMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { ceilingFanLight } from './ceilingFanLight.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ceilingFanLight_ui = defineObjectUi<typeof ceilingFanLight>({
|
||||
name: i18n.ts._miRoom._objects.ceilingFanLight,
|
||||
options: {
|
||||
shadeMat: {
|
||||
label: i18n.ts._miRoom._objects._ceilingFanLight.shadeMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,24 +5,19 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const chair = defineObject({
|
||||
id: 'chair',
|
||||
name: i18n.ts._miRoom._objects.chair,
|
||||
options: {
|
||||
schema: {
|
||||
primaryMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._chair.primaryMat,
|
||||
},
|
||||
secondaryMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._chair.secondaryMat,
|
||||
},
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._chair.frameMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
23
packages/frontend/src/world/room/objects/chair.ui.ts
Normal file
23
packages/frontend/src/world/room/objects/chair.ui.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { chair } from './chair.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const chair_ui = defineObjectUi<typeof chair>({
|
||||
name: i18n.ts._miRoom._objects.chair,
|
||||
options: {
|
||||
primaryMat: {
|
||||
label: i18n.ts._miRoom._objects._chair.primaryMat,
|
||||
},
|
||||
secondaryMat: {
|
||||
label: i18n.ts._miRoom._objects._chair.secondaryMat,
|
||||
},
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._chair.frameMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -6,30 +6,25 @@
|
|||
import * as BABYLON from '@babylonjs/core';
|
||||
import { createTextureManager, defineObject } from '../object.js';
|
||||
import { remap } from '../../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const clippedPicture = defineObject({
|
||||
id: 'clippedPicture',
|
||||
name: i18n.ts._miRoom._objects.clippedPicture,
|
||||
options: {
|
||||
schema: {
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
height: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.height,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
image: {
|
||||
type: 'image',
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.image,
|
||||
presets: [],
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { clippedPicture } from './clippedPicture.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const clippedPicture_ui = defineObjectUi<typeof clippedPicture>({
|
||||
name: i18n.ts._miRoom._objects.clippedPicture,
|
||||
options: {
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.width,
|
||||
},
|
||||
height: {
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.height,
|
||||
},
|
||||
image: {
|
||||
label: i18n.ts._miRoom._objects._clippedPicture.image,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const coffeeCup = defineObject({
|
||||
id: 'coffeeCup',
|
||||
name: i18n.ts._miRoom._objects.coffeeCup,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/coffeeCup.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/coffeeCup.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { coffeeCup } from './coffeeCup.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const coffeeCup_ui = defineObjectUi<typeof coffeeCup>({
|
||||
name: i18n.ts._miRoom._objects.coffeeCup,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const colorBox = defineObject({
|
||||
id: 'colorBox',
|
||||
name: i18n.ts._miRoom._objects.colorBox,
|
||||
options: {
|
||||
schema: {
|
||||
mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._colorBox.mat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/colorBox.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/colorBox.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { colorBox } from './colorBox.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const colorBox_ui = defineObjectUi<typeof colorBox>({
|
||||
name: i18n.ts._miRoom._objects.colorBox,
|
||||
options: {
|
||||
mat: {
|
||||
label: i18n.ts._miRoom._objects._colorBox.mat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,37 +5,31 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cuboid = defineObject({
|
||||
id: 'cuboid',
|
||||
name: i18n.ts._miRoom._objects.cuboid,
|
||||
options: {
|
||||
schema: {
|
||||
x: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._cuboid.x,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
y: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._cuboid.y,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
z: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._cuboid.z,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._cuboid.mat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
26
packages/frontend/src/world/room/objects/cuboid.ui.ts
Normal file
26
packages/frontend/src/world/room/objects/cuboid.ui.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { cuboid } from './cuboid.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cuboid_ui = defineObjectUi<typeof cuboid>({
|
||||
name: i18n.ts._miRoom._objects.cuboid,
|
||||
options: {
|
||||
x: {
|
||||
label: i18n.ts._miRoom._objects._cuboid.x,
|
||||
},
|
||||
y: {
|
||||
label: i18n.ts._miRoom._objects._cuboid.y,
|
||||
},
|
||||
z: {
|
||||
label: i18n.ts._miRoom._objects._cuboid.z,
|
||||
},
|
||||
mat: {
|
||||
label: i18n.ts._miRoom._objects._cuboid.mat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -7,11 +7,9 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { cm } from '../../utility.js';
|
||||
import { yuge } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cupNoodle = defineObject({
|
||||
id: 'cupNoodle',
|
||||
name: i18n.ts._miRoom._objects.cupNoodle,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/cupNoodle.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/cupNoodle.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { cupNoodle } from './cupNoodle.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const cupNoodle_ui = defineObjectUi<typeof cupNoodle>({
|
||||
name: i18n.ts._miRoom._objects.cupNoodle,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const curtain = defineObject({
|
||||
id: 'curtain',
|
||||
name: i18n.ts._miRoom._objects.curtain,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/curtain.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/curtain.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { curtain } from './curtain.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const curtain_ui = defineObjectUi<typeof curtain>({
|
||||
name: i18n.ts._miRoom._objects.curtain,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const custardPudding = defineObject({
|
||||
id: 'custardPudding',
|
||||
name: i18n.ts._miRoom._objects.custardPudding,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { custardPudding } from './custardPudding.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const custardPudding_ui = defineObjectUi<typeof custardPudding>({
|
||||
name: i18n.ts._miRoom._objects.custardPudding,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const descriptionPlate = defineObject({
|
||||
id: 'descriptionPlate',
|
||||
name: i18n.ts._miRoom._objects.descriptionPlate,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { descriptionPlate } from './descriptionPlate.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const descriptionPlate_ui = defineObjectUi<typeof descriptionPlate>({
|
||||
name: i18n.ts._miRoom._objects.descriptionPlate,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,31 +5,25 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const desk = defineObject({
|
||||
id: 'desk',
|
||||
name: i18n.ts._miRoom._objects.desk,
|
||||
options: {
|
||||
schema: {
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desk.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desk.boardMat,
|
||||
},
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._desk.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
depth: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._desk.depth,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
26
packages/frontend/src/world/room/objects/desk.ui.ts
Normal file
26
packages/frontend/src/world/room/objects/desk.ui.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { desk } from './desk.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const desk_ui = defineObjectUi<typeof desk>({
|
||||
name: i18n.ts._miRoom._objects.desk,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._desk.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
label: i18n.ts._miRoom._objects._desk.boardMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._desk.width,
|
||||
},
|
||||
depth: {
|
||||
label: i18n.ts._miRoom._objects._desk.depth,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -7,36 +7,28 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { cm, WORLD_SCALE } from '../../utility.js';
|
||||
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const desktopPc = defineObject({
|
||||
id: 'desktopPc',
|
||||
name: i18n.ts._miRoom._objects.desktopPc,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.bodyMat,
|
||||
},
|
||||
coverMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.coverMat,
|
||||
},
|
||||
inner1Mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner1Mat,
|
||||
},
|
||||
inner2Mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner2Mat,
|
||||
},
|
||||
inner3Mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner3Mat,
|
||||
},
|
||||
ledColor: {
|
||||
type: 'color',
|
||||
label: i18n.ts._miRoom._objects._desktopPc.ledColor,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
32
packages/frontend/src/world/room/objects/desktopPc.ui.ts
Normal file
32
packages/frontend/src/world/room/objects/desktopPc.ui.ts
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { desktopPc } from './desktopPc.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const desktopPc_ui = defineObjectUi<typeof desktopPc>({
|
||||
name: i18n.ts._miRoom._objects.desktopPc,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.bodyMat,
|
||||
},
|
||||
coverMat: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.coverMat,
|
||||
},
|
||||
inner1Mat: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner1Mat,
|
||||
},
|
||||
inner2Mat: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner2Mat,
|
||||
},
|
||||
inner3Mat: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.inner3Mat,
|
||||
},
|
||||
ledColor: {
|
||||
label: i18n.ts._miRoom._objects._desktopPc.ledColor,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const djMixer = defineObject({
|
||||
id: 'djMixer',
|
||||
name: i18n.ts._miRoom._objects.djMixer,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/djMixer.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/djMixer.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { djMixer } from './djMixer.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const djMixer_ui = defineObjectUi<typeof djMixer>({
|
||||
name: i18n.ts._miRoom._objects.djMixer,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -6,25 +6,20 @@
|
|||
import * as BABYLON from '@babylonjs/core';
|
||||
import { createTextureManager, defineObject } from '../object.js';
|
||||
import { normalizeUvToSquare } from '../../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const djPlayer = defineObject({
|
||||
id: 'djPlayer',
|
||||
name: i18n.ts._miRoom._objects.djPlayer,
|
||||
options: {
|
||||
schema: {
|
||||
screenBrightness: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._djPlayer.screenBrightness,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
image: {
|
||||
type: 'image',
|
||||
label: i18n.ts._miRoom._objects._djPlayer.image,
|
||||
presets: [{
|
||||
label: i18n.ts._miRoom._objects._djPlayer['image:waveform'],
|
||||
value: 'waveform',
|
||||
}],
|
||||
},
|
||||
|
|
|
|||
25
packages/frontend/src/world/room/objects/djPlayer.ui.ts
Normal file
25
packages/frontend/src/world/room/objects/djPlayer.ui.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { djPlayer } from './djPlayer.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const djPlayer_ui = defineObjectUi<typeof djPlayer>({
|
||||
name: i18n.ts._miRoom._objects.djPlayer,
|
||||
options: {
|
||||
screenBrightness: {
|
||||
label: i18n.ts._miRoom._objects._djPlayer.screenBrightness,
|
||||
},
|
||||
image: {
|
||||
label: i18n.ts._miRoom._objects._djPlayer.image,
|
||||
presets: {
|
||||
'waveform': {
|
||||
label: i18n.ts._miRoom._objects._djPlayer['image:waveform'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -7,31 +7,25 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
|
||||
import { cm, remap, WORLD_SCALE } from '@/world/utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ductRailSpotLights = defineObject({
|
||||
id: 'ductRailSpotLights',
|
||||
name: i18n.ts._miRoom._objects.ductRailSpotLights,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.bodyMat,
|
||||
},
|
||||
light: {
|
||||
type: 'light',
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.light,
|
||||
},
|
||||
angleV: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.angleV,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
angleH: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.angleH,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { ductRailSpotLights } from './ductRailSpotLights.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ductRailSpotLights_ui = defineObjectUi<typeof ductRailSpotLights>({
|
||||
name: i18n.ts._miRoom._objects.ductRailSpotLights,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.bodyMat,
|
||||
},
|
||||
light: {
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.light,
|
||||
},
|
||||
angleV: {
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.angleV,
|
||||
},
|
||||
angleH: {
|
||||
label: i18n.ts._miRoom._objects._ductRailSpotLights.angleH,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ductTape = defineObject({
|
||||
id: 'ductTape',
|
||||
name: i18n.ts._miRoom._objects.ductTape,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/ductTape.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/ductTape.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { ductTape } from './ductTape.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ductTape_ui = defineObjectUi<typeof ductTape>({
|
||||
name: i18n.ts._miRoom._objects.ductTape,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -6,28 +6,22 @@
|
|||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { RecyvlingTextGrid } from '../../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const electronicDisplayBoard = defineObject({
|
||||
id: 'electronicDisplayBoard',
|
||||
name: i18n.ts._miRoom._objects.electronicDisplayBoard,
|
||||
options: {
|
||||
schema: {
|
||||
text: {
|
||||
type: 'string',
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.text,
|
||||
},
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.frameMat,
|
||||
},
|
||||
ledColor: {
|
||||
type: 'color',
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.ledColor,
|
||||
},
|
||||
ledBrightness: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.ledBrightness,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { electronicDisplayBoard } from './electronicDisplayBoard.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const electronicDisplayBoard_ui = defineObjectUi<typeof electronicDisplayBoard>({
|
||||
name: i18n.ts._miRoom._objects.electronicDisplayBoard,
|
||||
options: {
|
||||
text: {
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.text,
|
||||
},
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.frameMat,
|
||||
},
|
||||
ledColor: {
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.ledColor,
|
||||
},
|
||||
ledBrightness: {
|
||||
label: i18n.ts._miRoom._objects._electronicDisplayBoard.ledBrightness,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const emptyBento = defineObject({
|
||||
id: 'emptyBento',
|
||||
name: i18n.ts._miRoom._objects.emptyBento,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/emptyBento.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/emptyBento.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { emptyBento } from './emptyBento.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const emptyBento_ui = defineObjectUi<typeof emptyBento>({
|
||||
name: i18n.ts._miRoom._objects.emptyBento,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const energyDrink = defineObject({
|
||||
id: 'energyDrink',
|
||||
name: i18n.ts._miRoom._objects.energyDrink,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/energyDrink.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/energyDrink.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { energyDrink } from './energyDrink.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const energyDrink_ui = defineObjectUi<typeof energyDrink>({
|
||||
name: i18n.ts._miRoom._objects.energyDrink,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const envelope = defineObject({
|
||||
id: 'envelope',
|
||||
name: i18n.ts._miRoom._objects.envelope,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/envelope.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/envelope.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { envelope } from './envelope.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const envelope_ui = defineObjectUi<typeof envelope>({
|
||||
name: i18n.ts._miRoom._objects.envelope,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const facialTissue = defineObject({
|
||||
id: 'facialTissue',
|
||||
name: i18n.ts._miRoom._objects.facialTissue,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/facialTissue.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/facialTissue.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { facialTissue } from './facialTissue.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const facialTissue_ui = defineObjectUi<typeof facialTissue>({
|
||||
name: i18n.ts._miRoom._objects.facialTissue,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const glassCylinderPotPlant = defineObject({
|
||||
id: 'glassCylinderPotPlant',
|
||||
name: i18n.ts._miRoom._objects.glassCylinderPotPlant,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { glassCylinderPotPlant } from './glassCylinderPotPlant.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const glassCylinderPotPlant_ui = defineObjectUi<typeof glassCylinderPotPlant>({
|
||||
name: i18n.ts._miRoom._objects.glassCylinderPotPlant,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,27 +5,22 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { createTextureManager, defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const handheldGameConsole = defineObject({
|
||||
id: 'handheldGameConsole',
|
||||
name: i18n.ts._miRoom._objects.handheldGameConsole,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.bodyMat,
|
||||
},
|
||||
screenBrightness: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.screenBrightness,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
image: {
|
||||
type: 'image',
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.image,
|
||||
presets: [],
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { handheldGameConsole } from './handheldGameConsole.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const handheldGameConsole_ui = defineObjectUi<typeof handheldGameConsole>({
|
||||
name: i18n.ts._miRoom._objects.handheldGameConsole,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.bodyMat,
|
||||
},
|
||||
screenBrightness: {
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.screenBrightness,
|
||||
},
|
||||
image: {
|
||||
label: i18n.ts._miRoom._objects._handheldGameConsole.image,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,30 +5,25 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const hangingDuctRail = defineObject({
|
||||
id: 'hangingDuctRail',
|
||||
name: i18n.ts._miRoom._objects.hangingDuctRail,
|
||||
options: {
|
||||
schema: {
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
height: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.height,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.bodyMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { hangingDuctRail } from './hangingDuctRail.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const hangingDuctRail_ui = defineObjectUi<typeof hangingDuctRail>({
|
||||
name: i18n.ts._miRoom._objects.hangingDuctRail,
|
||||
options: {
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.width,
|
||||
},
|
||||
height: {
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.height,
|
||||
},
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._hangingDuctRail.bodyMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const hangingTShirt = defineObject({
|
||||
id: 'hangingTShirt',
|
||||
name: i18n.ts._miRoom._objects.hangingTShirt,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/hangingTShirt.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/hangingTShirt.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { hangingTShirt } from './hangingTShirt.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const hangingTShirt_ui = defineObjectUi<typeof hangingTShirt>({
|
||||
name: i18n.ts._miRoom._objects.hangingTShirt,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const icosahedron = defineObject({
|
||||
id: 'icosahedron',
|
||||
name: i18n.ts._miRoom._objects.icosahedron,
|
||||
options: {
|
||||
schema: {
|
||||
mat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._icosahedron.mat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/icosahedron.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/icosahedron.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { icosahedron } from './icosahedron.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const icosahedron_ui = defineObjectUi<typeof icosahedron>({
|
||||
name: i18n.ts._miRoom._objects.icosahedron,
|
||||
options: {
|
||||
mat: {
|
||||
label: i18n.ts._miRoom._objects._icosahedron.mat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,22 +5,18 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject, defineObjectClass } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
const base = defineObjectClass({
|
||||
options: {
|
||||
schema: {
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.boardMat,
|
||||
},
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
@ -81,18 +77,15 @@ const base = defineObjectClass({
|
|||
|
||||
export const ironFrameShelf5 = base.extend({
|
||||
id: 'ironFrameShelf5',
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf5,
|
||||
path: () => 'iron-frame-shelf/iron-frame-shelf-5',
|
||||
});
|
||||
|
||||
export const ironFrameShelf4 = base.extend({
|
||||
id: 'ironFrameShelf4',
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf4,
|
||||
path: () => 'iron-frame-shelf/iron-frame-shelf-4',
|
||||
});
|
||||
|
||||
export const ironFrameShelf3 = base.extend({
|
||||
id: 'ironFrameShelf3',
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf3,
|
||||
path: () => 'iron-frame-shelf/iron-frame-shelf-3',
|
||||
});
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { ironFrameShelf5, ironFrameShelf4, ironFrameShelf3 } from './ironFrameShelf.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ironFrameShelf5_ui = defineObjectUi<typeof ironFrameShelf5>({
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf5,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.boardMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.width,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const ironFrameShelf4_ui = defineObjectUi<typeof ironFrameShelf4>({
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf4,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.boardMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.width,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const ironFrameShelf3_ui = defineObjectUi<typeof ironFrameShelf3>({
|
||||
name: i18n.ts._miRoom._objects.ironFrameShelf3,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.boardMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameShelf.width,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,38 +5,31 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ironFrameTable = defineObject({
|
||||
id: 'ironFrameTable',
|
||||
name: i18n.ts._miRoom._objects.ironFrameTable,
|
||||
options: {
|
||||
schema: {
|
||||
frameMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.boardMat,
|
||||
},
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
depth: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.depth,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
height: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.height,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { ironFrameTable } from './ironFrameTable.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const ironFrameTable_ui = defineObjectUi<typeof ironFrameTable>({
|
||||
name: i18n.ts._miRoom._objects.ironFrameTable,
|
||||
options: {
|
||||
frameMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.frameMat,
|
||||
},
|
||||
boardMat: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.boardMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.width,
|
||||
},
|
||||
depth: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.depth,
|
||||
},
|
||||
height: {
|
||||
label: i18n.ts._miRoom._objects._ironFrameTable.height,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,21 +5,16 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const issyoubin = defineObject({
|
||||
id: 'issyoubin',
|
||||
name: i18n.ts._miRoom._objects.issyoubin,
|
||||
options: {
|
||||
schema: {
|
||||
variation: {
|
||||
type: 'enum',
|
||||
label: i18n.ts._miRoom._objects._issyoubin.variation,
|
||||
enum: [{
|
||||
label: 'A',
|
||||
value: 'misuki',
|
||||
}, {
|
||||
label: 'B',
|
||||
value: 'ai',
|
||||
}],
|
||||
},
|
||||
|
|
|
|||
25
packages/frontend/src/world/room/objects/issyoubin.ui.ts
Normal file
25
packages/frontend/src/world/room/objects/issyoubin.ui.ts
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { issyoubin } from './issyoubin.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const issyoubin_ui = defineObjectUi<typeof issyoubin>({
|
||||
name: i18n.ts._miRoom._objects.issyoubin,
|
||||
options: {
|
||||
variation: {
|
||||
label: i18n.ts._miRoom._objects._issyoubin.variation,
|
||||
enum: {
|
||||
'misuki': {
|
||||
label: 'A',
|
||||
},
|
||||
'ai': {
|
||||
label: 'B',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,20 +5,16 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const keyboard = defineObject({
|
||||
id: 'keyboard',
|
||||
name: i18n.ts._miRoom._objects.keyboard,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._keyboard.bodyMat,
|
||||
},
|
||||
keyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._keyboard.keyMat,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
20
packages/frontend/src/world/room/objects/keyboard.ui.ts
Normal file
20
packages/frontend/src/world/room/objects/keyboard.ui.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { keyboard } from './keyboard.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const keyboard_ui = defineObjectUi<typeof keyboard>({
|
||||
name: i18n.ts._miRoom._objects.keyboard,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._keyboard.bodyMat,
|
||||
},
|
||||
keyMat: {
|
||||
label: i18n.ts._miRoom._objects._keyboard.keyMat,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -7,36 +7,29 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { createTextureManager, defineObject } from '../object.js';
|
||||
import { cm, WORLD_SCALE } from '../../utility.js';
|
||||
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const laptopPc = defineObject({
|
||||
id: 'laptopPc',
|
||||
name: i18n.ts._miRoom._objects.laptopPc,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._laptopPc.bodyMat,
|
||||
},
|
||||
bezelMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._laptopPc.bezelMat,
|
||||
},
|
||||
screenBrightness: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._laptopPc.screenBrightness,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
image: {
|
||||
type: 'image',
|
||||
label: i18n.ts._miRoom._objects._laptopPc.image,
|
||||
presets: [],
|
||||
},
|
||||
openAngle: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._laptopPc.openAngle,
|
||||
min: -Math.PI / 2,
|
||||
max: Math.PI / 2,
|
||||
step: 0.01,
|
||||
|
|
|
|||
29
packages/frontend/src/world/room/objects/laptopPc.ui.ts
Normal file
29
packages/frontend/src/world/room/objects/laptopPc.ui.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { laptopPc } from './laptopPc.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const laptopPc_ui = defineObjectUi<typeof laptopPc>({
|
||||
name: i18n.ts._miRoom._objects.laptopPc,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._laptopPc.bodyMat,
|
||||
},
|
||||
bezelMat: {
|
||||
label: i18n.ts._miRoom._objects._laptopPc.bezelMat,
|
||||
},
|
||||
screenBrightness: {
|
||||
label: i18n.ts._miRoom._objects._laptopPc.screenBrightness,
|
||||
},
|
||||
image: {
|
||||
label: i18n.ts._miRoom._objects._laptopPc.image,
|
||||
},
|
||||
openAngle: {
|
||||
label: i18n.ts._miRoom._objects._laptopPc.openAngle,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -5,16 +5,13 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { createTextureManager, defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const largeMousepad = defineObject({
|
||||
id: 'largeMousepad',
|
||||
name: i18n.ts._miRoom._objects.largeMousepad,
|
||||
options: {
|
||||
schema: {
|
||||
image: {
|
||||
type: 'image',
|
||||
label: i18n.ts._miRoom._objects._largeMousepad.image,
|
||||
presets: [],
|
||||
},
|
||||
},
|
||||
|
|
|
|||
17
packages/frontend/src/world/room/objects/largeMousepad.ui.ts
Normal file
17
packages/frontend/src/world/room/objects/largeMousepad.ui.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { largeMousepad } from './largeMousepad.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const largeMousepad_ui = defineObjectUi<typeof largeMousepad>({
|
||||
name: i18n.ts._miRoom._objects.largeMousepad,
|
||||
options: {
|
||||
image: {
|
||||
label: i18n.ts._miRoom._objects._largeMousepad.image,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -6,28 +6,22 @@ import * as BABYLON from '@babylonjs/core';
|
|||
import { defineObject } from '../object.js';
|
||||
import { cm, WORLD_SCALE } from '../../utility.js';
|
||||
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const lavaLamp = defineObject({
|
||||
id: 'lavaLamp',
|
||||
name: i18n.ts._miRoom._objects.lavaLamp,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.bodyMat,
|
||||
},
|
||||
glassMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.glassMat,
|
||||
},
|
||||
lightColor: {
|
||||
type: 'color',
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.lightColor,
|
||||
},
|
||||
lavaColor: {
|
||||
type: 'color',
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.lavaColor,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
|
|
|||
26
packages/frontend/src/world/room/objects/lavaLamp.ui.ts
Normal file
26
packages/frontend/src/world/room/objects/lavaLamp.ui.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { lavaLamp } from './lavaLamp.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const lavaLamp_ui = defineObjectUi<typeof lavaLamp>({
|
||||
name: i18n.ts._miRoom._objects.lavaLamp,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.bodyMat,
|
||||
},
|
||||
glassMat: {
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.glassMat,
|
||||
},
|
||||
lightColor: {
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.lightColor,
|
||||
},
|
||||
lavaColor: {
|
||||
label: i18n.ts._miRoom._objects._lavaLamp.lavaColor,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const letterCase = defineObject({
|
||||
id: 'letterCase',
|
||||
name: i18n.ts._miRoom._objects.letterCase,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/letterCase.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/letterCase.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { letterCase } from './letterCase.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const letterCase_ui = defineObjectUi<typeof letterCase>({
|
||||
name: i18n.ts._miRoom._objects.letterCase,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -5,20 +5,16 @@
|
|||
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const lowPartitionBar = defineObject({
|
||||
id: 'lowPartitionBar',
|
||||
name: i18n.ts._miRoom._objects.lowPartitionBar,
|
||||
options: {
|
||||
schema: {
|
||||
bodyMat: {
|
||||
type: 'material',
|
||||
label: i18n.ts._miRoom._objects._lowPartitionBar.bodyMat,
|
||||
},
|
||||
width: {
|
||||
type: 'range',
|
||||
label: i18n.ts._miRoom._objects._lowPartitionBar.width,
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { lowPartitionBar } from './lowPartitionBar.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const lowPartitionBar_ui = defineObjectUi<typeof lowPartitionBar>({
|
||||
name: i18n.ts._miRoom._objects.lowPartitionBar,
|
||||
options: {
|
||||
bodyMat: {
|
||||
label: i18n.ts._miRoom._objects._lowPartitionBar.bodyMat,
|
||||
},
|
||||
width: {
|
||||
label: i18n.ts._miRoom._objects._lowPartitionBar.width,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const miObjet = defineObject({
|
||||
id: 'miObjet',
|
||||
name: i18n.ts._miRoom._objects.miObjet,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/mi-objet.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/mi-objet.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { miObjet } from './mi-objet.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const miObjet_ui = defineObjectUi<typeof miObjet>({
|
||||
name: i18n.ts._miRoom._objects.miObjet,
|
||||
options: {},
|
||||
});
|
||||
|
|
@ -4,11 +4,9 @@
|
|||
*/
|
||||
|
||||
import { defineObject } from '../object.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const miPlate = defineObject({
|
||||
id: 'miPlate',
|
||||
name: i18n.ts._miRoom._objects.miPlate,
|
||||
options: {
|
||||
schema: {},
|
||||
default: {},
|
||||
|
|
|
|||
13
packages/frontend/src/world/room/objects/miPlate.ui.ts
Normal file
13
packages/frontend/src/world/room/objects/miPlate.ui.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
import { defineObjectUi } from '../defineObjectUi.js';
|
||||
import type { miPlate } from './miPlate.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
|
||||
export const miPlate_ui = defineObjectUi<typeof miPlate>({
|
||||
name: i18n.ts._miRoom._objects.miPlate,
|
||||
options: {},
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue