mirror of
https://github.com/TobyAdd/GDH.git
synced 2025-09-06 21:11:41 +00:00
Compare commits
2 Commits
50afe2ae96
...
ea34c2c550
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ea34c2c550 | ||
![]() |
f9ae46b934 |
@@ -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]() {
|
||||
|
@@ -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???)
|
||||
|
Reference in New Issue
Block a user