1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-25 21:24:14 +02:00
This commit is contained in:
syuilo
2026-04-30 19:24:10 +09:00
parent ce2e74f3ca
commit 6d6ae6728c
5 changed files with 54 additions and 116 deletions

View File

@@ -19,24 +19,24 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>color</template>
</MkInput>
<hr>
<MkSwitch :modelValue="options.withHari" @update:modelValue="v => { update({ withHari: v }); }">
<template #label>with Hari</template>
<MkSwitch :modelValue="options.withBeam" @update:modelValue="v => { update({ withBeam: v }); }">
<template #label>with Beam</template>
</MkSwitch>
<MkSelect
:items="[
{ label: 'None', value: null },
{ label: 'Wood', value: 'wood' },
{ label: 'Concrete', value: 'concrete' },
]" :modelValue="options.hariMaterial" @update:modelValue="v => { update({ hariMaterial: v }); }"
]" :modelValue="options.beamMaterial" @update:modelValue="v => { update({ beamMaterial: v }); }"
>
<template #label>hari material</template>
<template #label>beam material</template>
</MkSelect>
<MkInput :modelValue="getHex(options.hariColor)" type="color" @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ hariColor: c }); }">
<template #label>hari color</template>
<MkInput :modelValue="getHex(options.beamColor)" type="color" @update:modelValue="v => { const c = getRgb(v); if (c != null) update({ beamColor: c }); }">
<template #label>beam color</template>
</MkInput>
<hr>
<MkSwitch :modelValue="options.withHabaki" @update:modelValue="v => { update({ withHabaki: v }); }">
<template #label>with Habaki</template>
<MkSwitch :modelValue="options.withBaseboard" @update:modelValue="v => { update({ withBaseboard: v }); }">
<template #label>with Baseboard</template>
</MkSwitch>
</div>
</div>

View File

@@ -178,34 +178,34 @@ const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.
n: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
withBeam: false,
beamMaterial: null,
beamColor: [0.8, 0.8, 0.8],
withBaseboard: true,
},
e: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
withBeam: false,
beamMaterial: null,
beamColor: [0.8, 0.8, 0.8],
withBaseboard: true,
},
s: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
withBeam: false,
beamMaterial: null,
beamColor: [0.8, 0.8, 0.8],
withBaseboard: true,
},
w: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
withBeam: false,
beamMaterial: null,
beamColor: [0.8, 0.8, 0.8],
withBaseboard: true,
},
},
pillars: {
@@ -243,68 +243,6 @@ const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.
installedObjects: [],
};
// 後方互換性のため
if (data.heya.options.walls == null) {
data.heya.options.walls = {
n: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
},
e: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
},
s: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
},
w: {
material: null,
color: [0.9, 0.9, 0.9],
withHari: false,
hariMaterial: null,
hariColor: [0.8, 0.8, 0.8],
withHabaki: false,
},
};
}
if (data.heya.options.pillars == null) {
data.heya.options.pillars = {
nw: {
material: null,
color: [0.9, 0.9, 0.9],
show: false,
},
ne: {
material: null,
color: [0.9, 0.9, 0.9],
show: false,
},
sw: {
material: null,
color: [0.9, 0.9, 0.9],
show: false,
},
se: {
material: null,
color: [0.9, 0.9, 0.9],
show: false,
},
};
}
console.log('installedObjects:', data.installedObjects.length);
let latestData = deepClone(data);