ludic.ui, ludic.i18n: frame_keeps and birth_leaks to 0 - :nth-child's a and b read once per argument, a border-image's miss its own function; typing, the dev dump, parsing, the pointer ring's making, Ln's counted line and the plural header declared
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
23d204b9fc
commit
f8825dc55a
16 changed files with 67 additions and 23 deletions
|
|
@ -18,6 +18,7 @@ function fb_keep(ui_st: mut UiState, screen: string, root: UiNode) -> void {
|
|||
ui_kept(ui_st.fb_roots, root)
|
||||
}
|
||||
# the box of the element with that id (or key) on any screen shown, in screen pixels; null if none
|
||||
@alloc_ok("a question the game asks now and then (an anchor, a screen's box), never per frame")
|
||||
export function ui_box(ui_st: UiState, id: string) -> UiBox {
|
||||
for i in 0 .. len(ui_st.fb_roots) {
|
||||
let n = fb_find(ui_st.fb_roots[i], id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue