Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("touchpoint")
- local t = touchpoint.new("top")
- function spawner()
- t:toggleButton("Spawner")
- if colors.test(rs.getBundledOutput("back"), colors.red) then
- rs.setBundledOutput("back", colors.subtract(rs.getBundledOutput("back"), colors.red))
- else
- rs.setBundledOutput("back", colors.combine(rs.getBundledOutput("back"), colors.red))
- end
- end
- function finestra()
- t:toggleButton("Finestra")
- if colors.test(rs.getBundledOutput("back"), colors.white) then
- rs.setBundledOutput("back", colors.subtract(rs.getBundledOutput("back"), colors.white))
- else
- rs.setBundledOutput("back", colors.combine(rs.getBundledOutput("back"), colors.white))
- end
- end
- tasti = function()
- t:add("Spawner", spawner, 2, 2, 14, 4, colors.red, colors.lime)
- t:add("Finestra", finestra, 16, 2, 28, 4, colors.red, colors.lime)
- t:draw()
- end
- tasti()
- t:run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement