ludic.ui: a pooled node's reset lets go of its wrapped lines instead of clearing them - they are the memo's list (ly_wrap), shared by every node with that text, so a text that wraps vanished from the third frame on, in the game as in ui-preview; smoke.txt holds four frames of it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-29 20:17:39 +03:00
parent dd25267502
commit e84a59aeff
3 changed files with 28 additions and 2 deletions

View file

@ -142,6 +142,32 @@
< 0 0 1 1 #ffffff 1
<= ok
# wrapped text stays drawn: a pooled node's reset once emptied the memo's shared lines, so a text
# that wraps vanished from the third frame on (two generations a screen)
> load "Wrap" "<div class=\"c\"><p>Seesaibling aus dem Nordbecken</p></div>" ".c { width: 120px }"
<= ok
> show "Wrap"
<= ok
> frame 0
< "Seesaibling aus"
< "dem Nordbecken"
<= ok
> frame 1
< "Seesaibling aus"
<= ok
> frame 2
< "Seesaibling aus"
< "dem Nordbecken"
<= ok
> frame 3
< "dem Nordbecken"
<= ok
> frobnicate
<= fail "unknown request frobnicate"