Make UI events travel up parent hierarchy until event is either :handled or there is no parent to notify

This commit is contained in:
2020-01-15 21:03:21 -06:00
parent 4b25d724b5
commit 9a3caabc7e

View File

@@ -23,6 +23,7 @@ module CyberarmEngine
return :handled if handler.call(self, *args) == :handled
end
parent.publish(event, *args) if parent
return nil
end