Update settings.lua

This commit is contained in:
Ale32bit 2016-03-19 23:31:40 +01:00
parent a45c2d46ea
commit 8c3f619130

View file

@ -140,25 +140,9 @@ local function clearLabel()
sPhone.winOk("Computer Label cleared") sPhone.winOk("Computer Label cleared")
end end
local w, h = term.getSize()
local function redraw()
clear()
local w, h = term.getSize()
paintutils.drawLine(1,1,w,1, colors.blue)
term.setTextColor(colors.white)
term.setCursorPos(2,1)
write(sPhone.user)
term.setCursorPos(w,1)
write("X")
term.setCursorPos(1,3)
term.setBackgroundColor(colors.white)
term.setTextColor(colors.black)
end
redraw()
while true do while true do
redraw() clear()
sPhone.header("","X")
local name, id = sPhone.menu(menu, "Settings","X") local name, id = sPhone.menu(menu, "Settings","X")
if id == 0 then if id == 0 then
return return
@ -172,4 +156,3 @@ while true do
clearLabel() clearLabel()
end end
end end