| 13 | } |
| 14 | |
| 15 | LuaAdapter::LuaAdapter() |
| 16 | : mElement(nullptr) |
| 17 | , mContainer(nullptr) |
| 18 | { |
| 19 | mContainer = MyGUI::Gui::getInstancePtr()->createWidget<LuaContainer>( |
| 20 | "", MyGUI::IntCoord(), MyGUI::Align::Default, "", ""); |
| 21 | mContainer->initialize(luaState, mContainer, false); |
| 22 | mContainer->widget()->eventChangeCoord += MyGUI::newDelegate(this, &LuaAdapter::containerChangedCoord); |
| 23 | mContainer->widget()->attachToWidget(this); |
| 24 | } |
| 25 | |
| 26 | void LuaAdapter::containerChangedCoord(MyGUI::Widget*) |
| 27 | { |
nothing calls this directly
no test coverage detected