Update installer.lua

This commit is contained in:
Ale2610 2015-08-21 14:23:38 +02:00
parent d25ebee625
commit 1fccadfebe

View file

@ -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()
local x, y = term.getCursorPos() if not y then
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)