Skip to content

Commit

Permalink
Changed order of voice chat menu and misc settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TomGrobbe committed Aug 9, 2018
1 parent 886d1bc commit ec7fed0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions vMenu/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,16 @@ private void CreateSubmenus()
AddMenu(menu, button);
}

// Add Voice Chat Menu.
if (Cf.IsAllowed(Permission.VCMenu))
{
VoiceChatSettingsMenu = new VoiceChat();
UIMenu menu = VoiceChatSettingsMenu.GetMenu();
UIMenuItem button = new UIMenuItem("Voice Chat Settings", "Change Voice Chat options here.");
button.SetRightLabel("→→→");
AddMenu(menu, button);
}

// Add misc settings menu.
//if (Cf.IsAllowed(Permission.MSMenu))
// removed the permissions check, because the misc menu should've never been restricted in the first place.
Expand All @@ -691,15 +701,7 @@ private void CreateSubmenus()
AddMenu(menu, button);
}

// Add Voice Chat Menu.
if (Cf.IsAllowed(Permission.VCMenu))
{
VoiceChatSettingsMenu = new VoiceChat();
UIMenu menu = VoiceChatSettingsMenu.GetMenu();
UIMenuItem button = new UIMenuItem("Voice Chat Settings", "Change Voice Chat options here.");
button.SetRightLabel("→→→");
AddMenu(menu, button);
}


// Add About Menu.
AboutMenu = new About();
Expand Down

0 comments on commit ec7fed0

Please sign in to comment.