ludic.ui: a fired event, a press, a hold and a native's events make nothing - a ring of 16 event objects and one hold object made with the state with their keys, and every ui_fire with no value carries the kept null

The last kept bytes of the leak gate's pack, shop and journal screens (memory_final, count mode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-28 19:20:01 +03:00
parent 1e714623b7
commit 4df15eacfb
7 changed files with 37 additions and 10 deletions

View file

@ -25,7 +25,7 @@ function ct_activate(ui_st: mut UiState, n: UiNode) -> void {
let t = ct_type(n)
if t == "checkbox" { ct_change(ui_st, n, vl_bool(ui_st, not ui_attr_on(n, "checked"))) } else if t == "radio" { ct_change(ui_st, n, ui_attr(n, "value")) } else if t == "select" { ct_step(ui_st, n, 1) } else if t == "key" { ct_key_start(ui_st, n) } else if t == "number" { ct_num_commit(ui_st, n) } else if t == "text" { ct_submit(ui_st, n) } else if t == "" {
ui_sound(ui_st, ct_sound(n))
ui_fire(ui_st, n, "press", Value.null())
ui_fire(ui_st, n, "press", ui_st.fc_none)
}
}
function ct_step(ui_st: mut UiState, n: UiNode, d: int) -> void {