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'
This commit is contained in:
Maxim Tuprikov
2019-04-03 23:23:06 +03:00
committed by GitHub
parent 6f41f70803
commit d49cd2777e
18 changed files with 1382 additions and 63 deletions

View File

@@ -12,6 +12,14 @@ M.button = {
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)