Advertisement
Guest User

Untitled

a guest
Aug 16th, 2015
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local function getClick(wait)
  2.     local _, x, y, _, _ = event.pull(wait, "touch")
  3.     if not x == nil and y == nil then
  4.         if x > 12 and x < 19 and y > 16 and y < 18 and component.br_reactor.getActive() == false then
  5.             component.br_reactor.setActive(true)
  6.         elseif x > 12 and x < 19 and y > 16 and y < 18 and component.br_reactor.getActive() == true then
  7.             component.br_reactor.setActive(false)
  8.         elseif x > 71 and x < 74 and y > 0 and y < 2 then
  9.             computer.shutdown()
  10.         end
  11.     end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement