0.10.6: setButtonEnabled action — disable buttons from the timeline

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
thandClaude Opus 4.7 committed 2026-04-22 19:17:48 +02:00
1 parent d3c5b8b640
commit 0bbef66192
8 files changed
+221 -2

No files matched your search

+4
View File
@@ -34,6 +34,7 @@ import {
scriptFramesInRange,
type ActionRuntime,
} from '@/lib/actions'
import { useButtonRuntime } from '@/composables/useButtonRuntime'
const uid = () => Math.random().toString(36).slice(2, 10)
@@ -2639,6 +2640,9 @@ export const useSceneStore = defineStore('scene', {
// the current playhead — navigation vs. transition.
self.switchScene(sceneId, { resetPlayhead: true })
},
setButtonEnabled(layerId: string, enabled: boolean) {
useButtonRuntime().setDisabled(layerId, !enabled)
},
warn(msg: string) {
// eslint-disable-next-line no-console
console.warn('[ruwio]', msg)