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