Skip to content

Commit

Permalink
frontfacing changes + experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Jul 23, 2024
1 parent 69c9686 commit 50484c6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
1 change: 1 addition & 0 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"customFont": {
"name": "Endtext Font #",
"description": "Sets the font of all end text messages. Default is 0 (falls back to <cl>bigFont</c>, as seen in vanilla Geometry Dash).\n\nNotes:\n- <cj>-1 for Golden Pusab, -2 for chatFont.</c>\n- <cy>Refer to the level editor for the font each number corresponds to.</c>",
"description": "Sets the font of all end text messages. Default is 0 (falls back to <cl>bigFont</c>, as seen in vanilla Geometry Dash).\n\nNotes:\n- <cj>-1 for Golden Pusab, -2 for chatFont.</c>\n- <cy>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.</c>",
"type": "int",
"default": 0,
"min": -2,
Expand Down
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 50484c6

Please sign in to comment.