File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111#define MY_MOD_ID " arcticwoof.horrible_ideas"
1212
1313namespace horrible {
14- struct OptionEventV2 final : geode::Event<OptionEventV2, bool (std::string, bool )> {
15- using Event::Event;
16- };
17-
1814 class OptionManagerV2 final {
1915 public:
2016 static geode::Result<> registerOption (Option const & option)
Original file line number Diff line number Diff line change 11# [ <img src =" ../logo.png " width =" 30 " alt =" The mod's logo. " />] ( https://www.geode-sdk.org/mods/arcticwoof.horrible_ideas ) Horrible Ideas
22A plethora of ways to ruin your gaming experience...
33
4+ > [ !WARNING]
5+ > This is heavily outdated.
6+
47## API
58Let's start off by adding this mod as a dependency in your ` mod.json ` !
69``` jsonc
Original file line number Diff line number Diff line change @@ -48,20 +48,20 @@ using namespace horrible::prelude;
4848 );
4949
5050 (void )horribleMod->registerCustomSettingType (" menu" , &HorribleSettingV3::parse);
51+
52+ if (auto fb = OptionMenuButton::get ()) OverlayManager::get ()->addChild (fb);
5153};
5254
5355class $modify(HIMenuLayer, MenuLayer) {
5456 bool init () {
5557 if (!MenuLayer::init ()) return false ;
5658
57- if (auto fb = OptionMenuButton::get ()) OverlayManager::get ()->addChild (fb);
58-
5959 if (auto gm = GameManager::get ()) {
6060 // get and store user current fps
6161 float currentFPS = gm->m_customFPSTarget ;
62- float storedFPS = horribleMod->setSavedValue <float >(" fps" , currentFPS);
62+ ( void ) horribleMod->setSavedValue <float >(" fps" , currentFPS);
6363
64- log::debug (" Store Current FPS: {}" , storedFPS );
64+ log::debug (" Store Current FPS: {}" , currentFPS );
6565 };
6666
6767 return true ;
You can’t perform that action at this time.
0 commit comments