From f53c02491abbba7a97721e1fc53ca921fad2be6d Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Wed, 31 Jan 2024 23:38:09 +0200 Subject: [PATCH] rename Popup::initDynamic to Popup::initAnchored --- loader/include/Geode/ui/Popup.hpp | 4 ++-- loader/src/ui/internal/info/ModInfoPopup.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/loader/include/Geode/ui/Popup.hpp b/loader/include/Geode/ui/Popup.hpp index c10e4eed..bc0c0504 100644 --- a/loader/include/Geode/ui/Popup.hpp +++ b/loader/include/Geode/ui/Popup.hpp @@ -86,7 +86,7 @@ namespace geode { } protected: - [[deprecated("Use Popup::initDynamic instead, as it has more reasonable menu and layer content sizes")]] + [[deprecated("Use Popup::initAnchored instead, as it has more reasonable menu and layer content sizes")]] bool init( float width, float height, InitArgs... args, char const* bg = "GJ_square01.png", cocos2d::CCRect bgRect = { 0, 0, 80, 80 } @@ -99,7 +99,7 @@ namespace geode { * `m_bgSprite` being tied to the size of `m_mainLayer` (rather than * being the size of the window) */ - bool initDynamic( + bool initAnchored( float width, float height, InitArgs... args, char const* bg = "GJ_square01.png", cocos2d::CCRect bgRect = { 0, 0, 80, 80 } ) { diff --git a/loader/src/ui/internal/info/ModInfoPopup.cpp b/loader/src/ui/internal/info/ModInfoPopup.cpp index e99340af..9b41a92f 100644 --- a/loader/src/ui/internal/info/ModInfoPopup.cpp +++ b/loader/src/ui/internal/info/ModInfoPopup.cpp @@ -320,7 +320,7 @@ bool LocalModInfoPopup::init(Mod* mod, ModListLayer* list) { m_mod = mod; - if (!ModInfoPopup::initDynamic(LAYER_SIZE.width, LAYER_SIZE.height, mod->getMetadata(), list)) return false; + if (!ModInfoPopup::initAnchored(LAYER_SIZE.width, LAYER_SIZE.height, mod->getMetadata(), list)) return false; auto winSize = CCDirector::sharedDirector()->getWinSize(); @@ -635,7 +635,7 @@ bool IndexItemInfoPopup::init(IndexItemHandle item, ModListLayer* list) { auto winSize = CCDirector::sharedDirector()->getWinSize(); - if (!ModInfoPopup::initDynamic(LAYER_SIZE.width, LAYER_SIZE.height, item->getMetadata(), list)) return false; + if (!ModInfoPopup::initAnchored(LAYER_SIZE.width, LAYER_SIZE.height, item->getMetadata(), list)) return false; // bruh why is this here if we are allowing for browsing already installed mods // if (item->isInstalled()) return true;