From 0539746519e757424e0868f66a7d6290d12a8194 Mon Sep 17 00:00:00 2001 From: Insality Date: Mon, 13 Apr 2020 19:35:32 +0300 Subject: [PATCH] Scale up button in default style (instead of scale down). Faster animation --- druid/styles/default/anims.lua | 2 +- druid/styles/default/style.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/druid/styles/default/anims.lua b/druid/styles/default/anims.lua index d2d3d69..5852d4e 100644 --- a/druid/styles/default/anims.lua +++ b/druid/styles/default/anims.lua @@ -5,7 +5,7 @@ local function scale_to(self, node, to, callback, time, delay, easing) easing = easing or gui.EASING_INSINE time = time or M.SCALE_ANIMATION_TIME delay = delay or 0 - time = time or 0.25 + time = time or 0.10 gui.animate(node, gui.PROP_SCALE, to, easing, time, delay, function() if callback then diff --git a/druid/styles/default/style.lua b/druid/styles/default/style.lua index 5e3e05b..eaddd9d 100644 --- a/druid/styles/default/style.lua +++ b/druid/styles/default/style.lua @@ -5,9 +5,9 @@ local M = {} M["button"] = { - HOVER_SCALE = vmath.vector3(-0.025, -0.025, 1), - HOVER_TIME = 0.05, - SCALE_CHANGE = vmath.vector3(-0.05, -0.05, 1), + HOVER_SCALE = vmath.vector3(0.02, 0.02, 1), + HOVER_TIME = 0.04, + SCALE_CHANGE = vmath.vector3(0.035, 0.035, 1), BTN_SOUND = "click", BTN_SOUND_DISABLED = "click", DISABLED_COLOR = vmath.vector4(0, 0, 0, 1),