play sound example. Setup via settings

This commit is contained in:
Insality
2019-03-27 09:41:13 +03:00
parent 9d13837cf0
commit 349f73c515
3 changed files with 15 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ local M = {}
M.button = {
IS_HOVER = true,
IS_HOLD = true,
BTN_SOUND = "button_click",
BTN_SOUND = "click",
BTN_SOUND_DISABLED = "button_click_disabled",
HOVER_SCALE = vmath.vector3(-0.025, -0.025, 1),
HOVER_TIME = 0.05,
@@ -12,4 +12,15 @@ M.button = {
}
function M.get_text(name)
-- override to get text for localized text
end
function M.play_sound(name)
-- override to play sound with name
end
return M