From 8c3f619130dc42112fcc8a361fb902f1ed18d657 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sat, 19 Mar 2016 23:31:40 +0100 Subject: [PATCH] Update settings.lua --- src/apps/system/settings.lua | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/apps/system/settings.lua b/src/apps/system/settings.lua index 3e40696..0e44fbb 100644 --- a/src/apps/system/settings.lua +++ b/src/apps/system/settings.lua @@ -140,25 +140,9 @@ local function clearLabel() sPhone.winOk("Computer Label cleared") 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 - redraw() + clear() + sPhone.header("","X") local name, id = sPhone.menu(menu, "Settings","X") if id == 0 then return @@ -172,4 +156,3 @@ while true do clearLabel() end end -