Skip to content

Commit

Permalink
fix level pronouns conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Dec 6, 2023
1 parent 14fe0ae commit 8d7aea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/LevelCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,12 @@ class $modify(BILevelCell, LevelCell) {
std::ostringstream idText;
idText << "#" << this->m_level->m_levelID;
auto idTextNode = CCLabelBMFont::create(idText.str().c_str(), "chatFont.fnt");
idTextNode->setPosition({33,33});
idTextNode->setPosition({33,33.f - (this->m_level->m_dailyID == 0 && Loader::get()->isModLoaded("n.level_pronouns") ? 9.f : 0.f)});
idTextNode->setAnchorPoint({1,0});
idTextNode->setScale(0.6f);
idTextNode->setColor({51,51,51});
idTextNode->setOpacity(152);
idTextNode->setID("bi-level-id-label");
menu->addChild(idTextNode);
if(this->m_level->m_dailyID > 0 || Mod::get()->getSettingValue<bool>("white-id")){
idTextNode->setColor({255,255,255});
Expand All @@ -160,6 +161,7 @@ class $modify(BILevelCell, LevelCell) {
dailyTextNode->setScale(0.6f);
dailyTextNode->setColor({255,255,255});
dailyTextNode->setOpacity(200);
dailyTextNode->setID("bi-daily-id-label");
menu->addChild(dailyTextNode);

BetterInfoCache::sharedState()->cacheLevel(m_level);
Expand Down

0 comments on commit 8d7aea8

Please sign in to comment.