// Toolbar button void MainMenuButtonColor(DrawableLobbyModule module, bool requestSuccess) { if (currentLobbyModule == module) { if (requestSuccess) { GUI.backgroundColor = GUIColor.MenuItemActive; } else { GUI.backgroundColor = GUIColor.MenuItemLoading; } } else { GUI.backgroundColor = GUIColor.MenuItemInactive; } }
void ViewProfile(string accountId) { displayedAccount = PlayerAccount.Get(accountId); if (GameManager.inGame) { // Stop talking with NPC Player.main.talkingWithNPC = null; // Activate main menu //ToggleMouseLook.instance.DisableMouseLook(); // Show lobby MainMenu.instance.nextState = InGameMenuState.Lobby; MainMenu.instance.currentState = MainMenu.instance.nextState; // Jump to profile currentLobbyModule = profileGUI; } }