private void InitializePanelContent(string panelName, string previousPanelName) { switch (panelName) { case "OptionsPanel": Options.InitializePanel(); break; case "ModsPanel": ModsManager.InitializePanel(); break; case "BrowseRoomsPanel": Network.BrowseMatches(); break; case "SelectFactionPanel": SquadBuilder.ClearShipsOfPlayer(SquadBuilder.CurrentPlayer); break; case "SquadBuilderPanel": SquadBuilder.UpdateSquadName("SquadBuilderPanel"); SquadBuilder.ShowShipsAndUpgrades(); SquadBuilder.UpdateNextButton(); break; case "SelectShipPanel": SquadBuilder.ShowShipsFilteredByFaction(); break; case "SelectPilotPanel": SquadBuilder.ShowPilotsFilteredByShipAndFaction(); break; case "ShipSlotsPanel": SquadBuilder.ShowPilotWithSlots(); break; case "SelectUpgradePanel": SquadBuilder.ShowUpgradesList(); break; case "SquadronOptionsPanel": SquadBuilder.UpdateSquadName("SquadronOptionsPanel"); break; case "BrowseSavedSquadsPanel": SquadBuilder.BrowseSavedSquads(); break; case "SaveSquadronPanel": SquadBuilder.PrepareSaveSquadronPanel(); break; case "ShipSkinsPanel": SquadBuilder.ShowSkinButtons(); break; } }
private void InitializePanelContent(string panelName, string previousPanelName) { switch (panelName) { case "MainMenuPanel": UpdatePlayerInfo(); break; case "OptionsPanel": //Options.InitializePanel(); OptionsUI.Instance.InitializeOptionsPanel(); break; case "ModsPanel": ModsManager.InitializePanel(); break; case "CreditsPanel": CreditsUI.InitializePanel(); break; case "BrowseRoomsPanel": Network.BrowseMatches(); break; case "SelectFactionPanel": SquadBuilder.SetCurrentPlayerFaction(Faction.None); SquadBuilder.ClearShipsOfPlayer(SquadBuilder.CurrentPlayer); SquadBuilder.ShowFactionsImages(); break; case "SquadBuilderPanel": SquadBuilder.CheckAiButtonVisibility(); SquadBuilder.UpdateSquadName("SquadBuilderPanel"); SquadBuilder.ShowShipsAndUpgrades(); SquadBuilder.UpdateNextButton(); break; case "SelectShipPanel": SquadBuilder.ShowShipsFilteredByFaction(); break; case "SelectPilotPanel": SquadBuilder.ShowPilotsFilteredByShipAndFaction(); break; case "ShipSlotsPanel": SquadBuilder.ShowPilotWithSlots(); break; case "SelectUpgradePanel": SquadBuilder.ShowUpgradesList(); break; case "SquadronOptionsPanel": SquadBuilder.UpdateSquadName("SquadronOptionsPanel"); break; case "BrowseSavedSquadsPanel": SquadBuilder.BrowseSavedSquads(); break; case "SaveSquadronPanel": SquadBuilder.PrepareSaveSquadronPanel(); break; case "AvatarsPanel": InitializePlayerCustomization(); break; case "EditionPanel": ShowActiveEdition(Options.Edition); break; case "ShipInfoPanel": SquadBuilder.ShowShipInformation(); break; case "SkinsPanel": SquadBuilder.ShowSkinsPanel(); break; case "ChosenObstaclesPanel": SquadBuilder.ShowChosenObstaclesPanel(); break; case "BrowseObstaclesPanel": SquadBuilder.ShowBrowseObstaclesPanel(); break; } }