ludic.ui, ludic.i18n: frame_allocs to 0 - a wrap, an ellipsis, a tooltip's lines, a text-shadow's colour and a range's value kept by what made them; pointer events from a ring; inline text joined through the memo; the pool's and the state's lists through ui_kept; parse, memo miss, pool miss, lazy start and template errors declared; the translation cache clears in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
629579123a
commit
429e419327
71 changed files with 365 additions and 155 deletions
|
|
@ -27,6 +27,7 @@ export function ui_native(ui_st: mut UiState, tag: string, measure: fn(UiNode, f
|
|||
export function ui_native_input(ui_st: mut UiState, tag: string, f: fn(UiNode, UiPointer) -> bool) -> void {
|
||||
let nv = nt_find(ui_st, tag)
|
||||
if nv == null {
|
||||
@alloc_ok("only when a template is wrong: a broken screen, never a working one")
|
||||
ui_err(ui_st, `ui_native_input: there is no native <{tag}> - ui_native it first`)
|
||||
return
|
||||
}
|
||||
|
|
@ -44,9 +45,9 @@ function nt_fired_clear(ui_st: mut UiState) -> void {
|
|||
List.clear(ui_st.nt_q_vals)
|
||||
}
|
||||
export function ui_fire(ui_st: mut UiState, n: UiNode, name: string, value: Val) -> void {
|
||||
push(ui_st.nt_q_nodes, n)
|
||||
push(ui_st.nt_q_names, name)
|
||||
push(ui_st.nt_q_vals, value)
|
||||
ui_kept(ui_st.nt_q_nodes, n)
|
||||
ui_kept(ui_st.nt_q_names, name)
|
||||
ui_kept(ui_st.nt_q_vals, value)
|
||||
}
|
||||
function nt_fired_run(ui_st: mut UiState) -> void {
|
||||
let nodes = ui_st.nt_q_nodes # run from these while what they fire goes to the spares
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue