Add on_input_wrong, add allowerd_characters, add simple wrong animation

This commit is contained in:
Insality
2020-04-18 02:01:45 +03:00
parent f02c68242a
commit 6d84f06c32
4 changed files with 53 additions and 10 deletions

View File

@@ -15,6 +15,7 @@
-- @tfield node node Trigger node
-- @tfield[opt=node] node anim_node Animation node
-- @tfield vector3 start_scale Initial scale of anim_node
-- @tfield vector3 start_pos Initial pos of anim_node
-- @tfield vector3 pos Initial pos of anim_node
-- @tfield any params Params to click callbacks
-- @tfield druid.hover hover Druid hover logic component
@@ -152,6 +153,7 @@ function M.init(self, node, callback, params, anim_node)
self.anim_node = anim_node and helper:get_node(anim_node) or self.node
self.start_scale = gui.get_scale(self.anim_node)
self.start_pos = gui.get_position(self.anim_node)
self.params = params
self.hover = self.druid:new_hover(node, on_button_hover)
self.click_zone = nil