Skip to content

Commit

Permalink
removed a setting because i suck at c++
Browse files Browse the repository at this point in the history
  • Loading branch information
SCZSkyward authored Feb 13, 2024
1 parent 9b2e0b0 commit a6b92d9
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("switch-discord-twitch")) {
if (Mod::get()->getSettingValue<bool>("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<bool>("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);

Expand All @@ -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<bool>("put-twitch-logo-ontop")) {
twitchbutton->setPosition(99, 68.6);
}

return true;
}
}
Expand Down

0 comments on commit a6b92d9

Please sign in to comment.