ludic.ui: a bar's min, max and value read without ui_attr's new null for a miss (ui_attr_float), and the action answer ring made full with the state - craft's bar kept a block a frame, pack/shop/journal kept one frame filling the ring
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8c72437ecc
commit
fc22c3f250
4 changed files with 17 additions and 7 deletions
|
|
@ -77,5 +77,10 @@ function ev_into(ui_st: mut UiState) -> Val {
|
|||
return ring[at]
|
||||
}
|
||||
const EV_RING: int = 64
|
||||
function ev_ring_new() -> []Val {
|
||||
let l = new []Val
|
||||
for i in 0 .. EV_RING { push(l, Value.null()) }
|
||||
return l
|
||||
}
|
||||
function ui_eval_text(ui_st: mut UiState, x: UiExpr, e: UiEnv) -> string { return vl_text(ui_eval(ui_st, x, e)) }
|
||||
function ui_eval_bool(ui_st: mut UiState, x: UiExpr, e: UiEnv) -> bool { return vl_truthy(ui_eval(ui_st, x, e)) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue