forked from hkc/cc-stuff
Maybe make spinner slower instead..?
This commit is contained in:
parent
55ce35743e
commit
c75075ae9c
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue