Basically I am trying to make my own button. Everything works great but I want to specify a function to be called when the button is pressed.
for example
functing MikesBtn(var SIZEX, var SIZEY, VOID* LeftClickFunction){
if(Left click){Run LeftClickFunction};
}
Basically when I define a button I want to specify what action it should take when the button is pressed. I would also like to include parameters in the functions I call.
The built in button function has this ability to specify the function. I can not seem to figure out what to do. Thanks for the help.