diff --git a/mod.json b/mod.json index b8cbe31..037a383 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,9 @@ { "geode": "2.0.0", - "gd": "2.204", + "gd": { + "win": "2.204", + "android": "2.200" + }, "version": "v1.0.0", "id": "geode.node-ids", "name": "Node IDs", diff --git a/src/ProfilePage.cpp b/src/ProfilePage.cpp index 9b1629e..c9b0f69 100644 --- a/src/ProfilePage.cpp +++ b/src/ProfilePage.cpp @@ -148,8 +148,12 @@ struct ProfilePageIDs : Modify { auto winSize = CCDirector::get()->getWinSize(); size_t idx = 0; - //std::array labels = {"stars", "moons", "diamonds", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr}; - std::array labels = {"stars", "moons", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr}; + #ifdef GEODE_IS_WINDOWS + std::array labels = {"stars", "moons", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr}; + #else + std::array labels = {"stars", "moons", "diamonds", "coins", "user-coins", "demons", m_score->m_creatorPoints > 0 ? "creator-points" : nullptr}; + #endif + for(auto label : labels) { if(!label) continue; @@ -206,7 +210,9 @@ struct ProfilePageIDs : Modify { static_cast(m_buttons->objectAtIndex(idx++))->setID("player-swing"); wrapSimplePlayer(m_mainLayer->getChildByID("player-icon"), m_buttons); - //wrapSimplePlayer(m_buttonMenu->getChildByID("player-ship"), m_buttons); + #ifndef GEODE_IS_WINDOWS + wrapSimplePlayer(m_buttonMenu->getChildByID("player-ship"), m_buttons); + #endif wrapSimplePlayer(m_mainLayer->getChildByID("player-ball"), m_buttons); wrapSimplePlayer(m_mainLayer->getChildByID("player-ufo"), m_buttons); wrapSimplePlayer(m_mainLayer->getChildByID("player-wave"), m_buttons, {36.6f, 42.6f}); @@ -269,7 +275,11 @@ struct ProfilePageIDs : Modify { if(m_score->m_modBadge > 0) { static_cast(m_buttons->objectAtIndex(idx++))->setID("mod-badge"); } - static_cast(m_buttons->objectAtIndex(idx++))->setID("info-button"); + + #ifdef GEODE_IS_WINDOWS + static_cast(m_buttons->objectAtIndex(idx++))->setID("info-button"); + #endif + if(!m_ownProfile) { if(GJAccountManager::sharedState()->m_accountID != m_accountID) { if(m_score->m_messageState != 2 && (m_score->m_messageState != 1 || m_score->m_friendReqStatus == 1)) {