Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. os.loadAPI("touchpoint")
  2.  
  3. local t = touchpoint.new("top")
  4. function spawner()
  5. t:toggleButton("Spawner")
  6. if colors.test(rs.getBundledOutput("back"), colors.red) then
  7. rs.setBundledOutput("back", colors.subtract(rs.getBundledOutput("back"), colors.red))
  8. else
  9. rs.setBundledOutput("back", colors.combine(rs.getBundledOutput("back"), colors.red))
  10. end
  11. end
  12. function finestra()
  13. t:toggleButton("Finestra")
  14. if colors.test(rs.getBundledOutput("back"), colors.white) then
  15. rs.setBundledOutput("back", colors.subtract(rs.getBundledOutput("back"), colors.white))
  16. else
  17. rs.setBundledOutput("back", colors.combine(rs.getBundledOutput("back"), colors.white))
  18. end
  19. end
  20. tasti = function()
  21. t:add("Spawner", spawner, 2, 2, 14, 4, colors.red, colors.lime)
  22. t:add("Finestra", finestra, 16, 2, 28, 4, colors.red, colors.lime)
  23. t:draw()
  24. end
  25. tasti()
  26. t:run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement