Skip to content

Commit

Permalink
fix "New!" text offset in daily node
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Dec 6, 2023
1 parent 8d7aea8 commit 06ef75c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/hooks/DailyLevelNode.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <Geode/Bindings.hpp>
#include <Geode/modify/DailyLevelNode.hpp>

using namespace geode::prelude;

class $modify(BIDailyLevelNode, DailyLevelNode) {
bool init(GJGameLevel* level, DailyLevelPage* page, bool weekly) {
if(!DailyLevelNode::init(level, page, weekly)) return false;

for(auto node : CCArrayExt<CCNode>(this->getChildren())) {
if(node->getPosition() == CCPoint(182, 53)) node->setPositionX(130);
}

return true;
}
};

0 comments on commit 06ef75c

Please sign in to comment.