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
|
|
@ -22,6 +22,7 @@ function lib_file(ui_st: mut UiState, path: string) -> UiFile {
|
|||
}
|
||||
let src = lib_text(ui_st, path)
|
||||
if len(src) == 0 {
|
||||
@alloc_ok("only when a template is wrong: a broken screen, never a working one")
|
||||
ui_err(ui_st, `{path}: cannot read it`)
|
||||
return null
|
||||
}
|
||||
|
|
@ -64,6 +65,7 @@ function lib_top(ui_st: mut UiState, f: UiFile, t: UiTpl) -> void {
|
|||
}
|
||||
let name = bd_name(t, "name", "")
|
||||
if name == "" or (t.tag != "component" and t.tag != "screen") {
|
||||
@alloc_ok("only when a template is wrong: a broken screen, never a working one")
|
||||
ui_err(ui_st, `{f.path}: <{t.tag}> - a file holds <import>s, <style>s, <component name=...>s and <screen name=...>s`)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue