From f41a852ddbcdc6c28cc63e332d19028718a55d3a Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Fri, 27 Nov 2015 22:48:43 +0100 Subject: [PATCH] Update settings.lua --- src/apps/system/settings.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/apps/system/settings.lua b/src/apps/system/settings.lua index 5f37dc8..725ee33 100644 --- a/src/apps/system/settings.lua +++ b/src/apps/system/settings.lua @@ -39,11 +39,11 @@ local function changePassword() if sPhone.wrongPassword then term.setTextColor(colors.red) term.setBackgroundColor(colors.white) - sertextext.center(13," Wrong Password") + visum.align("center"," Wrong Password",false,13) end term.setTextColor(colors.black) 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) term.redirect(loginTerm) term.setBackgroundColor(colors.white) @@ -74,11 +74,11 @@ local function changePassword() if sPhone.wrongPassword then term.setTextColor(colors.red) term.setBackgroundColor(colors.white) - sertextext.center(13," Wrong Password") + visum.align("center"," Wrong Password",false,13) end term.setTextColor(colors.black) 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) term.redirect(loginTerm) term.setBackgroundColor(colors.white) @@ -97,7 +97,7 @@ local function changePassword() write(" "..sPhone.user) term.setTextColor(colors.black) 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) term.redirect(loginTerm) term.setBackgroundColor(colors.white) @@ -128,7 +128,7 @@ end local function changeLabel() header() - sertextext.center(3, "Set Label") + visum.align("center", "Set Label",false,3) term.setCursorPos(2,5) local newLabel = read() os.setComputerLabel(newLabel)