diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-20 23:22:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-03-20 23:22:51 +0000 |
commit | 1efe681967cc764db3185134e0750349061a6e41 (patch) | |
tree | 7ef9b34d0197a6a97e0de4caec3db3099a76d7b6 /ui/gameMainSelector.cpp | |
parent | Remove unrequired UIShader (diff) | |
download | ilt-1efe681967cc764db3185134e0750349061a6e41.tar.bz2 ilt-1efe681967cc764db3185134e0750349061a6e41.tar.xz ilt-1efe681967cc764db3185134e0750349061a6e41.zip |
Support capturing and reacting to ImGui window closure
Diffstat (limited to 'ui/gameMainSelector.cpp')
-rw-r--r-- | ui/gameMainSelector.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/gameMainSelector.cpp b/ui/gameMainSelector.cpp index 55d0ae0..0c40abc 100644 --- a/ui/gameMainSelector.cpp +++ b/ui/gameMainSelector.cpp @@ -13,10 +13,14 @@ GameMainSelector::GameMainSelector(const Camera * c) : camera {c} { } constexpr ScreenAbsCoord TargetPos {5, 45}; void -GameMainSelector::render() const +GameMainSelector::render() { if (target) { - target->render(); + bool open = true; + target->render(open); + if (!open) { + target.reset(); + } } } @@ -86,7 +90,7 @@ GameMainSelector::Component::handleInput(const SDL_Event &) } void -GameMainSelector::Component::render() +GameMainSelector::Component::render(bool &) { } |