Skip to content

Commit

Permalink
add hall of fame label
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Sep 28, 2024
1 parent e33e2b2 commit 74cf876
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added resources/hallOfFameLabel_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/hooks/LevelBrowserLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ class BI_DLL
}
}

if(m_searchObject->m_searchMode == 0 && m_searchObject->m_searchType == SearchType::HallOfFame) {
auto winSize = CCDirector::sharedDirector()->getWinSize();
auto label = CCSprite::create("hallOfFameLabel_001.png"_spr);
label->setPosition({(winSize.width / 2), (winSize.height / 2) + 24 + 110});
label->setID("header-sprite"); //substitutes a vanilla feature, therefore vanilla style ID
this->addChild(label, 2);
}

/**
* Ending steps
*/
Expand Down

0 comments on commit 74cf876

Please sign in to comment.