Skip to content

Commit

Permalink
update for 2.202 aka 2.2011 aka 2.201b aka 2.20211 aka 2.2011b_1 aka …
Browse files Browse the repository at this point in the history
…"2.201 - copy.exe"
  • Loading branch information
Cvolton committed Jan 8, 2024
1 parent 6c799b8 commit 2b5695a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hooks/LevelInfoLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ class $modify(LevelInfoLayer) {
/**
* Update download and like labels
*/
m_downloadsLabel->setString(fmt::format(std::locale("en_US.UTF-8"), "{:L}", m_level->m_downloads).c_str());
/*m_downloadsLabel->setString(fmt::format(std::locale("en_US.UTF-8"), "{:L}", m_level->m_downloads).c_str());
m_likesLabel->setString(fmt::format(std::locale("en_US.UTF-8"), "{:L}", m_level->m_likes).c_str());
m_downloadsLabel->limitLabelWidth(60.f, .5f, 0.f);
m_likesLabel->limitLabelWidth(60.f, .5f, 0.f);
log::info("m_songIDs: {}", m_level->m_songIDs);
log::info("m_songIDs: {}", m_level->m_songIDs);*/
}

void onViewProfile(CCObject* sender) {
Expand Down
20 changes: 20 additions & 0 deletions src/hooks/ProfilePage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ class $modify(BIProfilePage, ProfilePage) {
leftMenu->updateLayout();
}

/*if(auto playerMenu = m_mainLayer->getChildByID("player-menu")) {
SimplePlayer* playerJetpack = SimplePlayer::create(m_score->m_playerJetpack);
playerJetpack->updatePlayerFrame(m_score->m_playerJetpack, IconType::Jetpack);
playerJetpack->setColor(GM->colorForIdx(m_score->m_color1));
playerJetpack->setSecondColor(GM->colorForIdx(m_score->m_color2));
if(m_score->m_special != 0) playerJetpack->enableCustomGlowColor(GM->colorForIdx(m_score->m_color3));
playerJetpack->updateColors();
playerJetpack->setScale(.95f);
auto jetpackContainer = CCNode::create();
jetpackContainer->setContentSize({40.6f, 42.6f});
jetpackContainer->addChild(playerJetpack);
playerJetpack->setPosition((jetpackContainer->getContentSize() / 2) - CCPoint(5,0));
playerMenu->addChild(jetpackContainer);
playerMenu->updateLayout();
this->m_buttons->addObject(jetpackContainer);
}*/


/*if(auto playerShip = m_mainLayer->getChildByID("player-ship")) {
CCPoint position = m_buttonMenu->convertToNodeSpace(playerShip->getPosition());
Expand Down
2 changes: 1 addition & 1 deletion src/layers/DailyHistory/DailyCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void DailyCell::onView(CCObject* sender){

void DailyCell::onLeaderboards(CCObject* sender){
auto GM = GameManager::sharedState();
auto newLeaderboard = LevelLeaderboard::create(m_level, (LevelLeaderboardType) GM->getIntGameVariableDefault("0098", 1), (LevelLeaderboardMode) GM->getIntGameVariableDefault("0164", 0));
auto newLeaderboard = LevelLeaderboard::create(m_level, (LevelLeaderboardType) GM->getIntGameVariable("0098"), (LevelLeaderboardMode) GM->getIntGameVariable("0164"));
newLeaderboard->show();
}

Expand Down

0 comments on commit 2b5695a

Please sign in to comment.