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:
1 parent
d3c5b8b640
commit
0bbef66192
8 files changed
+221
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user