Posted 25 August 2015 - 06:50 PM
I DON'T mean this:
I mean something more like this:
(The code in question uses my Screen API
Assume 'buttonAction' is also called further down in the code by something else
So how would I go about doing this?
test()
function test()
print("test")
end
I mean something more like this:
(The code in question uses my Screen API
local function buttonAction()
--# Other stuff
calcSize() --# Need to call 'calcSize'
end
local function calcSize()
addButton( "Button1" , buttonAction ) --# Need to pass the 'buttonAction' function
end
This isn't how it actually looks, but this is the general idea.Assume 'buttonAction' is also called further down in the code by something else
So how would I go about doing this?
Edited on 25 August 2015 - 04:50 PM