Update settings.lua

This commit is contained in:
Ale32bit 2015-11-27 22:48:43 +01:00
parent d16f8bf3e5
commit f41a852ddb

View file

@ -39,11 +39,11 @@ local function changePassword()
if sPhone.wrongPassword then if sPhone.wrongPassword then
term.setTextColor(colors.red) term.setTextColor(colors.red)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
sertextext.center(13," Wrong Password") visum.align("center"," Wrong Password",false,13)
end end
term.setTextColor(colors.black) term.setTextColor(colors.black)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
sertextext.center(7," Current Password") visum.align("center"," Current Password",false,7)
local loginTerm = window.create(term.native(), 8,10,12,1, true) local loginTerm = window.create(term.native(), 8,10,12,1, true)
term.redirect(loginTerm) term.redirect(loginTerm)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
@ -74,11 +74,11 @@ local function changePassword()
if sPhone.wrongPassword then if sPhone.wrongPassword then
term.setTextColor(colors.red) term.setTextColor(colors.red)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
sertextext.center(13," Wrong Password") visum.align("center"," Wrong Password",false,13)
end end
term.setTextColor(colors.black) term.setTextColor(colors.black)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
sertextext.center(7," New Password") visum.align("center"," New Password",false,7)
local loginTerm = window.create(term.native(), 8,10,12,1, true) local loginTerm = window.create(term.native(), 8,10,12,1, true)
term.redirect(loginTerm) term.redirect(loginTerm)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
@ -97,7 +97,7 @@ local function changePassword()
write(" "..sPhone.user) write(" "..sPhone.user)
term.setTextColor(colors.black) term.setTextColor(colors.black)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
sertextext.center(7," Repeat Password") visum.align("center"," Repeat Password",false,7)
local loginTerm = window.create(term.native(), 8,10,12,1, true) local loginTerm = window.create(term.native(), 8,10,12,1, true)
term.redirect(loginTerm) term.redirect(loginTerm)
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
@ -128,7 +128,7 @@ end
local function changeLabel() local function changeLabel()
header() header()
sertextext.center(3, "Set Label") visum.align("center", "Set Label",false,3)
term.setCursorPos(2,5) term.setCursorPos(2,5)
local newLabel = read() local newLabel = read()
os.setComputerLabel(newLabel) os.setComputerLabel(newLabel)