From a6b92d9ba9f5d704989ff7b27a92312fa060df86 Mon Sep 17 00:00:00 2001 From: Skyward <92672257+Deadcello@users.noreply.github.com> Date: Tue, 13 Feb 2024 13:05:57 -0500 Subject: [PATCH] removed a setting because i suck at c++ --- src/main.cpp | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 0e36140..b0a32c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,39 +37,27 @@ class $modify(MenuLayer) { // Gets the facebook button child from the socialmediamenu auto facebookbutton = socialmediamenu->getChildByID("facebook-button"); - - - if (Mod::get()->getSettingValue("switch-discord-twitch")) { - if (Mod::get()->getSettingValue("put-twitch-logo-ontop")) - // Sets the discord button to X: 99, Y: 68.6 - discordbutton->setPosition(99, 68.6); - - // Lowers the scale of the socialmediamenu - socialmediamenu->setScale(0.9); - - // Sets the position to X: 9, Y: -15 - socialmediamenu->setPosition(9, -15); - return true; - + + if (Mod::get()->getSettingValue("switch-discord-twitch")) { + // Sets the position to X: 128, Y: 39.6 discordbutton->setPosition(128, 39.6); // Finally sets the twitch button to X: 99, Y: 39.6 twitchbutton->setPosition(99, 39.6); - // Lowers the scale of the socialmediamenu - socialmediamenu->setScale(0.9); + // Lowers the scale of the socialmediamenu + socialmediamenu->setScale(0.9); - // Sets the position to X: 9, Y: -15 - socialmediamenu->setPosition(9, -15); + // Sets the position to X: 9, Y: -15 + socialmediamenu->setPosition(9, -15); - // Sets the Y position of the youtube button to 39.6 - youtubebutton->setPositionY(39.6); + // Sets the Y position of the youtube button to 39.6 + youtubebutton->setPositionY(39.6); - // Sets the Y position of the facebook button to 39.6 - facebookbutton->setPositionY(39.6); - - return true; + // Sets the Y position of the facebook button to 39.6 + facebookbutton->setPositionY(39.6); + return true; } else { twitchbutton->setPosition(128, 39.6); @@ -86,11 +74,7 @@ class $modify(MenuLayer) { // Sets the Y position of the facebook button to 39.6 facebookbutton->setPositionY(39.6); - - - if (Mod::get()->getSettingValue("put-twitch-logo-ontop")) { - twitchbutton->setPosition(99, 68.6); - } + return true; } }