Extension-Druid/druid/settings.lua
Maxim Tuprikov d49cd2777e
Feature/progress (#17)
* improve example gui. Add simple pages

* return old progress bar with example

* base progress with steps, there is bug with step? 1 ~= 1, small delta?

* polish progress, check float error case

* add callback on end of "to" function, value check

* start of green/red in progress

* add first version of rich progress bar

* make green bar darker

* rich bar fixes

* add delay, before filling in rich progress

* PR fixes

* remove dublicate of 'progress_rich'
2019-04-03 23:23:06 +03:00

43 lines
690 B
Lua

local M = {}
M.is_debug = false
M.button = {
IS_HOVER = true,
IS_HOLD = true,
BTN_SOUND = "click",
BTN_SOUND_DISABLED = "click_disabled",
HOVER_SCALE = vmath.vector3(-0.025, -0.025, 1),
HOVER_TIME = 0.05,
SCALE_CHANGE = vmath.vector3(-0.05, - 0.05, 1),
}
M.progress = {
SPEED = 5, -- progress bar fill rate, more faster
MIN_DELTA = 0.005
}
M.progress_rich = {
DELAY = 1, -- delay in seconds before main fill
}
function M.get_text(name)
-- override to get text for localized text
return "locales not inited"
end
function M.play_sound(name)
-- override to play sound with name
end
function M.log(...)
if M.is_debug then
print("[Druid]: ", ...)
end
end
return M