mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-26 04:39:51 -04:00
implement back monkey patch to center mod icons on featured bg
This commit is contained in:
parent
571d33fa9b
commit
9fe9853325
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ CCNode* geode::createIndexItemLogo(IndexItemHandle item, CCSize const& size) {
|
|||
|
||||
// i dont know why + 1 is needed and its too late for me to figure out why
|
||||
spr->setPosition(
|
||||
logoGlow->getContentSize().width / 2, logoGlow->getContentSize().height / 2
|
||||
logoGlow->getContentSize().width / 2 + 1,
|
||||
logoGlow->getContentSize().height / 2 - 1
|
||||
);
|
||||
// scary mathematics
|
||||
spr->setScaleX(size.width / spr->getContentSize().width / logoGlow->getScaleX());
|
||||
|
|
Loading…
Add table
Reference in a new issue