Add more events on button (long_tap, repeated_tap, double_tap)

This commit is contained in:
Insality
2020-02-24 23:36:44 +03:00
parent b1fbb7c5bf
commit 162bbd0ed9
6 changed files with 122 additions and 10 deletions

View File

@@ -12,6 +12,8 @@ M["button"] = {
BTN_SOUND_DISABLED = "click",
DISABLED_COLOR = vmath.vector4(0, 0, 0, 1),
ENABLED_COLOR = vmath.vector4(1),
LONGTAP_TIME = 0.4,
DOUBLETAP_TIME = 0.4,
IS_HOVER = true,
on_hover = function(self, node, state)