7 lines
231 B
Lua
7 lines
231 B
Lua
function onResume()
|
|
local yearDays = 365
|
|
local currentDay = os.date("*t").yday
|
|
local percent = math.floor(currentDay / (yearDays / 100))
|
|
ui:showProgressBar("Year progress: "..percent.."%", currentDay, yearDays)
|
|
end
|