| 48 | } |
| 49 | |
| 50 | void LuaAdapter::attachElement() |
| 51 | { |
| 52 | if (!mElement.get()) |
| 53 | return; |
| 54 | if (!mElement->mRoot) |
| 55 | throw std::logic_error("Attempting to use a destroyed UI Element"); |
| 56 | mContainer->setChildren({ mElement->mRoot }); |
| 57 | mElement->mRoot->updateCoord(); |
| 58 | mContainer->updateCoord(); |
| 59 | } |
| 60 | |
| 61 | void LuaAdapter::detachElement() |
| 62 | { |
nothing calls this directly
no test coverage detected