Skip to content

Commit 5038d5d

Browse files
committed
grammar 100
1 parent b392093 commit 5038d5d

8 files changed

Lines changed: 17 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ By default, this mod implements its own safe mode to prevent making accidental p
2828
---
2929

3030
### Integrations
31-
Want to add your own insane stuff to this mod? You can register your very own horrible options by using this mod's API! You can find its [documentation the Wiki](../../wiki/). We're hyped to see how much more you can really mess up this game.
31+
Want to add your own insane stuff to this mod? You can register your very own horrible options by using this mod's API! You can find its [documentation in the Wiki](../../wiki/). We're hyped to see how much more you can really mess up this game.
3232

3333
```cpp
3434
using namespace horrible;

about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ By default, this mod implements its own safe mode to prevent making accidental p
1919
---
2020

2121
### Integrations
22-
Want to add your own insane stuff to this mod? You can <cy>register your very own horrible options</c> by using <cg>this mod's API</c>! You can find its [documentation the Wiki](https://github.com/CubicCommunity/HorribleMenu/wiki). We're hyped to see how much more you can really mess up this game.
22+
Want to add your own insane stuff to this mod? You can <cy>register your very own horrible options</c> by using <cg>this mod's API</c>! You can find its [documentation in the Wiki](https://github.com/CubicCommunity/HorribleMenu/wiki). We're hyped to see how much more you can really mess up this game.
2323

2424
```cpp
2525
using namespace horrible;

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"type": "int",
254254
"name": "Terms and Conditions Chance",
255255
"description": "<cc>Agree To Our Terms!</c> - Chance of the TOS pop-up appearing in a level.",
256-
"default": 75,
256+
"default": 65,
257257
"min": 0,
258258
"max": 100,
259259
"control": {

src/Utils.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ namespace horrible {
6666
namespace fs = asp::fs; // Shortcut for `asp::fs`
6767
namespace str = geode::utils::string; // Shortcut for `geode::utils::string`
6868

69+
namespace popup {
70+
inline void closeBtnID(CCMenuItemSpriteExtra* btn) {
71+
if (btn) btn->setID("close-btn");
72+
};
73+
};
74+
6975
// For convenience
7076
namespace setting {
7177
inline constexpr auto SafeMode = "safe-mode";

src/ui/src/Menu.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ bool Menu::init() {
194194
setTitle("Horrible Options");
195195
setCloseButtonSpr(CircleButtonSprite::createWithSpriteFrameName(themes::close, 0.875f, btns, CircleBaseSize::Small));
196196

197+
popup::closeBtnID(m_closeBtn);
198+
197199
m_bgSprite->setZOrder(-9);
198200

199201
auto const mainLayerSize = m_mainLayer->getScaledContentSize();

src/ui/src/MenuCredits.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ bool MenuCredits::init(ZStringView theme) {
6969

7070
addSideArt(m_mainLayer, SideArt::All, SideArtStyle::PopupGold);
7171

72+
popup::closeBtnID(m_closeBtn);
73+
7274
auto leadDevLabel = CCLabelBMFont::create("Lead Developers", "bigFont.fnt");
7375
leadDevLabel->setID("lead-dev-label");
7476
leadDevLabel->setScale(0.425f);

src/util/ui/src/RandomAd.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ bool RandomAd::init() {
1616
setTitle("Sponsored");
1717
setCloseButtonSpr(CircleButtonSprite::createWithSpriteFrameName(themes::close, 0.875f, themes::getCircleBaseColor(theme)));
1818

19+
popup::closeBtnID(m_closeBtn);
20+
1921
auto label = CCLabelBMFont::create("Check out this cool level we found!", "chatFont.fnt");
2022
label->setID("message");
2123
label->setAlignment(kCCTextAlignmentCenter);

src/util/ui/src/TermsAndConditions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ bool TermsAndConditions::init(Callback&& cb) {
1818
setKeyboardEnabled(false);
1919
setCloseButtonSpr(CircleButtonSprite::createWithSpriteFrameName(themes::close, 0.875f, themes::getCircleBaseColor(theme)));
2020

21+
popup::closeBtnID(m_closeBtn);
22+
2123
m_closeBtn->setVisible(false);
2224
m_closeBtn->setEnabled(false);
2325

0 commit comments

Comments
 (0)