Skip to content

Commit a2cf36e

Browse files
committed
chore(types): panel onFrameTick
1 parent 79da769 commit a2cf36e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

noctalia.d.luau

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ declare panel: {
395395
render: (tree: UiNode) -> (),
396396
close: () -> (),
397397
setWantsSecondTicks: (wants: boolean) -> (),
398+
setNeedsFrameTick: (needs: boolean) -> (),
398399
}
399400

400401
-- ── Entry-point callbacks ────────────────────────────────────────────────────
@@ -413,7 +414,8 @@ declare panel: {
413414
-- -- in that direction: check it to step a list once per
414415
-- -- flick, ignore it to ramp a value per notch.
415416
-- function onQuery(text) / onActivate(id) end -- launcher provider
416-
-- function onFrameTick(deltaMs) end -- continuous animation (setNeedsFrameTick)
417+
-- function onFrameTick(deltaMs) end -- desktop widget, or open panel (API 18+); continuous
418+
-- -- animation, after setNeedsFrameTick(true)
417419
-- function onAudioSpectrum(valuesCsv, stateCsv) end -- audio-reactive bar widget
418420
-- function onOpen(context) / onClose() end -- panel lifecycle
419421
-- function onKey(chord, pressed) end -- panel: a capture_keys chord, verbatim from the

0 commit comments

Comments
 (0)