Skip to content

Commit

Permalink
да хуй с ним уже
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Dec 23, 2024
1 parent e039658 commit f0104b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion data/mods.list.v3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.0-list1",
"version": "3.1.1-list1",
"list": [

"https://github.com/Alphalaneous/HappyTextures/releases/latest/download/alphalaneous.happy_textures.geode",
Expand Down
13 changes: 7 additions & 6 deletions src/random_shit/menulayer_ruinify.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@ class $modify(MenuGameLayerExt, MenuGameLayer) {
auto parent_id = node->getParent()->getID();
auto __this_id = node->getID();
if (string::contains(parent_id, "ground-sprites")) {
node->setColor({ 26, 26,26 });
node->setColor({ 0, 0,0 });
}
if (string::contains(__this_id, "background")) {
node->setColor({ 36, 36, 36 });
node->setColor({ 0, 0, 0 });
}

return false;
}
);

this->scheduleOnce(schedule_selector(MenuGameLayerExt::updateColorCustom), 0.f);
this->schedule(schedule_selector(MenuGameLayerExt::updateColorCustom), 0.01f);
updateColorCustom(0.f);
this->schedule(schedule_selector(MenuGameLayerExt::updateColorCustom), 5.0f);

return init_result;
}
Expand Down Expand Up @@ -203,10 +203,11 @@ class $modify(MenuGameLayerExt, MenuGameLayer) {
}
}
$override void updateColor(float p0) {
log::debug("{}({})", __func__, p0);
return p0 != 1337.f ? void() : MenuGameLayer::updateColor(p0);
}
void updateColorCustom(float p0) {
return MenuGameLayer::updateColor(1337.f);
void updateColorCustom(float) {
return this->updateColor(1337.f);
}
$override cocos2d::ccColor3B getBGColor(int colorID) {
srand(time(0));
Expand Down

0 comments on commit f0104b3

Please sign in to comment.