/** * Clear then recreate all Views. */ public void Reset() { _vertical.Children.Clear(); _verticalEnemy.Children.Clear(); if (Settings.Default.EnemyEnabled) { Enemy = new NormalView(); _verticalEnemy.Children.Add(Enemy); } if (Settings.Default.ResurrectEnabled && ResurrectView.isValid()) { Resurrect = new ResurrectView(); _vertical.Children.Add(Resurrect); Normal = null; } else if (Settings.Default.NormalEnabled) { Normal = new NormalView(); _vertical.Children.Add(Normal); Resurrect = null; } if (Settings.Default.AnyfinEnabled && AnyfinView.isValid()) { Anyfin = new AnyfinView(); _vertical.Children.Add(Anyfin); } else { Anyfin = null; } if (Settings.Default.NZothEnabled && NZothView.isValid()) { NZoth = new NZothView(); _vertical.Children.Add(NZoth); } else { NZoth = null; } }
/** * Clear then recreate all Views. */ public void Reset() { _friendlyPanel.Children.Clear(); _enemyPanel.Children.Clear(); if (Core.Game.CurrentGameMode == GameMode.Battlegrounds) { // don't show graveyard for Battlegrounds return; } if (Settings.Default.EnemyEnabled) { Enemy = new NormalView(); _enemyPanel.Children.Add(Enemy); } else { Enemy = null; } if (Settings.Default.ResurrectEnabled && ResurrectView.isValid()) { Resurrect = new ResurrectView(); _friendlyPanel.Children.Add(Resurrect); Normal = null; } else if (Settings.Default.NormalEnabled) { Normal = new NormalView(); _friendlyPanel.Children.Add(Normal); Resurrect = null; } else { Normal = null; Resurrect = null; } if (Settings.Default.AnyfinEnabled && AnyfinView.isValid()) { Anyfin = new AnyfinView(); _friendlyPanel.Children.Add(Anyfin); } else { Anyfin = null; } if (Settings.Default.DeathrattleEnabled && DeathrattleView.isValid()) { Deathrattle = new DeathrattleView(); _friendlyPanel.Children.Add(Deathrattle); } else { Deathrattle = null; } if (Settings.Default.NZothEnabled && NZothView.isValid()) { NZoth = new NZothView(); _friendlyPanel.Children.Add(NZoth); } else { NZoth = null; } if (Settings.Default.HadronoxEnabled && HadronoxView.isValid()) { Hadronox = new HadronoxView(); _friendlyPanel.Children.Add(Hadronox); } else { Hadronox = null; } if (Settings.Default.DiscardEnabled && DiscardView.isValid()) { Discard = new DiscardView(); _friendlyPanel.Children.Add(Discard); } else { Discard = null; } if (Settings.Default.ShudderwockEnabled && ShudderwockView.isValid()) { Shudderwock = new ShudderwockView(); _friendlyPanel.Children.Add(Shudderwock); } else { Shudderwock = null; } if (Settings.Default.GuldanEnabled && GuldanView.isValid()) { Guldan = new GuldanView(); _friendlyPanel.Children.Add(Guldan); } else { Guldan = null; } if (Settings.Default.DragoncallerAlannaEnabled && DragoncallerAlannaView.isValid()) { DragoncallerAlanna = new DragoncallerAlannaView(); _friendlyPanel.Children.Add(DragoncallerAlanna); } else { DragoncallerAlanna = null; } if (Settings.Default.MulchmuncherEnabled && MulchmuncherView.isValid()) { Mulchmuncher = new MulchmuncherView(); _friendlyPanel.Children.Add(Mulchmuncher); } else { Mulchmuncher = null; } if (Settings.Default.CavernsEnabled && CavernsView.isValid()) { Caverns = new CavernsView(); _friendlyPanel.Children.Add(Caverns); } else { Caverns = null; } if (Settings.Default.KangorEnabled && KangorView.isValid()) { Kangor = new KangorView(); _friendlyPanel.Children.Add(Kangor); } else { Kangor = null; } if (Settings.Default.WitchingHourEnabled && WitchingHourView.isValid()) { WitchingHour = new WitchingHourView(); _friendlyPanel.Children.Add(WitchingHour); } else { WitchingHour = null; } if (Settings.Default.SoulwardenEnabled && SoulwardenView.isValid()) { Soulwarden = new SoulwardenView(); _friendlyPanel.Children.Add(Soulwarden); } else { Soulwarden = null; } if (Settings.Default.TessGreymaneEnabled && TessGreymaneView.isValid()) { TessGreymane = new TessGreymaneView(); _friendlyPanel.Children.Add(TessGreymane); } else { TessGreymane = null; } if (Settings.Default.ZuljinEnabled && ZuljinView.isValid()) { Zuljin = new ZuljinView(); _friendlyPanel.Children.Add(Zuljin); } else { Zuljin = null; } if (Settings.Default.HoardPillagerEnabled && HoardPillagerView.isValid()) { HoardPillager = new HoardPillagerView(); _friendlyPanel.Children.Add(HoardPillager); } else { HoardPillager = null; } }
/** * Clear then recreate all Views. */ public void Reset() { _friendlyPanel.Children.Clear(); _enemyPanel.Children.Clear(); if (Settings.Default.EnemyEnabled) { Enemy = new NormalView(); _enemyPanel.Children.Add(Enemy); } else { Enemy = null; } if (Settings.Default.ResurrectEnabled && ResurrectView.isValid()) { Resurrect = new ResurrectView(); _friendlyPanel.Children.Add(Resurrect); Normal = null; } else if (Settings.Default.NormalEnabled) { Normal = new NormalView(); _friendlyPanel.Children.Add(Normal); Resurrect = null; } else { Normal = null; Resurrect = null; } if (Settings.Default.AnyfinEnabled && AnyfinView.isValid()) { Anyfin = new AnyfinView(); _friendlyPanel.Children.Add(Anyfin); } else { Anyfin = null; } if (Settings.Default.NZothEnabled && NZothView.isValid()) { NZoth = new NZothView(); _friendlyPanel.Children.Add(NZoth); } else { NZoth = null; } if (Settings.Default.HadronoxEnabled && HadronoxView.isValid()) { Hadronox = new HadronoxView(); _friendlyPanel.Children.Add(Hadronox); } else { Hadronox = null; } if (Settings.Default.DiscardEnabled && DiscardView.isValid()) { Discard = new DiscardView(); _friendlyPanel.Children.Add(Discard); } else { Discard = null; } if (Settings.Default.ShudderwockEnabled && ShudderwockView.isValid()) { Shudderwock = new ShudderwockView(); _friendlyPanel.Children.Add(Shudderwock); } else { Shudderwock = null; } if (Settings.Default.GuldanEnabled && GuldanView.isValid()) { Guldan = new GuldanView(); _friendlyPanel.Children.Add(Guldan); } else { Guldan = null; } if (Settings.Default.DragoncallerAlannaEnabled && DragoncallerAlannaView.isValid()) { DragoncallerAlanna = new DragoncallerAlannaView(); _friendlyPanel.Children.Add(DragoncallerAlanna); } else { DragoncallerAlanna = null; } if (Settings.Default.NineLivesEnabled && NineLivesView.isValid()) { NineLives = new NineLivesView(); _friendlyPanel.Children.Add(NineLives); } else { NineLives = null; } if (Settings.Default.WitchingHourEnabled && WitchingHourView.isValid()) { WitchingHour = new WitchingHourView(); _friendlyPanel.Children.Add(WitchingHour); } else { WitchingHour = null; } }
/** * Clear then recreate all Views. */ public void Reset() { _vertical.Children.Clear(); _verticalEnemy.Children.Clear(); if (Settings.Default.EnemyEnabled) { Enemy = new NormalView(); _verticalEnemy.Children.Add(Enemy); } else { Enemy = null; } if (Settings.Default.ResurrectEnabled && ResurrectView.isValid()) { Resurrect = new ResurrectView(); _vertical.Children.Add(Resurrect); Normal = null; } else if (Settings.Default.NormalEnabled) { Normal = new NormalView(); _vertical.Children.Add(Normal); Resurrect = null; } else { Normal = null; Resurrect = null; } if (Settings.Default.AnyfinEnabled && AnyfinView.isValid()) { Anyfin = new AnyfinView(); _vertical.Children.Add(Anyfin); } else { Anyfin = null; } if (Settings.Default.NZothEnabled && NZothView.isValid()) { NZoth = new NZothView(); _vertical.Children.Add(NZoth); } else { NZoth = null; } if (Settings.Default.HadronoxEnabled && HadronoxView.isValid()) { Hadronox = new HadronoxView(); _vertical.Children.Add(Hadronox); } else { Hadronox = null; } if (Settings.Default.DiscardEnabled && DiscardView.isValid()) { Discard = new DiscardView(); _vertical.Children.Add(Discard); } else { Discard = null; } if (Settings.Default.GuldanEnabled && GuldanView.isValid()) { Guldan = new GuldanView(); _vertical.Children.Add(Guldan); } else { Guldan = null; } if (Settings.Default.GuldanEnabled && GuldanView.isValid()) { Guldan = new GuldanView(); _vertical.Children.Add(Guldan); } else { Guldan = null; } }
/** * Clear then recreate all Views. */ public void Reset() { _friendlyPanel.Children.Clear(); _enemyPanel.Children.Clear(); if (Core.Game.IsBattlegroundsMatch || Core.Game.IsMercenariesMatch) { // don't show graveyard for Battlegrounds or Mercenaries // this should include spectating return; } if (Settings.Default.EnemyQuestlineEnabled) { EnemyQuestline = new QuestlineView(); _enemyPanel.Children.Add(EnemyQuestline); } else { EnemyQuestline = null; } if (Settings.Default.EnemyEnabled) { Enemy = new NormalView(); _enemyPanel.Children.Add(Enemy); } else { Enemy = null; } if (Settings.Default.FriendlyQuestlineEnabled) { FriendlyQuestline = new QuestlineView(); _friendlyPanel.Children.Add(FriendlyQuestline); } else { FriendlyQuestline = null; } if (Settings.Default.ResurrectEnabled && ResurrectView.isValid()) { Resurrect = new ResurrectView(); _friendlyPanel.Children.Add(Resurrect); Normal = null; } else if (Settings.Default.NormalEnabled) { Normal = new NormalView(); _friendlyPanel.Children.Add(Normal); Resurrect = null; } else { Normal = null; Resurrect = null; } if (Settings.Default.AnyfinEnabled && AnyfinView.isValid()) { Anyfin = new AnyfinView(); _friendlyPanel.Children.Add(Anyfin); } else { Anyfin = null; } if (Settings.Default.DeathrattleEnabled && DeathrattleView.isValid()) { Deathrattle = new DeathrattleView(); _friendlyPanel.Children.Add(Deathrattle); } else { Deathrattle = null; } if (Settings.Default.NZothEnabled && NZothView.isValid()) { NZoth = new NZothView(); _friendlyPanel.Children.Add(NZoth); } else { NZoth = null; } if (Settings.Default.HadronoxEnabled && HadronoxView.isValid()) { Hadronox = new HadronoxView(); _friendlyPanel.Children.Add(Hadronox); } else { Hadronox = null; } if (Settings.Default.DiscardEnabled && DiscardView.isValid()) { Discard = new DiscardView(); _friendlyPanel.Children.Add(Discard); } else { Discard = null; } if (Settings.Default.ShudderwockEnabled && ShudderwockView.isValid()) { Shudderwock = new ShudderwockView(); _friendlyPanel.Children.Add(Shudderwock); } else { Shudderwock = null; } if (Settings.Default.GuldanEnabled && GuldanView.isValid()) { Guldan = new GuldanView(); _friendlyPanel.Children.Add(Guldan); } else { Guldan = null; } if (Settings.Default.DragoncallerAlannaEnabled && DragoncallerAlannaView.isValid()) { DragoncallerAlanna = new DragoncallerAlannaView(); _friendlyPanel.Children.Add(DragoncallerAlanna); } else { DragoncallerAlanna = null; } if (Settings.Default.MulchmuncherEnabled && MulchmuncherView.isValid()) { Mulchmuncher = new MulchmuncherView(); _friendlyPanel.Children.Add(Mulchmuncher); } else { Mulchmuncher = null; } if (Settings.Default.CavernsEnabled && CavernsView.isValid()) { Caverns = new CavernsView(); _friendlyPanel.Children.Add(Caverns); } else { Caverns = null; } if (Settings.Default.KangorEnabled && KangorView.isValid()) { Kangor = new KangorView(); _friendlyPanel.Children.Add(Kangor); } else { Kangor = null; } if (Settings.Default.WitchingHourEnabled && WitchingHourView.isValid()) { WitchingHour = new WitchingHourView(); _friendlyPanel.Children.Add(WitchingHour); } else { WitchingHour = null; } if (Settings.Default.SoulwardenEnabled && SoulwardenView.isValid()) { Soulwarden = new SoulwardenView(); _friendlyPanel.Children.Add(Soulwarden); } else { Soulwarden = null; } if (Settings.Default.TessGreymaneEnabled && TessGreymaneView.isValid()) { TessGreymane = new TessGreymaneView(); _friendlyPanel.Children.Add(TessGreymane); } else { TessGreymane = null; } if (Settings.Default.ZuljinEnabled && ZuljinView.isValid()) { Zuljin = new ZuljinView(); _friendlyPanel.Children.Add(Zuljin); } else { Zuljin = null; } if (Settings.Default.HoardPillagerEnabled && HoardPillagerView.isValid()) { HoardPillager = new HoardPillagerView(); _friendlyPanel.Children.Add(HoardPillager); } else { HoardPillager = null; } if (Settings.Default.LadyLiadrinEnabled && LadyLiadrinView.isValid()) { LadyLiadrin = new LadyLiadrinView(); _friendlyPanel.Children.Add(LadyLiadrin); } else { LadyLiadrin = null; } if (Settings.Default.NZothGotDEnabled && NZothGotDView.isValid()) { NZothGotD = new NZothGotDView(); _friendlyPanel.Children.Add(NZothGotD); } else { NZothGotD = null; } if (Settings.Default.RallyEnabled && RallyView.isValid()) { Rally = new RallyView(); _friendlyPanel.Children.Add(Rally); } else { Rally = null; } if (Settings.Default.SaurfangEnabled && SaurfangView.isValid()) { Saurfang = new SaurfangView(); _friendlyPanel.Children.Add(Saurfang); } else { Saurfang = null; } if (Settings.Default.YShaarjEnabled && YShaarjView.isValid()) { YShaarj = new YShaarjView(); _friendlyPanel.Children.Add(YShaarj); } else { YShaarj = null; } if (Settings.Default.ElwynnBoarEnabled && ElwynnBoarView.isValid()) { ElwynnBoar = new ElwynnBoarView(); _friendlyPanel.Children.Add(ElwynnBoar); } else { ElwynnBoar = null; } if (Settings.Default.KargalEnabled && KargalView.isValid()) { Kargal = new KargalView(); _friendlyPanel.Children.Add(Kargal); } else { Kargal = null; } if (Settings.Default.AntonidasEnabled && AntonidasView.isValid()) { Antonidas = new AntonidasView(); _friendlyPanel.Children.Add(Antonidas); } else { Antonidas = null; } if (Settings.Default.GrandFinaleEnabled && GrandFinaleView.isValid()) { GrandFinale = new GrandFinaleView(); _friendlyPanel.Children.Add(GrandFinale); } else { GrandFinale = null; } if (Settings.Default.LastPlayedEnabled && LastPlayedView.IsValid()) { LastPlayed = new LastPlayedView(); _friendlyPanel.Children.Add(LastPlayed); } else { LastPlayed = null; } if (Settings.Default.MulticasterEnabled && MulticasterView.IsValid()) { Multicaster = new MulticasterView(); _friendlyPanel.Children.Add(Multicaster); } else { Multicaster = null; } if (Settings.Default.ShirvallahEnabled && ShirvallahView.isValid()) { Shirvallah = new ShirvallahView(); _friendlyPanel.Children.Add(Shirvallah); } else { Shirvallah = null; } }