Suppose I am making a button, so i make:
Code: Select all
makebutton(1, #LAYERBUTTON, "brushname", false, false, evt_table)
Suppose i have a function:
Code: Select all
function myfunc:changeX
self.x = mousex()
endfunction
Code: Select all
evt_table={OnMouseDown = myfunc:changeX}
Is there a way to access a self function in situation like this, or am i forced to not use self in situations like this?