Skip to content

Commit

Permalink
fix the version
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 committed Jan 22, 2024
1 parent 0f44b91 commit ea495d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ProfilePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct ProfilePageIDs : Modify<ProfilePageIDs, ProfilePage> {
auto winSize = CCDirector::get()->getWinSize();
size_t idx = 0;

#if GEODE_COMP_GD_VERSION >= 22040
#if GEODE_COMP_GD_VERSION >= 22030
std::array<const char*, 6> labels = {"stars", "moons", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr};
#else
std::array<const char*, 7> labels = {"stars", "moons", "diamonds", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr};
Expand Down Expand Up @@ -210,7 +210,7 @@ struct ProfilePageIDs : Modify<ProfilePageIDs, ProfilePage> {

wrapSimplePlayer(m_mainLayer->getChildByID("player-icon"), m_buttons);

#if GEODE_COMP_GD_VERSION < 22040
#if GEODE_COMP_GD_VERSION < 22030
wrapSimplePlayer(m_mainLayer->getChildByID("player-ship"), m_buttons);
#endif

Expand All @@ -221,7 +221,7 @@ struct ProfilePageIDs : Modify<ProfilePageIDs, ProfilePage> {
wrapSimplePlayer(m_mainLayer->getChildByID("player-spider"), m_buttons);
wrapSimplePlayer(m_mainLayer->getChildByID("player-swing"), m_buttons, {44.6f, 42.6f});

#if GEODE_COMP_GD_VERSION >= 22040
#if GEODE_COMP_GD_VERSION >= 22030
if(auto ship = m_buttonMenu->getChildByID("player-ship")) {
ship->setContentSize({42.6f, 42.6f});
static_cast<CCNode*>(ship->getChildren()->objectAtIndex(0))->setPosition(ship->getContentSize() / 2);
Expand Down Expand Up @@ -280,7 +280,7 @@ struct ProfilePageIDs : Modify<ProfilePageIDs, ProfilePage> {
static_cast<CCNode*>(m_buttons->objectAtIndex(idx++))->setID("mod-badge");
}

#if GEODE_COMP_GD_VERSION >= 22040
#if GEODE_COMP_GD_VERSION >= 22030
static_cast<CCNode*>(m_buttons->objectAtIndex(idx++))->setID("info-button");
#endif

Expand Down

0 comments on commit ea495d3

Please sign in to comment.