From a694453bfd989c78b5c2ef323abe3395271b0e4c Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Sat, 3 Feb 2024 12:31:18 +0200 Subject: [PATCH] fix Popup not adding the title as a child if the popup is not dynamic --- loader/include/Geode/ui/Popup.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/include/Geode/ui/Popup.hpp b/loader/include/Geode/ui/Popup.hpp index bc0c0504..e6e80ddf 100644 --- a/loader/include/Geode/ui/Popup.hpp +++ b/loader/include/Geode/ui/Popup.hpp @@ -137,6 +137,7 @@ namespace geode { else { auto winSize = cocos2d::CCDirector::get()->getWinSize(); m_title->setPosition(winSize / 2 + ccp(0, m_size.height / 2 - offset)); + m_mainLayer->addChild(m_title); } } m_title->limitLabelWidth(m_size.width - 20.f, scale, .1f);