Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Mon Size X: 29 Y: 12
- mon = peripheral.wrap("back")
- --GUI
- --Top Bar
- local function bar()
- mon.setBackgroundColor(colors.blue)
- mon.setCursorPos(1,1)
- mon.clearLine()
- mon.write("Rooms")
- mon.setCursorPos(23,1)
- mon.write("Status")
- end
- --Seperation Lines
- local function lines()
- mon.setBackgroundColor(colors.gray)
- for i = 3,14,2 do
- mon.setCursorPos(1,i)
- mon.clearLine()
- end
- end
- mon.setBackgroundColor(colors.black)
- mon.clear()
- bar()
- lines()
- --Countdown Room 1
- mon.setCursorPos(1,3)
- mon.clearLine()
- mon.write("WalMart")
- local left = rs.getInput("left")
- if left == true then
- mon.setCursorPos(19,3)
- mon.setTextColor(colors.red)
- mon.write("Closed")
- mon.setTextColor(colors.white)
- else
- mon.setCursorPos(19,3)
- mon.setTextColor(colors.green)
- mon.write("Open")
- mon.setTextColor(colors.white)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement