Skip to content

Commit

Permalink
needs testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigmancozmo authored Dec 3, 2024
1 parent 4f5b1d5 commit 2612f60
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ class $modify(MenuLayer) {

auto btn = this->getChildByID("profile-menu");
auto username = this->getChildByID("player-username");
auto isEnabled = Mod::get()->getSettingValue<bool>("enabled");
auto nameOnly = Mod::get()->getSettingValue<bool>("name-only");

if(isEnabled){
btn->setVisible(nameOnly);
username->setVisible(false);
}
auto hideButton = Mod::get()->getSettingValue<bool>("hide-button");
auto hideName = Mod::get()->getSettingValue<bool>("hide-name");

btn->setVisible(!hideButton);
username->setVisible(!hideName);

return true;
}
Expand Down

0 comments on commit 2612f60

Please sign in to comment.