Skip to content

Commit 2c953e3

Browse files
committed
2.207
1 parent 6b6eb93 commit 2c953e3

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

.github/workflows/multi-platform.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
bindings-ref: main
4040
combine: true
4141
target: ${{ matrix.config.target }}
42+
sdk: nightly
4243

4344
package:
4445
name: Package builds

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
44
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64")
55
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
66

7-
project(NoStupidButtons VERSION 1.0.0)
7+
project(NoStupidButtons VERSION 1.1.3)
88

99
add_library(${PROJECT_NAME} SHARED
1010
src/main.cpp

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog for NoStupidButtons
22

3+
## v1.1.3
4+
- Ported to 2.207
5+
36
## v1.1.2
47
- Fixed <cb>GitHub repo</c> link <cy>because I changed my username</c>
58
- Bumped <cj>Geode version</c>

mod.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"geode": "3.7.1",
2+
"geode": "4.0.0-alpha.1",
33
"gd": {
4-
"win": "2.206",
5-
"android": "2.206",
6-
"mac": "2.206",
7-
"ios": "2.206"
4+
"win": "2.2074",
5+
"android": "2.2074",
6+
"mac": "2.2074",
7+
"ios": "2.2074"
88
},
99
"links": {
1010
"source": "https://github.com/TimeStepYT/NoStupidButtons"
1111
},
1212
"id": "timestepyt.nostupidbuttons",
1313
"name": "NoStupidButtons",
14-
"version": "v1.1.2",
14+
"version": "v1.1.3",
1515
"developer": "TimeStepYT",
1616
"description": "This mod hides the buttons nobody uses!",
1717

src/main.cpp

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,54 +9,47 @@ bool isSettingEnabled(std::string setting) {
99
}
1010

1111
class $modify(MyMenuLayer, MenuLayer) {
12-
struct Fields {
13-
CCNode* bottomMenu;
14-
CCNode* socialMediaMenu;
15-
CCNode* moreGamesMenu;
16-
};
17-
18-
bool init() {
12+
bool init() override {
1913
if (!MenuLayer::init()) {
2014
return false;
2115
}
2216

23-
m_fields->bottomMenu = this->getChildByID("bottom-menu");
24-
m_fields->socialMediaMenu = this->getChildByID("social-media-menu");
25-
m_fields->moreGamesMenu = this->getChildByID("more-games-menu");
17+
auto const bottomMenu = this->getChildByID("bottom-menu");
18+
auto const socialMediaMenu = this->getChildByID("social-media-menu");
19+
auto const moreGamesMenu = this->getChildByID("more-games-menu");
2620

2721
if (isSettingEnabled("hide-newgrounds-button")) {
28-
m_fields->bottomMenu->removeChildByID("newgrounds-button");
29-
m_fields->bottomMenu->updateLayout();
22+
bottomMenu->removeChildByID("newgrounds-button");
23+
bottomMenu->updateLayout();
3024
}
3125

3226
if (isSettingEnabled("hide-social-media-buttons")) {
33-
m_fields->socialMediaMenu->removeChildByID("facebook-button");
34-
m_fields->socialMediaMenu->removeChildByID("twitter-button");
35-
m_fields->socialMediaMenu->removeChildByID("youtube-button");
36-
m_fields->socialMediaMenu->removeChildByID("twitch-button");
37-
m_fields->socialMediaMenu->removeChildByID("discord-button");
38-
m_fields->socialMediaMenu->updateLayout();
27+
socialMediaMenu->removeChildByID("facebook-button");
28+
socialMediaMenu->removeChildByID("twitter-button");
29+
socialMediaMenu->removeChildByID("youtube-button");
30+
socialMediaMenu->removeChildByID("twitch-button");
31+
socialMediaMenu->removeChildByID("discord-button");
32+
socialMediaMenu->updateLayout();
3933
}
4034

4135
if (isSettingEnabled("hide-robtop-logo")) {
42-
m_fields->socialMediaMenu->removeChildByID("robtop-logo-button");
43-
m_fields->socialMediaMenu->updateLayout();
36+
socialMediaMenu->removeChildByID("robtop-logo-button");
37+
socialMediaMenu->updateLayout();
4438
}
4539
else if (isSettingEnabled("hide-social-media-buttons")) {
46-
CCNode* robtopButtonNode =
47-
m_fields->socialMediaMenu->getChildByID("robtop-logo-button");
48-
CCNode* bottomMenuButton = m_fields->bottomMenu->getChildByID("settings-button");
40+
CCNode* const robtopButtonNode = socialMediaMenu->getChildByID("robtop-logo-button");
41+
CCNode* const bottomMenuButton = bottomMenu->getChildByID("settings-button");
4942
robtopButtonNode->setPositionY(bottomMenuButton->getPositionY());
50-
m_fields->socialMediaMenu->updateLayout();
43+
socialMediaMenu->updateLayout();
5144
}
5245

5346
#ifdef GEODE_IS_ANDROID
5447
if (Loader::get()->isModLoaded("geode.devtools"))
5548
return true;
5649
#endif
5750
if (isSettingEnabled("hide-more-games-button")) {
58-
m_fields->moreGamesMenu->removeChildByID("more-games-button");
59-
m_fields->moreGamesMenu->updateLayout();
51+
moreGamesMenu->removeChildByID("more-games-button");
52+
moreGamesMenu->updateLayout();
6053
}
6154

6255
return true;

0 commit comments

Comments
 (0)