LuaGuiElement::add actually returns the added GUI element!
So, instead of doing something like
Code: Select all
frame.add{type = "table", name = "my_table", colspan = 10}
local my_table = frame["my_table"]
my_table.add{.......}
Code: Select all
local my_table = frame.add{type = "table", name = "my_table", colspan = 10}
my_table.add{.......}
Some of you may have already known this, but this deserves to be on the document.
![Razz :P](./images/smilies/icon_razz.gif)