Advertisement
AnnaOwO

lock

Feb 24th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. shell.openTab("lock2")
  3. sleep(0.1)
  4. shell.switchTab(2)
  5.  
  6.  
  7. m = peripheral.wrap("back")
  8. m.clear()
  9. m.setTextScale(0.5)
  10. m.setBackgroundColor(colors.black)
  11. m.setTextColor(colors.white)
  12.  
  13. load = fs.open("Config", "r")
  14. code,autoReset,waitTime,redstoneSide = unpack(textutils.unserialize(load.readAll()))
  15. load.close()
  16.  
  17. inp = {}
  18. sPos = 4
  19.  
  20.  
  21. function mGUI()
  22. gui = {
  23. [[ Floof ]],
  24. [[ Security INC. ]],
  25. [[ +-----------+ ]],
  26. [[ | | ]],
  27. [[ +---+---+---+ ]],
  28. [[ | 1 | 2 | 3 | ]],
  29. [[ | 4 | 5 | 6 | ]],
  30. [[ | 7 | 8 | 9 | ]],
  31. [[ | X | 0 | > | ]],
  32. [[ +---+---+---+ ]],
  33. }
  34. m.setTextColor(colors.blue)
  35. for i = 1,10 do
  36. m.setCursorPos(1,i)
  37. if i == 3 then
  38. m.setTextColor(colors.white)
  39. end
  40. m.write(gui[i])
  41. end
  42. m.setCursorPos(3,9)
  43. m.setBackgroundColor(colors.red)
  44. m.write(" X ")
  45. m.setCursorPos(11,9)
  46. m.setBackgroundColor(colors.lime)
  47. m.write(" > ")
  48. m.setCursorPos(3,4)
  49. m.setBackgroundColor(colors.lightGray)
  50. m.write(" ")
  51. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement