ludic.ui: no number made text to be read back - a style handler returns before any text for a key not its own, grow/alpha/animations/scroll read numbers as numbers, el_secs split once per text, a tooltip translated when its title changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 10:43:44 +03:00
parent 5f2900ffda
commit 706c7abc55
9 changed files with 39 additions and 9 deletions

View file

@ -79,3 +79,9 @@ function vl_text_u(ui_st: mut UiState, v: Val) -> string {
}
return vl_text(v)
}
# a value as a number: a number read as one, only text parsed (a float's text written per frame to be
# read straight back was a leak - an animation's opacity, a flex-grow)
function el_numv(ui_st: mut UiState, v: Val) -> float {
if vl_num(v) { return Value.as_float(v) }
return el_num(vl_text_u(ui_st, v))
}