mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 18:37:44 +02:00
Scale up button in default style (instead of scale down). Faster animation
This commit is contained in:
parent
8815ca8896
commit
0539746519
@ -5,7 +5,7 @@ local function scale_to(self, node, to, callback, time, delay, easing)
|
|||||||
easing = easing or gui.EASING_INSINE
|
easing = easing or gui.EASING_INSINE
|
||||||
time = time or M.SCALE_ANIMATION_TIME
|
time = time or M.SCALE_ANIMATION_TIME
|
||||||
delay = delay or 0
|
delay = delay or 0
|
||||||
time = time or 0.25
|
time = time or 0.10
|
||||||
gui.animate(node, gui.PROP_SCALE, to, easing, time, delay,
|
gui.animate(node, gui.PROP_SCALE, to, easing, time, delay,
|
||||||
function()
|
function()
|
||||||
if callback then
|
if callback then
|
||||||
|
@ -5,9 +5,9 @@ local M = {}
|
|||||||
|
|
||||||
|
|
||||||
M["button"] = {
|
M["button"] = {
|
||||||
HOVER_SCALE = vmath.vector3(-0.025, -0.025, 1),
|
HOVER_SCALE = vmath.vector3(0.02, 0.02, 1),
|
||||||
HOVER_TIME = 0.05,
|
HOVER_TIME = 0.04,
|
||||||
SCALE_CHANGE = vmath.vector3(-0.05, -0.05, 1),
|
SCALE_CHANGE = vmath.vector3(0.035, 0.035, 1),
|
||||||
BTN_SOUND = "click",
|
BTN_SOUND = "click",
|
||||||
BTN_SOUND_DISABLED = "click",
|
BTN_SOUND_DISABLED = "click",
|
||||||
DISABLED_COLOR = vmath.vector4(0, 0, 0, 1),
|
DISABLED_COLOR = vmath.vector4(0, 0, 0, 1),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user