diff --git a/alpha_todo.txt b/alpha_todo.txt index 62342af..082801c 100644 --- a/alpha_todo.txt +++ b/alpha_todo.txt @@ -1,38 +1,12 @@ Simple to-do for Druid Alpha 0.2.0 - --- High -+ remove button event and match_event from druid -+ add hover component -+ add druid events/triggers? better callback system -+ better name for locale component? lang? lang_text? -+ better name for slider component? Slider is ok -+ Druid store assets - separate repository with rich components (progress_rich migrate) -+ refactor on_swipe. To on_scroll? Add input priority -+ separate custom data and predefined fields in components? Every component have their fields and events -+ How to set custom sprites for button states? -+ add druid settings (add auto_focus input and other stuff) (to game.project) - -+ button add key trigger -+ button and hover click restriction zone? -+ button polish, actions -+ better scroll size management, check different cases. So implicit now -+ better callbacks for every components - -- unify component api (get/set/to and other general stuff) -- better grid + scroll management - better default style, add template for custom style - compare with gooey -- add docs for all components -- add docs folder for every component with gifs? Solutions - remove component autoremove all children component - --- Low +- unify component api (get/set/to and other general stuff) - add input_text component for alpha release -- add code template and example for user components - custom input settings (name of touch, text, etc) -- add good examples with template and/or nodes (basic component no use any of them) - try use final druid in real project (FI uses custom druid) (use in 4321?) - ability to relocalize all locale text nodes - ability to control buttons via controller. Select it by cursor (d-pad) diff --git a/druid/base/button.lua b/druid/base/button.lua index 9c431f9..3ae4f72 100644 --- a/druid/base/button.lua +++ b/druid/base/button.lua @@ -7,6 +7,7 @@ -- @tfield druid_event on_repeated_click On repeated action button callback -- @tfield druid_event on_long_click On long tap button callback -- @tfield druid_event on_double_click On double tap button callback +-- @tfield druid_event on_hold_click On button hold before long_click callback --- Component fields -- @table Fields @@ -99,7 +100,7 @@ end local function on_button_hold(self, press_time) - self.on_hold_callback:trigger(self:get_context(), self.params, self, press_time) + self.on_hold_click:trigger(self:get_context(), self.params, self, press_time) end @@ -167,7 +168,7 @@ function M.init(self, node, callback, params, anim_node, event) self.on_repeated_click = Event() self.on_long_click = Event() self.on_double_click = Event() - self.on_hold_callback = Event() + self.on_hold_click = Event() end