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 rs.getBundledOutput("back", colors.white) == true then
- rs.setBundledOutput("back", colors.white, false)
- else
- rs.setBundledOutput("back", colors.white, true)
- end
- end
- function finestra()
- t:toggleButton("Finestra")
- if rs.getBundledOutput("back",colors.red) == true then
- rs.setBundleOutput("back", colors.red, false)
- else
- rs.setBundledOutput("back",colors.red, true)
- 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