Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Function ToDoList = ScrollWindow, ResizableWindow, WindowOptions
- function hitbox(e,x,y,x2,y2,num,func,...)
- --takes events (e) and compares to box(x,y,x2,y2) to see if box had been clicked, if so run function
- 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
- func(...)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement