Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A Computer Button Pannel with the button
- -- API from Direwolf20 by leachiml
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- function fillTable()
- button.setTable("Eingang", pro1, 2,12,3,5)
- button.setTable("ME System", pro2, 17,27,3,5)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- function pro1()
- button.toggleButton("Eingang")
- rs.setBundledOutput("left", colors.orange)
- sleep(1)
- rs.setBundledOutput("left",colors.subtract(rs.getBundledOutput("left"), colors.orange))
- end
- function pro2()
- button.toggleButton("ME System")
- rs.setBundledOutput("left",colors.blue)
- sleep(0.5)
- rs.setBundledOutput("left",colors.subtract(rs.getBundledOutput("left"), colors.blue))
- end
- fillTable()
- button.heading("Securety System")
- while true do
- getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement