private SquadAdvancementBaseTab CreateAndAddUpgradeTab(SquadSlidingScreen screen) { Lang lang = Service.Lang; string tabLabelString = lang.Get("PERK_CONTEXT_UPGRADE", new object[0]); SquadAdvancementBaseTab squadAdvancementBaseTab = new SquadAdvancementUpgradeTab(screen, "LabelTabUpPerks", tabLabelString); this.allAdvancementTabs.Add(squadAdvancementBaseTab); return(squadAdvancementBaseTab); }
private void SetDefaultTabActive() { SquadAdvancementUpgradeTab squadAdvancementUpgradeTab = (SquadAdvancementUpgradeTab)this.tabUpgrade.Tag; squadAdvancementUpgradeTab.CleanUpConfirmInfoView(); this.tabActivate.Selected = true; this.tabUpgrade.Selected = false; SquadAdvancementBaseTab squadAdvancementBaseTab = (SquadAdvancementBaseTab)this.tabActivate.Tag; if (squadAdvancementBaseTab != this.activeAdvancementTab) { this.activeAdvancementTab.Visible = false; this.activeAdvancementTab = squadAdvancementBaseTab; } }