Update installer.lua
This commit is contained in:
parent
d25ebee625
commit
1fccadfebe
1 changed files with 5 additions and 3 deletions
|
@ -36,9 +36,11 @@ local function clear()
|
||||||
term.setTextColor(colors.black)
|
term.setTextColor(colors.black)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function center(text)
|
local function center(text, y)
|
||||||
local w, h = term.getSize()
|
local w, h = term.getSize()
|
||||||
|
if not y then
|
||||||
local x, y = term.getCursorPos()
|
local x, y = term.getCursorPos()
|
||||||
|
end
|
||||||
term.setCursorPos(math.ceil(w/2), y)
|
term.setCursorPos(math.ceil(w/2), y)
|
||||||
write(text)
|
write(text)
|
||||||
end
|
end
|
||||||
|
@ -58,7 +60,7 @@ timer = nil
|
||||||
|
|
||||||
for i = 1 , tonumber(time) do
|
for i = 1 , tonumber(time) do
|
||||||
|
|
||||||
center(y, frames[cursor])
|
center(frames[cursor], y)
|
||||||
|
|
||||||
timer = os.startTimer(.5)
|
timer = os.startTimer(.5)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue