Advertisement
Guest User

Untitled

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