This commit is contained in:
Mikayla Fischler 2022-06-08 14:15:34 -04:00
parent 2ac9bab92e
commit b99f57e480

View File

@ -106,7 +106,7 @@ function element.new(args)
end end
-- draw the element given new data -- draw the element given new data
function public.draw(...) function public.update(...)
protected.on_update(...) protected.on_update(...)
end end
@ -120,6 +120,11 @@ function element.new(args)
protected.window.setVisible(false) protected.window.setVisible(false)
end end
-- re-draw the element
function public.redraw()
protected.window.redraw()
end
return protected return protected
end end