Lua helper for making a copy of children without returning a reference to the internal child list. Needed until Lua read-only container proxies are added
| 801 | // Lua helper for making a copy of children without returning a reference to the internal child list. |
| 802 | // Needed until Lua read-only container proxies are added |
| 803 | Array<lua::ImguiHandle> TreeParent::GetChildren() const |
| 804 | { |
| 805 | Array<lua::ImguiHandle> handles; |
| 806 | for (auto h : Children) { |
| 807 | handles.push_back(lua::ImguiHandle(h)); |
| 808 | } |
| 809 | return handles; |
| 810 | } |
| 811 | |
| 812 | void WindowBase::SetPos(glm::vec2 pos, std::optional<GuiCond> cond, std::optional<glm::vec2> pivot) |
| 813 | { |