fix too big mod icons 🔥

This commit is contained in:
altalk23 2023-09-12 22:11:16 +03:00
parent 71a79ab4dd
commit 26a6c7e96d

View file

@ -68,7 +68,7 @@ CCNode* geode::createDefaultLogo(CCSize const& size) {
if (!spr) {
spr = CCLabelBMFont::create("OwO", "goldFont.fnt");
}
limitNodeSize(spr, size, 1.f, .1f);
limitNodeSize(spr, size, 1.f, .01f);
return spr;
}
@ -78,7 +78,7 @@ CCNode* geode::createModLogo(Mod* mod, CCSize const& size) {
CCSprite::create(fmt::format("{}/logo.png", mod->getID()).c_str());
if (!spr) spr = CCSprite::createWithSpriteFrameName("no-logo.png"_spr);
if (!spr) spr = CCLabelBMFont::create("N/A", "goldFont.fnt");
limitNodeSize(spr, size, 1.f, .1f);
limitNodeSize(spr, size, 1.f, .01f);
spr->setPosition(size/2);
spr->setAnchorPoint({.5f, .5f});
@ -116,7 +116,7 @@ CCNode* geode::createIndexItemLogo(IndexItemHandle item, CCSize const& size) {
spr = logoGlow;
}
else {
limitNodeSize(spr, size, 1.f, .1f);
limitNodeSize(spr, size, 1.f, .01f);
}
spr->setPosition(size/2);
spr->setAnchorPoint({.5f, .5f});