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
|
|
@ -5,11 +5,13 @@ function fr_was_hovered(ui_st: UiState, key: string) -> bool { return sel_has(ui
|
|||
function fr_pointer(ui_st: mut UiState, root: UiNode) -> void {
|
||||
let i = ui_st.in_now
|
||||
ui_st.fr_down_now = i.down
|
||||
let keys = new []string
|
||||
let keys = ui_st.fr_hover_sp # the spare list, emptied; last frame's goes spare
|
||||
List.clear(keys)
|
||||
let top = pp_top(root)
|
||||
var scope = root
|
||||
if top != null { scope = top }
|
||||
fr_under(scope, i.x, i.y, keys)
|
||||
ui_st.fr_hover_sp = ui_st.fr_hover
|
||||
ui_st.fr_hover = keys
|
||||
if top != null and pp_pointer(ui_st, top) { return }
|
||||
if ui_st.sc_drag != "" or ct_key_mouse(ui_st, root) { return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue