Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("back")
- m.clear()
- m.setTextScale(2)
- m.setTextColor(colors.lime)
- m.setCursorPos(4, 1)
- m.write("Fusions")
- m.setCursorPos(4, 2)
- m.write("Reaktor")
- m.setCursorPos(2, 4)
- m.setBackgroundColor(colors.lime)
- m.setTextColor(colors.black)
- m.write("An")
- m.setCursorPos(6, 4)
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.black)
- m.write("Aus")
- m.setBackgroundColor(colors.black)
- rs.setOutput("bottom", false)
- while true do
- event,side,x,y = os.pullEvent()
- if rs.getInput("right", true) then
- m.setCursorPos(1, 6)
- m.setTextScale(2)
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.black)
- m.write("Status : Aus")
- end
- if rs.getInput("right", true) end
- event,side,x,y = os.pullEvent()
- if event == "monitor_touch" then
- if x == 2 and y == 4 or
- x == 3 and y == 4 then
- m.setTextScale(2)
- m.setBackgroundColor(colors.lime)
- m.setTextColor(colors.black)
- m.setCursorPos(1, 6)
- m.write("Status : an ")
- rs.setOutput("bottom", false)
- end
- if x == 6 and y == 4 or
- x == 7 and y == 4 or
- x == 8 and y == 4 then
- m.setTextScale(2)
- m.setBackgroundColor(colors.red)
- m.setTextColor(colors.black)
- m.setCursorPos(1, 6)
- m.write("Status : aus")
- rs.setOutput("bottom", true)
- end
- end
- sleep(0.2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement