Advertisement
Guest User

startup

a guest
May 18th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. os.loadAPI("ugapi")
  3. os.loadAPI("sha256")
  4. local it = ".simg"
  5. local w, h = term.getSize()
  6. local scp = term.setCursorPos
  7. local sbc = term.setBackgroundColor
  8. local stc = term.setTextColor
  9. function notify(title,desc)
  10.   local w, h = term.getSize()
  11.   paintutils.drawFilledBox(
  12.     (w/2) -
  13.   )
  14. end
  15. function ui()
  16.   ugapi.bcolor(colors.lightBlue)
  17.   term.clear()
  18.   ugapi.drawimage(it,2,1)
  19.   scp(13,5)
  20.   stc(colors.white)
  21.   sbc(colors.blue)
  22.   write("Please sign in to continue. ")
  23.   sbc(colors.lightGray)
  24.   scp(14,10)
  25.   write("User: ")
  26.   scp(14,12)
  27.   write("Pass: ")
  28.   scp(20,10)
  29.   stc(colors.black)
  30.   sbc(colors.white)
  31.   local uname = read()
  32.   scp(20,12)
  33.   local upass = read("*")
  34. end
  35. ui()
  36.  
  37.  
  38. --shell.run("sinelock")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement