diff --git a/src/hooks/LevelCell.cpp b/src/hooks/LevelCell.cpp index 5a37f49..c35b4a9 100644 --- a/src/hooks/LevelCell.cpp +++ b/src/hooks/LevelCell.cpp @@ -122,9 +122,11 @@ class $modify(BILevelCell, LevelCell) { //TODO: layout for ID node in Node ID mod auto idTextNode = CCLabelBMFont::create(fmt::format("#{}", m_level->m_levelID.value()).c_str(), "chatFont.fnt"); - idTextNode->setPosition({346,79 - (m_level->m_dailyID == 0 && Loader::get()->isModLoaded("n.level_pronouns") ? 9.f : 0.f)}); - idTextNode->setAnchorPoint({1,0}); - idTextNode->setScale(0.6f); + //idTextNode->setPosition({346,79 - (m_level->m_dailyID == 0 && Loader::get()->isModLoaded("n.level_pronouns") ? 9.f : 0.f)}); + log::info("{}", m_height); + idTextNode->setPosition({346,m_height - 1 - (m_level->m_dailyID == 0 && Loader::get()->isModLoaded("n.level_pronouns") ? 9.f : 0.f)}); + idTextNode->setAnchorPoint({1,1}); + idTextNode->setScale(m_compactView ? 0.45f : 0.6f); idTextNode->setColor({51,51,51}); idTextNode->setOpacity(152); idTextNode->setID("level-id-label"_spr); @@ -135,7 +137,7 @@ class $modify(BILevelCell, LevelCell) { } if(m_level->m_dailyID > 0){ - idTextNode->setPosition(363,79); + idTextNode->setPositionX(363); const int maxDaily = 100000;