From e5d8068a4e3301ea51ce427d6fd66f5f734bd370 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 18 Jul 2021 20:17:39 +0200 Subject: semi-working timecode input --- pages/editor.tsx | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/editor.tsx b/pages/editor.tsx index 47a6fb1..9460605 100644 --- a/pages/editor.tsx +++ b/pages/editor.tsx @@ -16,6 +16,7 @@ import { import KeybindSelector from '../components/keybindselector'; import PlaySkipIconAni from '../components/play-skip'; import Selection from '../components/selection'; +import TimecodeInput from '../components/timeinput'; import timeline, { anySlide, clickThroughBehaviours, @@ -1217,12 +1218,39 @@ function SlideProperties(props: { type: slideTypes; }) { if (props.type == 'default') return null; + + var slide = useHookstate(global).selection.slides[0]; + + var [test, setTest] = useState(0); + return
Properties {{ 'loop': <> - - + ).frame.get() - (slide as State).beginFrame.get()} + /> + ).beginFrame.get()} + update={newValue => { + (slide as State).frame.set(newValue); + global.update.refreshLiveTimeline.value(); + }} + player={player} + /> + ).frame.get()} + update={newValue => { + (slide as State).frame.set(newValue); + global.update.refreshLiveTimeline.value(); + }} + player={player} + /> , 'delay': <> @@ -1276,6 +1304,7 @@ function SlideSettings() { onChange={e => { if (selection.slides.value.length != 1) return; selection.slides[0].clickThroughBehaviour.set(e.target.value as clickThroughBehaviours); + global.update.refreshLiveTimeline.value(); }} IconComponent={ArrowDropDownRoundedIcon} value={clickThroughBehaviour} -- cgit v1.2.3