MCPcopy Create free account
hub / github.com/Norbyte/bg3se / DetachChild

Method DetachChild

BG3Extender/Extender/Client/IMGUI/IMGUI.cpp:753–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753bool TreeParent::DetachChild(lua::ImguiHandle child)
754{
755 auto it = Children.find(child.Handle);
756 if (it != Children.end()) {
757 Children.erase(it);
758 auto ele = Manager->GetRenderable(child.Handle);
759 if (ele != nullptr) {
760 ele->Parent = InvalidHandle;
761 return true;
762 } else {
763 return false;
764 }
765 } else {
766 return false;
767 }
768}
769
770bool TreeParent::AttachChild(lua::ImguiHandle child)
771{

Callers

nothing calls this directly

Calls 4

GetRenderableMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected