Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("front")
- mon.clear()
- mon.setTextScale(1.5)
- mon.setCursorPos(2,2)
- mon.write("Welcome to GhostOS 2.0")
- mon.setCursorPos(5,5)
- mon.write("Reaktor =")
- mon.setCursorPos(2,10)
- mon.write("Yellorium Iput =")
- while true do
- event,side,x,y=os.pullEvent("monitor_touch")
- if x > 3 and x < 22 and y == 5 and rs.getOutput("back") == false then
- rs.setOutput("back",true)
- mon.setCursorPos(5,5)
- mon.clearLine()
- mon.blit("Reaktor = ON","000000000000","dddddddddddd")
- elseif x > 3 and x < 22 and y == 5 and rs.getOutput("back") == true then
- rs.setOutput("back",false)
- mon.setCursorPos(5,5)
- mon.clearLine()
- mon.blit("Reaktor = OFF","0000000000000","eeeeeeeeeeeee")
- elseif x > 1 and x < 23 and y == 10 and rs.getOutput("left") == false then
- rs.setOutput("left",true)
- mon.setCursorPos(2,10)
- mon.ClearLine()
- mon.blit("Yellorium Input = ON","00000000000000000000","dddddddddddddddddddd")
- elseif x > 1 and x < 23 and y == 10 and rs.getOutput("left") == true then
- rs.setOutput("left",false)
- mon.setCursorPos(2,10)
- mon.ClearLine()
- mon.blit("Yellorium Input = OFF","00000000000000000000","eeeeeeeeeeeeeeeeeeeee")
- end
- end
Add Comment
Please, Sign In to add comment