forked from hkc/cc-stuff
1
0
Fork 0

Maybe make spinner slower instead..?

This commit is contained in:
Casey 2023-10-20 04:07:36 +03:00
parent 55ce35743e
commit c75075ae9c
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@ function()
local timeString = string.format("[%s:%s]", time2str(time), time2str(duration)) local timeString = string.format("[%s:%s]", time2str(time), time2str(duration))
if drive.getState() ~= "STOPPED" then if drive.getState() ~= "STOPPED" then
term.setTextColor(mplayer.colors.status) term.setTextColor(mplayer.colors.status)
local speen = spinner[(math.floor(drive.getPosition() / 600) % #spinner) + 1] local speen = spinner[(math.floor(drive.getPosition() / 3000) % #spinner) + 1]
local action = "" local action = ""
if drive.getState() == "PLAYING" then action = "Playing:" if drive.getState() == "PLAYING" then action = "Playing:"
elseif drive.getState() == "REWINDING" then action = "Rewinding" elseif drive.getState() == "REWINDING" then action = "Rewinding"
@ -418,7 +418,7 @@ function()
term.setTextColor(mplayer.colors.status) term.setTextColor(mplayer.colors.status)
term.setCursorPos(tw - #timeString + 1, th) term.setCursorPos(tw - #timeString + 1, th)
term.write(timeString) term.write(timeString)
os.sleep(0.05) os.sleep(0.1)
end end
end, end,
function() function()