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
|
|
@ -5,14 +5,15 @@ function ct_label(ui_st: mut UiState, n: UiNode) -> void {
|
|||
let label = ui_attr_text(n, "label")
|
||||
let note = ui_attr_text(n, "note")
|
||||
if note == "" {
|
||||
if label != "" { push(n.children, ct_part(ui_st, n, "ui-label", ui_tr(ui_st, label))) }
|
||||
if label != "" { ui_kept(n.children, ct_part(ui_st, n, "ui-label", ui_tr(ui_st, label))) }
|
||||
return
|
||||
}
|
||||
let both = ct_part(ui_st, n, "ui-labels", "")
|
||||
if label != "" { push(both.children, ct_part(ui_st, n, "ui-label", ui_tr(ui_st, label))) }
|
||||
push(both.children, ct_part(ui_st, n, "ui-note", ui_tr(ui_st, note)))
|
||||
push(n.children, both)
|
||||
if label != "" { ui_kept(both.children, ct_part(ui_st, n, "ui-label", ui_tr(ui_st, label))) }
|
||||
ui_kept(both.children, ct_part(ui_st, n, "ui-note", ui_tr(ui_st, note)))
|
||||
ui_kept(n.children, both)
|
||||
}
|
||||
@alloc_ok("a memo miss: once per value a range shows (memo_more.ludic)")
|
||||
function ct_value_text(n: UiNode) -> string {
|
||||
let v = ui_attr(n, "value")
|
||||
if Value.kind(v) == 0 { return "" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue