43 lines
982 B
Lua
43 lines
982 B
Lua
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.blue)
|
|
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
|
|
header()
|
|
|
|
term.setCursorPos(1,3)
|
|
visum.align("center", " Info",false,3)
|
|
print("")
|
|
print("ID: "..os.getComputerID())
|
|
if os.getComputerLabel() then
|
|
print("Label: "..os.getComputerLabel())
|
|
end
|
|
print("sPhone "..sPhone.version.." by Sertex-Team")
|
|
print("KST by 3d6")
|
|
print("UI by LMNetOS")
|
|
print("SHA256 by GravityScore")
|
|
print("And thanks to dan200 for this mod!")
|
|
|
|
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
|