From f0104b3aa2dcde8d550628493ffc064cb0a0cdb0 Mon Sep 17 00:00:00 2001 From: user666 Date: Mon, 23 Dec 2024 22:51:42 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B0=20=D1=85=D1=83=D0=B9=20=D1=81=20?= =?UTF-8?q?=D0=BD=D0=B8=D0=BC=20=D1=83=D0=B6=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- data/mods.list.v3.json | 2 +- src/random_shit/menulayer_ruinify.hpp | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/data/mods.list.v3.json b/data/mods.list.v3.json index 13cc376..0ebca17 100644 --- a/data/mods.list.v3.json +++ b/data/mods.list.v3.json @@ -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", diff --git a/src/random_shit/menulayer_ruinify.hpp b/src/random_shit/menulayer_ruinify.hpp index d2f9eea..735d541 100644 --- a/src/random_shit/menulayer_ruinify.hpp +++ b/src/random_shit/menulayer_ruinify.hpp @@ -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; } @@ -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));