public void AddToGUIUpdateList() { if (GUI.DisableHUD) { return; } GameMode?.AddToGUIUpdateList(); tabMenu?.AddToGUIUpdateList(); if ((!(GameMode is CampaignMode campaign) || (!campaign.ForceMapUI && !campaign.ShowCampaignUI)) && !CoroutineManager.IsCoroutineRunning("LevelTransition") && !CoroutineManager.IsCoroutineRunning("SubmarineTransition")) { if (topLeftButtonGroup == null) { CreateTopLeftButtons(); } crewListButton.Selected = CrewManager != null && CrewManager.IsCrewMenuOpen; commandButton.Selected = CrewManager.IsCommandInterfaceOpen; commandButton.Enabled = CrewManager.CanIssueOrders; tabMenuButton.Selected = IsTabMenuOpen; topLeftButtonGroup.AddToGUIUpdateList(); } if (GameMain.NetworkMember != null) { GameMain.NetLobbyScreen.CharacterAppearanceCustomizationMenu?.AddToGUIUpdateList(); GameMain.NetLobbyScreen?.JobSelectionFrame?.AddToGUIUpdateList(); } }
public void AddToGUIUpdateList() { if (GUI.DisableHUD) { return; } GameMode?.AddToGUIUpdateList(); tabMenu?.AddToGUIUpdateList(); if (GameMain.NetworkMember != null) { GameMain.NetLobbyScreen?.HeadSelectionList?.AddToGUIUpdateList(); GameMain.NetLobbyScreen?.JobSelectionFrame?.AddToGUIUpdateList(); } }