Skip to content

Commit d7c336e

Browse files
committed
update
1 parent c4aac9a commit d7c336e

File tree

5 files changed

+27
-8
lines changed

5 files changed

+27
-8
lines changed

about.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ This mod converts most menus' backgrounds to the Geode one (SwelvyBG). This incl
1010
- and more...
1111

1212
Please create an [issue](https://github.com/OmgRod/Geodify/issues) on GitHub for feature requests or bug reports!
13+
**Please use issue templates if possible!**
1314

14-
For bug reports, please use the `bug` label.
15-
For feature requests, please use the `feature request` label.
16-
For layer requests, please use the `layer` label.
15+
~~For bug reports, please use the `bug` label.~~
16+
~~For feature requests, please use the `feature request` label.~~
17+
~~For layer requests, please use the `layer` label.~~
1718

1819
## Credits
1920

20-
- Lead dev: OmgRod
21-
- Most pull requests guy: Viper
22-
- Logo by hiimjustin000 and OmgRod
21+
- Lead Developer: OmgRod
22+
- Developers: OmgRod, Viper
23+
- Alpha's Geode Utils: Alphalaneous
24+
- Logo: hiimjustin000 and OmgRod

changelog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
- Bugfix: [Color settings don't work](https://github.com/OmgRod/Geodify/issues/11)
77
- Bugfix: [Icon Ninja stuff (thanks undefined0 :D)](https://github.com/OmgRod/Geodify/issues/14)
88
- Changed color offset to change [each individual wave](https://github.com/OmgRod/Geodify/issues/13)
9+
- Switched from External Hook API to Alpha's Geode Utils
10+
- Geodify layer previews
911

1012
```
1113
Setting keys were changed. What does this mean?
1214
Setting keys are identifiers for different settings to find out which setting is which. We have changed some setting keys so if you notice some changes in your Geodify configuration, don't be worried! Simply just change them back to how they were with the new revamped settings menu!
13-
- OmgRod
1415
```
1516

1617
# v1.6.0

mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
]
1919
},
2020
"files": [
21-
"res/layers.json"
21+
"res/layers.json",
22+
"res/loops/*"
2223
],
2324
"sprites": [
2425
"res/*.png"

res/loops/ninxout.wav

2.52 MB
Binary file not shown.

src/layers/GYSettingSelectLayer.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <Geode/ui/ScrollLayer.hpp>
33
#include <Geode/ui/GeodeUI.hpp>
44
#include <Geode/ui/BasedButtonSprite.hpp>
5+
#include <Geode/utils/cocos.hpp>
56
#include <filesystem>
67
#include <fstream>
78
#include <sstream>
@@ -241,6 +242,20 @@ bool GYSettingSelectLayer::init() {
241242
colorBtn->setID("color-button");
242243
leftMenu->addChild(colorBtn);
243244

245+
auto geodeLoopToggle = CCMenuItemExt::createToggler(
246+
CCSprite::createWithSpriteFrameName("GJ_fxOnBtn_001.png"),
247+
CCSprite::createWithSpriteFrameName("GJ_fxOffBtn_001.png"),
248+
[&](CCMenuItemToggler* toggler) {
249+
auto fmod = FMODAudioEngine::sharedEngine();
250+
if (toggler->isOn()) {
251+
fmod->playMusic("menuLoop.mp3", true, 0.f, 1);
252+
} else {
253+
fmod->playMusic("ninxout.wav"_spr, true, 0.f, 1);
254+
}
255+
}
256+
);
257+
leftMenu->addChild(geodeLoopToggle);
258+
244259
CCMenuItemSpriteExtra* settingsBtn = CCMenuItemSpriteExtra::create(
245260
CircleButtonSprite::create(
246261
CCSprite::createWithSpriteFrameName("geode.loader/settings.png"),

0 commit comments

Comments
 (0)