mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-22 23:48:08 -05:00
98684a62e5
internal header & source + regex match validation for string settings + further work on settings UI now featuring a cooler reset button
32 lines
750 B
C++
32 lines
750 B
C++
#include <Geode/Geode.hpp>
|
|
|
|
USE_GEODE_NAMESPACE();
|
|
|
|
class $modify(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();
|
|
}
|
|
}
|
|
};
|
|
|
|
GEODE_API bool GEODE_CALL geode_load(Mod*) {
|
|
// 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;
|
|
}
|