Skip to content

Commit

Permalink
remove the refresh button added by bi
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Nov 10, 2024
1 parent d508a8c commit c545a62
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/hooks/ProfilePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ class BI_DLL $modify(BIProfilePage, ProfilePage) {
CreatorInfoPopup::create(m_score->m_userID)->show();
}

void onProfilePageReload(CCObject* sender){
auto GLM = GameLevelManager::sharedState();

auto score = this->m_score;
GLM->resetStoredUserInfo(score->m_accountID);
GLM->resetAccountComments(score->m_accountID);

GLM->getGJUserInfo(this->m_accountID);
}

void onProfilePageCopyUserID(CCObject* sender){
BetterInfo::copyToClipboard(std::to_string(this->m_score->m_userID).c_str(), this);
}
Expand Down Expand Up @@ -157,18 +147,6 @@ class BI_DLL $modify(BIProfilePage, ProfilePage) {
m_buttonMenu->addChild(leaderboardButton);
this->m_buttons->addObject(leaderboardButton);

auto refreshSprite = CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png");
auto refreshButton = CCMenuItemSpriteExtra::create(
refreshSprite,
this,
menu_selector(BIProfilePage::onProfilePageReload)
);
refreshButton->setID("refresh-button"_spr);
m_buttonMenu->addChild(refreshButton);
refreshButton->setPosition({0, -269});
refreshButton->setSizeMult(1.2f);
this->m_buttons->addObject(refreshButton);

auto userIDNode = CCLabelBMFont::create(CCString::createWithFormat("User ID: %i", a2->m_userID)->getCString(), "chatFont.fnt");
userIDNode->setScale(0.6f);
userIDNode->setColor({255,255,255});
Expand Down

0 comments on commit c545a62

Please sign in to comment.