Workflow test

This commit is contained in:
Robert Jelic
2025-02-10 18:06:02 +01:00
parent 6d59be221f
commit cdcda3ab7d
2 changed files with 11 additions and 17 deletions

View File

@@ -105,6 +105,10 @@ function VisualElement:mouse_release()
self.set("clicked", false)
end
--- Handles all events
--- @param event string The event to handle
--- @vararg any The arguments for the event
--- @return boolean? handled Whether the event was handled
function VisualElement:handleEvent(event, ...)
if(self[event])then
return self[event](self, ...)