ludic.ui, ludic.i18n: frame_allocs to 0 - a wrap, an ellipsis, a tooltip's lines, a text-shadow's colour and a range's value kept by what made them; pointer events from a ring; inline text joined through the memo; the pool's and the state's lists through ui_kept; parse, memo miss, pool miss, lazy start and template errors declared; the translation cache clears in place
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
629579123a
commit
429e419327
71 changed files with 365 additions and 155 deletions
22
packages/ludic.ui/pointer_ring.ludic
Normal file
22
packages/ludic.ui/pointer_ring.ludic
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# pointer_ring.ludic - a pointer event's record and the Value its handler is given, made once
|
||||
# events are made once and taken in turn: more than a frame fires before its handlers have run
|
||||
const PE_RING: int = 16
|
||||
function pe_evs__new() -> []UiPointer {
|
||||
let xs = new []UiPointer
|
||||
for i in 0 .. PE_RING { push(xs, new UiPointer) }
|
||||
return xs
|
||||
}
|
||||
function pe_vals__new() -> []Val {
|
||||
let xs = new []Val
|
||||
for i in 0 .. PE_RING {
|
||||
let v = Value.object()
|
||||
Value.put(v, "x", Value.float(0.0))
|
||||
Value.put(v, "y", Value.float(0.0))
|
||||
Value.put(v, "dx", Value.float(0.0))
|
||||
Value.put(v, "dy", Value.float(0.0))
|
||||
Value.put(v, "button", Value.int(0))
|
||||
Value.put(v, "wheel", Value.float(0.0))
|
||||
push(xs, v)
|
||||
}
|
||||
return xs
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue