Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 053838f227 | |||
| 8b8d0cdfa1 |
@@ -11,7 +11,7 @@ local res, err = http.get(SCRIPT_URL)
|
|||||||
if res then
|
if res then
|
||||||
local script = res.readAll()
|
local script = res.readAll()
|
||||||
|
|
||||||
local fn, err = load(script, "loader", "t", _ENV)
|
local fn, err = load(script, "loaded-script", "t", _ENV)
|
||||||
|
|
||||||
if not err then
|
if not err then
|
||||||
xpcall(fn, logError)
|
xpcall(fn, logError)
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ function updateScreen()
|
|||||||
|
|
||||||
local function drawTextCentered(text)
|
local function drawTextCentered(text)
|
||||||
local x = (w / 2) - (text:len() / 2)
|
local x = (w / 2) - (text:len() / 2)
|
||||||
local curX, curY = term.getCursorPos()
|
local _, curY = term.getCursorPos()
|
||||||
term.setCursorPos(x, curY)
|
term.setCursorPos(x, curY)
|
||||||
term.write(text)
|
term.write(text)
|
||||||
end
|
end
|
||||||
@@ -195,8 +195,8 @@ function updateScreen()
|
|||||||
term.clear()
|
term.clear()
|
||||||
term.setCursorPos(1, 1)
|
term.setCursorPos(1, 1)
|
||||||
|
|
||||||
term.setBackgroundColour(colours.lightGray)
|
term.setBackgroundColor(colors.lightGray)
|
||||||
term.setTextColour(colours.black)
|
term.setTextColour(colors.black)
|
||||||
term.clearLine()
|
term.clearLine()
|
||||||
drawTextCentered("tutel host controller")
|
drawTextCentered("tutel host controller")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user