Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUI.setColors(colors.gray, colors.red)
- term.clear()
- term.setCursorPos(1,1)
- GUI.line(colors.red, 1, GUI.w+1, 1)
- GUI.line(colors.red, 1, GUI.w, GUI.h)
- local function round(num)
- local ln = num - math.floor(num)
- if ln >= 0.5 then
- return math.ceil(num)
- else
- return math.floor(num)
- end
- end
- for i = 2, GUI.h do
- GUI.pixel(colors.red, 1, i)
- end
- for i = 2, GUI.h do
- GUI.pixel(colors.red, GUI.w, i)
- end
- GUI.setColors(colors.gray, colors.white)
- GUI.cPrint("CommuteOS Login", 3)
- GUI.cPrint("Username: ", 5)
- GUI.cPrint("Password: ", 6)
- GUI.setColors(colors.gray, colors.cyan)
- term.setCursorPos(round(round(GUI.w-1)/2), 5)
- local user = read()
- term.setCursorPos(round(round(GUI.w-1)/2), 6)
- local pass = read("*")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement