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