ludic.ui: var() values found by their pieces, tpl_words/url/border-image by their text, nine-slices, picking, lifecycle, focus, hover, the event queue and input without a list or record made a frame
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
edaec666d1
commit
08ac2f1125
21 changed files with 281 additions and 98 deletions
|
|
@ -2,12 +2,12 @@
|
|||
# size, and cuts what still does not fit with an ellipsis; line-height (a multiple of the font size,
|
||||
# px or em) spaces a text's lines. Both are inherited, as font properties are.
|
||||
function el_text_fit(ui_st: mut UiState, n: UiNode, s: string) -> void {
|
||||
let parts = mm_split(ui_st, tpl_words(s), 32)
|
||||
let parts = mm_split(ui_st, tw(ui_st, s), 32)
|
||||
nx(n).fit_min = 0.0
|
||||
if len(parts) >= 2 and parts[0] == "shrink" { nx(n).fit_min = Math.max(el_unit(ui_st, parts[1]), 1.0) }
|
||||
}
|
||||
function el_line_h(ui_st: UiState, n: UiNode, s0: string) -> void {
|
||||
let s = tpl_words(s0)
|
||||
function el_line_h(ui_st: mut UiState, n: UiNode, s0: string) -> void {
|
||||
let s = tw(ui_st, s0)
|
||||
let x = nx(n)
|
||||
x.lh_kind = 0
|
||||
if s == "normal" or s == "" { return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue