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
|
|
@ -8,18 +8,7 @@ function fr_class_nodes(ui_st: mut UiState, cls: UiClass) -> UiNode {
|
|||
ui_st.ui_view = null
|
||||
uc_load(ui_st, cls)
|
||||
let root = fr_root(ui_st, cls.name, cls.sheet)
|
||||
if cls.use == null {
|
||||
let use = new UiTpl
|
||||
use.tag = cls.name
|
||||
use.cls = cls
|
||||
use.keys = new []string
|
||||
use.vals = new []UiExpr
|
||||
use.on_keys = new []string
|
||||
use.on_acts = new []UiAct
|
||||
use.kids = new []UiTpl
|
||||
cls.use = use
|
||||
cls.none = Value.object()
|
||||
}
|
||||
if cls.use == null { fr_class_use(cls) }
|
||||
let use = cls.use
|
||||
let e = env_new(ui_st, null)
|
||||
e.model = cls.none
|
||||
|
|
@ -37,3 +26,17 @@ function fr_root(ui_st: mut UiState, key: string, sheet: UiSheet) -> UiNode {
|
|||
root.sheet = sheet
|
||||
return root
|
||||
}
|
||||
|
||||
@alloc_ok("once per component class: the tag that shows it as a screen")
|
||||
function fr_class_use(cls: UiClass) -> void {
|
||||
let use = new UiTpl
|
||||
use.tag = cls.name
|
||||
use.cls = cls
|
||||
use.keys = new []string
|
||||
use.vals = new []UiExpr
|
||||
use.on_keys = new []string
|
||||
use.on_acts = new []UiAct
|
||||
use.kids = new []UiTpl
|
||||
cls.use = use
|
||||
cls.none = Value.object()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue