Advertisement
Guest User

startup

a guest
Aug 4th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. -- Mon Size   X: 29    Y: 12
  2. mon = peripheral.wrap("back")
  3.  
  4. --GUI
  5.   --Top Bar
  6. local function bar()
  7.   mon.setBackgroundColor(colors.blue)
  8.   mon.setCursorPos(1,1)
  9.   mon.clearLine()
  10.   mon.write("Rooms")
  11.   mon.setCursorPos(23,1)
  12.   mon.write("Status")
  13. end
  14.  
  15.   --Seperation Lines
  16. local function lines()
  17.   mon.setBackgroundColor(colors.gray)
  18.    for i = 3,14,2 do
  19.      mon.setCursorPos(1,i)
  20.      mon.clearLine()
  21.    end
  22. end
  23.  
  24.    mon.setBackgroundColor(colors.black)
  25.    mon.clear()
  26.    bar()
  27.    lines()
  28.    
  29.    --Countdown Room 1
  30.  
  31.   mon.setCursorPos(1,3)
  32.   mon.clearLine()
  33.   mon.write("WalMart")
  34.   local left = rs.getInput("left")
  35.     if left == true then
  36.       mon.setCursorPos(19,3)
  37.       mon.setTextColor(colors.red)
  38.       mon.write("Closed")
  39.       mon.setTextColor(colors.white)
  40.       else
  41.       mon.setCursorPos(19,3)
  42.       mon.setTextColor(colors.green)
  43.       mon.write("Open")
  44.       mon.setTextColor(colors.white)
  45.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement