diff --git a/gfx/element.lua b/gfx/element.lua index 6319fdc..13fef78 100644 --- a/gfx/element.lua +++ b/gfx/element.lua @@ -167,4 +167,8 @@ function Element:handleEvent(evt) return false end +function Element:setOnClick(onClick) + self.onClick = onClick +end + return Element \ No newline at end of file