1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-24 15:04:07 +02:00
This commit is contained in:
syuilo
2026-02-12 15:55:13 +09:00
parent fb25331661
commit 2a1a03ef9d
7 changed files with 45 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<canvas ref="canvas" :class="$style.canvas"></canvas>
<div class="_buttons" :class="$style.controls">
<MkButton @click="grab">Grab</MkButton>
<MkButton @click="toggleLight">Toggle Light</MkButton>
</div>
</div>
</template>
@@ -207,6 +208,11 @@ function grab() {
canvas.value!.focus();
}
function toggleLight() {
engine.toggleRoomLight();
canvas.value!.focus();
}
definePage(() => ({
title: 'Room',
icon: 'ti ti-door',