diff --git a/README.md b/README.md index db63dc3..4e4d109 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Features: * Auto-hiding the endscreen on level completion (unfortunately, the gray background still persists.) * Hiding the chains or background from the endscreen * Enabling the bouncing transition, even if "Fast Menu" from ingame is disabled. +* Changing the font of the "Level Complete" text message. * Various checks to ensure compatibility with other mods that modify the endscreen And now, for the big one... diff --git a/about.md b/about.md index bb19de7..c21f7db 100644 --- a/about.md +++ b/about.md @@ -7,6 +7,7 @@ Features: * Auto-hiding the endscreen on level completion (unfortunately, the gray background still persists.) * Hiding the chains or background from the endscreen * Enabling the bouncing transition, even if "Fast Menu" from ingame is disabled. +* Changing the font of the "Level Complete" text message. * Various checks to ensure compatibility with other mods that modify the endscreen And now, for the big one... diff --git a/mod.json b/mod.json index 2982bb0..b4dc155 100644 --- a/mod.json +++ b/mod.json @@ -49,7 +49,7 @@ }, "customFont": { "name": "Endtext Font #", - "description": "Sets the font of all end text messages. Default is 0 (falls back to bigFont, as seen in vanilla Geometry Dash).\n\nNotes:\n- -1 for Golden Pusab, -2 for chatFont.\n- Refer to the level editor for the font each number corresponds to.", + "description": "Sets the font of all end text messages. Default is 0 (falls back to bigFont, as seen in vanilla Geometry Dash).\n\nNotes:\n- -1 for Golden Pusab, -2 for chatFont.\n- To use font numbers greater than 0: refer to the level editor for the font each number corresponds to, subtract that number by 1, and then put it here.", "type": "int", "default": 0, "min": -2, diff --git a/src/main.cpp b/src/main.cpp index b1c4d6e..c549bba 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -200,6 +200,8 @@ class $modify(MyEndLevelLayer, EndLevelLayer) { } if (auto mainLayer = getChildByIDRecursive("main-layer")) { mainLayer->setVisible(!mainLayer->isVisible()); + if (mainLayer->isVisible()) { this->setOpacity(255); } + else { this->setOpacity(0); } } if (auto hideButtonSprite = MyEndLevelLayer::getHideButtonSprite()) { if (!MyEndLevelLayer::getModBool("hideHideEndscreen")) { @@ -240,6 +242,7 @@ class $modify(MyEndLevelLayer, EndLevelLayer) { desiredSpriteYPosition = hideButtonButton->getPositionY() - hideButtonButton->getContentHeight(); } if (MyEndLevelLayer::getModBool("hideEndLevelLayer")) { + this->setOpacity(0); if (auto mainLayer = getChildByIDRecursive("main-layer")) { mainLayer->setVisible(false); }