Update sID.lua

This commit is contained in:
Ale32bit 2016-03-20 17:27:42 +01:00
parent 7a223acf39
commit 48af2e273e

View file

@ -11,8 +11,8 @@ if not sPhone then
end end
local function clear() local function clear()
term.setBackgroundColor(colors.white) term.setBackgroundColor(sPhone.theme["backgroundColor"])
term.setTextColor(colors.black) term.setTextColor(sPhone.theme["text"])
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
end end
@ -28,11 +28,13 @@ end
local function login() local function login()
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) if sPhone.firstBoot then
local w, h = term.getSize() sPhone.header("Setup")
paintutils.drawLine(1,1,w,1,colors.blue) else
term.setTextColor(colors.black) sPhone.header()
term.setBackgroundColor(colors.white) end
term.setTextColor(sPhone.theme["text"])
term.setBackgroundColor(sPhone.theme["backgroundColor"])
visum.align("center"," Setup Sertex ID",false,3) visum.align("center"," Setup Sertex ID",false,3)
visum.align("center"," Your Username",false,7) visum.align("center"," Your Username",false,7)
term.setCursorPos(3,8) term.setCursorPos(3,8)
@ -60,11 +62,13 @@ end
local function register() local function register()
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) if sPhone.firstBoot then
local w, h = term.getSize() sPhone.header("Setup")
paintutils.drawLine(1,1,w,1,colors.blue) else
term.setTextColor(colors.black) sPhone.header()
term.setBackgroundColor(colors.white) end
term.setTextColor(sPhone.theme["text"])
term.setBackgroundColor(sPhone.theme["backgroundColor"])
visum.align("center"," Setup Sertex ID",false,3) visum.align("center"," Setup Sertex ID",false,3)
visum.align("center"," Your Username",false,7) visum.align("center"," Your Username",false,7)
term.setCursorPos(3,8) term.setCursorPos(3,8)