From d08919e09bd7d0ba93c413f46e48fcd5c702d856 Mon Sep 17 00:00:00 2001 From: Ale2610 Date: Fri, 21 Aug 2015 15:44:15 +0200 Subject: [PATCH] Create info.lua --- src/apps/system/info.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/apps/system/info.lua diff --git a/src/apps/system/info.lua b/src/apps/system/info.lua new file mode 100644 index 0000000..b786b7c --- /dev/null +++ b/src/apps/system/info.lua @@ -0,0 +1,40 @@ +local function clear() + term.setBackgroundColor(colors.white) + term.setTextColor(colors.black) + term.clear() + term.setCursorPos(1,1) +end + +local function header() + clear() + local w, h = term.getSize() + paintutils.drawLine(1,1,w,1, colors.gray) + term.setTextColor(colors.white) + term.setCursorPos(1,1) + write(" "..sPhone.user) + term.setCursorPos(w,1) + write("X") + term.setCursorPos(1,2) + term.setBackgroundColor(colors.white) + term.setTextColor(colors.black) +end + +term.setCursorPos(1,3) +sertextext.center(3, " Info") +print("") +print(" sPhoneOS "..sPhone.version.." by Sertex-Team") +print(" CST Wallet by Luca_S") +print(" UI API by LMNetOS") +print(" SHA256 API by GravityScore") +print(" SertexText API by Sertex-Team") +print(" Graphics API by Sertex-Team") +print(" Thanks to Luca_S for SMS system and Sertex ID") + +while true do + local w, h = term.getSize() + local _, _, x, y = os.pulLEvent("mouse_click") + if y == 1 and x == w then + return + end + sleep(0) +end