Advertisement
guitarplayer616

Webtools API

Jun 25th, 2015
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. --Function ToDoList = ScrollWindow, ResizableWindow, WindowOptions
  2.  
  3. function hitbox(e,x,y,x2,y2,num,func,...)
  4.     --takes events (e) and compares to box(x,y,x2,y2) to see if box had been clicked, if so run function
  5.     if e[1] == "mouse_click" and e[2] == num and e[3] >= x and e[3] <= x2 and e[4] >= y and e[4] <=y2 then
  6.         func(...)
  7.     end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement