Skip to content

Commit

Permalink
fix test mode label offset by setting disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Oct 28, 2024
1 parent 7fffd9b commit fbd078d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PlayLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ using namespace geode::node_ids;
//setIDSafe<UILayer>(this, 0, "ui-layer"); //changing this id is unsafe because mods depend on "UILayer", which is actually fairly safe to do, since this is the only UILayer in the whole layer
int index = 0;
#if GEODE_COMP_GD_VERSION >= 22060
if (this->m_level->m_levelType == GJLevelType::Editor) {
if (this->m_level->m_levelType == GJLevelType::Editor && !GameManager::sharedState()->getGameVariable("0174")) {
// Testmode is only added for local levels
setIDSafe<CCLabelBMFont>(this, 0, "testmode-label");
index++;
setIDSafe<CCLabelBMFont>(this, index++, "testmode-label");
}
#endif

Expand Down

0 comments on commit fbd078d

Please sign in to comment.