mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-03 20:51:02 -05:00
rename Popup::initDynamic to Popup::initAnchored
This commit is contained in:
parent
ed588eb9b1
commit
f53c02491a
2 changed files with 4 additions and 4 deletions
|
@ -86,7 +86,7 @@ namespace geode {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
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(
|
bool init(
|
||||||
float width, float height, InitArgs... args, char const* bg = "GJ_square01.png",
|
float width, float height, InitArgs... args, char const* bg = "GJ_square01.png",
|
||||||
cocos2d::CCRect bgRect = { 0, 0, 80, 80 }
|
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
|
* `m_bgSprite` being tied to the size of `m_mainLayer` (rather than
|
||||||
* being the size of the window)
|
* being the size of the window)
|
||||||
*/
|
*/
|
||||||
bool initDynamic(
|
bool initAnchored(
|
||||||
float width, float height, InitArgs... args, char const* bg = "GJ_square01.png",
|
float width, float height, InitArgs... args, char const* bg = "GJ_square01.png",
|
||||||
cocos2d::CCRect bgRect = { 0, 0, 80, 80 }
|
cocos2d::CCRect bgRect = { 0, 0, 80, 80 }
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -320,7 +320,7 @@ bool LocalModInfoPopup::init(Mod* mod, ModListLayer* list) {
|
||||||
|
|
||||||
m_mod = mod;
|
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();
|
auto winSize = CCDirector::sharedDirector()->getWinSize();
|
||||||
|
|
||||||
|
@ -635,7 +635,7 @@ bool IndexItemInfoPopup::init(IndexItemHandle item, ModListLayer* list) {
|
||||||
|
|
||||||
auto winSize = CCDirector::sharedDirector()->getWinSize();
|
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
|
// bruh why is this here if we are allowing for browsing already installed mods
|
||||||
// if (item->isInstalled()) return true;
|
// if (item->isInstalled()) return true;
|
||||||
|
|
Loading…
Reference in a new issue