Compare commits

...

2 Commits

Author SHA1 Message Date
TobyAdd
ea34c2c550 forgot to commit file 2025-05-14 13:00:41 +03:00
TobyAdd
f9ae46b934 layout mode default colors toggle 2025-05-14 12:53:57 +03:00
2 changed files with 13 additions and 1 deletions

View File

@@ -135,6 +135,17 @@ void Hacks::Init() {
};
auto &config = Config::get();
SetCustomWindowHandlerByConfig("layout_mode", [this, &config]() {
auto &gui = Gui::get();
#ifdef GEODE_IS_WINDOWS
bool default_colors = config.get<bool>("layout_mode::default_colors", true);
if (ImGuiH::Checkbox("Default Colors", &default_colors, gui.m_scale))
config.set<bool>("layout_mode::default_colors", default_colors);
#endif
});
#ifdef GEODE_IS_WINDOWS
SetCustomWindowHandlerByConfig("auto_deafen", [this, &config]() {

View File

@@ -110,7 +110,8 @@ class $modify(GameObject) {
class $modify(GJBaseGameLayer) {
void updateColor(cocos2d::ccColor3B& color, float fadeTime, int colorID, bool blending, float opacity, cocos2d::ccHSVValue& copyHSV, int colorIDToCopy, bool copyOpacity, EffectGameObject* callerObject, int unk1, int unk2)
{
if (Config::get().get("layout_mode", false)) {
auto &config = Config::get();
if (config.get("layout_mode", false) && config.get<bool>("layout_mode::default_colors", true)) {
if (colorID == 1000) // background
color = {40, 125, 255};
else if (colorID == 1001) // ground (no ground 2???)