Advertisement
Guest User

click

a guest
Mar 31st, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. term.clear()
  2. --paintutils.drawFilledBox(4, 1, 8, 4, colors.blue)
  3. A = paintutils.loadImage(".bg")
  4. paintutils.drawImage(A,1, 2)
  5. local evnt, btn, x, y = os.pullEvent("mouse_click")
  6. if btn == 1 then
  7.   if x >= 1 and x <= 2 and y >= 18 and y <= 19 then
  8.   paintutils.drawFilledBox(1, 6, 20, 17, colors.gray)
  9.   term.setCursorPos(1, 7)
  10.   print("Package Installer")
  11.   term.setCursorPos(1, 9)
  12.   print("File Browser")
  13.   local a, btn, x, y = os.pullEvent("mouse_click")
  14.   if btn == 1 then
  15.     if x >= 1 and x <= 17 and y == 7 then
  16.     term.clear()
  17.     term.setCursorPos(1, 1)
  18.     term.setBackgroundColor(colors.black)
  19.     term.setCursorPos(1, 1)
  20.     term.clear()
  21.     end
  22.     end
  23.   end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement