mirror of
https://github.com/Insality/druid.git
synced 2025-09-28 02:22:18 +02:00
move settings node from factory to component (#8)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
local data = require("druid.data")
|
||||
local ui_animate = require "druid.helper.druid_animate"
|
||||
local ui_animate = require("druid.helper.druid_animate")
|
||||
local settings = require("druid.settings")
|
||||
local helper = require("druid.helper.helper")
|
||||
local b_settings = settings.button
|
||||
|
||||
local M = {}
|
||||
@@ -14,7 +15,8 @@ M.DEFAULT_ACTIVATE_SCALE = vmath.vector3(1, 1, 1)
|
||||
M.DEFAUL_ACTIVATION_TIME = 0.2
|
||||
|
||||
|
||||
function M.init(instance, callback, params, anim_node)
|
||||
function M.init(instance, node, callback, params, anim_node, event)
|
||||
instance.node = helper.get_node(node)
|
||||
instance.event = data.A_TOUCH
|
||||
instance.anim_node = anim_node and gui.get_node(anim_node) or instance.node
|
||||
instance.scale_from = gui.get_scale(instance.anim_node)
|
||||
|
Reference in New Issue
Block a user