To-do list changes

This commit is contained in:
Insality 2020-02-25 00:26:53 +03:00
parent 09dbd66484
commit 5ea102d0aa
2 changed files with 3 additions and 5 deletions

View File

@ -13,9 +13,9 @@ Simple to-do for Druid Alpha 0.2.0
- add init/remove stuff for every style in component. How to set custom sprites for button states?
- add druid settings (add auto_focus input and other stuff)
- button add key trigger
+ button add key trigger
- button polish, actions
- button and hover click restriction zone?
+ button and hover click restriction zone?
- unify component api (get/set/to and other general stuff)
- better callbacks for every components

View File

@ -176,14 +176,12 @@ function M.on_input(self, action_id, action)
return false
end
local is_key_trigger = (action_id == self.key_trigger)
if not helper.is_enabled(self.node) then
return false
end
local is_pick = true
local is_key_trigger = (action_id == self.key_trigger)
if not is_key_trigger then
is_pick = gui.pick_node(self.node, action.x, action.y)
if self.click_zone then