mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-13 19:55:39 +02:00
wip
This commit is contained in:
@@ -149,39 +149,7 @@ const isZenMode = ref(false);
|
||||
const isRoomSettingsOpen = ref(false);
|
||||
const isChanged = ref(false);
|
||||
|
||||
const data = localStorage.getItem('roomData') != null ? { ...JSON.parse(localStorage.getItem('roomData')!), ...{
|
||||
heya: {
|
||||
type: 'simple',
|
||||
options: {
|
||||
dimension: [300, 300],
|
||||
window: 'demado',
|
||||
wallN: {
|
||||
material: null,
|
||||
color: [0.9, 0.9, 0.9],
|
||||
},
|
||||
wallE: {
|
||||
material: null,
|
||||
color: [0.33, 0.34, 0.35],
|
||||
},
|
||||
wallS: {
|
||||
material: null,
|
||||
color: [0.9, 0.9, 0.9],
|
||||
},
|
||||
wallW: {
|
||||
material: null,
|
||||
color: [0.9, 0.9, 0.9],
|
||||
},
|
||||
flooring: {
|
||||
material: 'wood',
|
||||
color: [0.9, 0.9, 0.9],
|
||||
},
|
||||
ceiling: {
|
||||
material: null,
|
||||
color: [0.9, 0.9, 0.9],
|
||||
},
|
||||
},
|
||||
},
|
||||
} } : {
|
||||
const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.getItem('roomData')!) : {
|
||||
heya: {
|
||||
type: 'simple',
|
||||
options: {
|
||||
|
||||
@@ -1633,6 +1633,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
||||
}
|
||||
|
||||
public updateHeyaOptions(options: RoomState['heya']['options']) {
|
||||
this.roomState.heya.options = options;
|
||||
this.heyaManager.applyOptions(options);
|
||||
this.emit('changeRoomState', { roomState: this.roomState });
|
||||
}
|
||||
|
||||
@@ -32,14 +32,14 @@ export const wallMountSpotLight = defineObject({
|
||||
label: 'Vertical angle',
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.1,
|
||||
step: 0.01,
|
||||
},
|
||||
angleH: {
|
||||
type: 'range',
|
||||
label: 'Horizontal angle',
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.1,
|
||||
step: 0.01,
|
||||
},
|
||||
},
|
||||
default: {
|
||||
|
||||
Reference in New Issue
Block a user