Advertisement
Joble

comm

Jan 21st, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. rednet.open(“back”)
  2. dofile(“gui.lua”)
  3. gui.debug=false
  4.  
  5. local s = gui.screen()
  6.  
  7. s:setBackgroundColor(colors.black)
  8.  
  9. local i = s:add(gui.button(“impulse”))
  10. local ib = s:add(gui.button(“on”))
  11. ib:onClick(function(function(button, frame, event, x, y)
  12. rednet.send(8, “on”)
  13. i:setBackgroundColor(colors.green)
  14. s:draw()
  15. end)
  16.  
  17. s:draw()
  18. s:wait()
  19. s:reset()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement