2022-10-13 06:07:37 -04:00
|
|
|
#include <Geode/Loader.hpp>
|
2022-07-30 12:24:03 -04:00
|
|
|
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
|
2022-10-13 07:00:41 -04:00
|
|
|
#include <Geode/modify/MenuLayer.hpp>
|
2022-11-09 13:03:53 -05:00
|
|
|
|
|
|
|
struct MyMenuLayer : Modify<MyMenuLayer, MenuLayer> {
|
|
|
|
void onMoreGames(CCObject*) {
|
|
|
|
if (Mod::get()->getSettingValue<bool>("its-raining-after-all")) {
|
|
|
|
FLAlertLayer::create("Damn", ":(", "OK")->show();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
FLAlertLayer::create("Yay", "The weather report said it wouldn't rain today :)", "OK")
|
|
|
|
->show();
|
|
|
|
}
|
|
|
|
}
|
2022-09-14 12:21:35 -04:00
|
|
|
};
|
|
|
|
|
2022-07-30 12:24:03 -04:00
|
|
|
GEODE_API bool GEODE_CALL geode_load(Mod*) {
|
2022-11-09 13:03:53 -05:00
|
|
|
// Dispatcher::get()->addFunction<void(GJGarageLayer*)>("test-garage-open", [](GJGarageLayer*
|
|
|
|
// gl) { auto label = CCLabelBMFont::create("Dispatcher works!", "bigFont.fnt");
|
|
|
|
// label->setPosition(100, 80);
|
|
|
|
// label->setScale(.4f);
|
|
|
|
// label->setZOrder(99999);
|
|
|
|
// gl->addChild(label);
|
|
|
|
// });
|
|
|
|
return true;
|
2022-07-30 12:24:03 -04:00
|
|
|
}
|