Add feedback components 106-130; inert scope, focus return, two-step deploy

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 20:58:30 -04:00
1 parent bce416182e
commit bd3877e1b1
87 files changed
+2492 -147

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ type scrambleState struct {
// ScrambleText settles from random glyphs to s, left to right.
func ScrambleText(c *ui.Context, s string, o ScrambleTextOptions) *ui.Element {
k, sc := pixel.K(c), scale(o.Scale)
fps := orDef("ScrambleText FPS", o.FPS, 30)
fps := pixel.Or("ScrambleText FPS", o.FPS, 30)
rs := []rune(s)
e := ui.Box(c).Size(k.D(pixel.Measure(s)*sc), k.D(pixel.LineHeight*sc)).Label(s).Role(ui.RoleText)
st := ui.Local(e, scrambleKey{}, func() scrambleState { return scrambleState{start: -1} })