Permalink
Browse files

Changed order of voice chat menu and misc settings

  • Loading branch information...
TomGrobbe committed Aug 9, 2018
1 parent 886d1bc commit ec7fed03a43990968a7158d246ae74b5cec35b16
Showing with 11 additions and 9 deletions.
  1. +11 −9 vMenu/MainMenu.cs
@@ -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.
@@ -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();

0 comments on commit ec7fed0

Please sign in to comment.