Well pretty much you know how with derma you set a buttons onClick to a function how do you go about calling the function in your own table? in my brief tests i couldn't figure it out.
self.onClick
Well i tried [lua] local a = {}
a.test = function() print("TEST") end
a.test
[/lua]
and it doesn't seem to work.
You have to call it like a function!
[lua]local my_func = function(a,b) return a,b end;
print(my_func(1,2));[/lua]
Sorry, you need to Log In to post a reply to this thread.