OK, say I have a table that''s an instance of a class (that has been exported by toLua). I want to access that table from my C++ (mostly so I can call functions in it).
Basicly, what I need is:
gui.page["main"].element["title"] = Label:new()
gui.page["main"].element["title"].OnSomething = function(sender)
{
-- stuff
}
And then to be able to call functions from C++.
So really I need two things:
Firstly, I need to be able to access my class''s Lua table from within its C++ class so I can call its functions in the first place.
And secondly, I need to be able to pass the table of a different C++ class as an argument for
sender. For instance, if I were doing it in Lua (instead of in C++), I''d go:
gui.page["main"].element["title"].OnSomething(gui.page["main"].element["alpha"])
Any suggestions?
Free Game: Yet Another Falling Block Game