Update sID.lua
This commit is contained in:
parent
7a223acf39
commit
48af2e273e
1 changed files with 16 additions and 12 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue