#344 element redraws and shorter assert messages

This commit is contained in:
Mikayla Fischler
2023-09-29 19:34:10 -04:00
parent 70831b49d2
commit ed4180a072
35 changed files with 610 additions and 556 deletions

View File

@@ -88,16 +88,15 @@ local function text_field(args)
ifield.set_value(text)
end
-- handle focus
-- handle focus, enable, and redraw with show()
e.on_focused = ifield.show
e.on_unfocused = ifield.show
-- handle enable
e.on_enabled = ifield.show
e.on_disabled = ifield.show
e.redraw = ifield.show
-- initial draw
ifield.show()
e.redraw()
local elem, id = e.complete()
return elem, id, ifield.censor