1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-11 21:43:58 +02:00
This commit is contained in:
syuilo
2026-05-03 18:42:04 +09:00
parent fa0eac34c2
commit 203f29afb9
3 changed files with 353 additions and 304 deletions

View File

@@ -35,6 +35,7 @@ export class RoomController {
public isReady = ref(false);
public isSitting = ref(false);
public isEditMode = ref(false);
public isRoomLightOn = ref(true);
public grabbing = ref<{ forInstall: boolean } | null>(null);
public gridSnapping = ref({ enabled: true, scale: cm(4) });
public selected = ref<{
@@ -279,6 +280,7 @@ export class RoomController {
this.isReady.value = false;
this.isSitting.value = false;
this.isEditMode.value = false;
this.isRoomLightOn.value = true;
this.grabbing.value = null;
this.selected.value = null;
this.initializeProgress.value = 0;
@@ -372,7 +374,12 @@ export class RoomController {
}
public toggleRoomLight() {
this.call('toggleRoomLight');
if (this.isRoomLightOn.value) {
this.call('turnOffRoomLight');
} else {
this.call('turnOnRoomLight');
}
this.isRoomLightOn.value = !this.isRoomLightOn.value;
}
public resize() {