From b99f57e4801ce765b3dc8c47f1853bcec4663f74 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Wed, 8 Jun 2022 14:15:34 -0400 Subject: [PATCH] #62 redrawing --- graphics/element.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/graphics/element.lua b/graphics/element.lua index 97b88f7..e151227 100644 --- a/graphics/element.lua +++ b/graphics/element.lua @@ -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