Пример #1
0
 private void DestroyMonstersWidgets()
 {
     f_MonsterWidget?.UnhookEvents();
     s_MonsterWidget?.UnhookEvents();
     t_MonsterWidget?.UnhookEvents();
     f_MonsterWidget = null;
     s_MonsterWidget = null;
     t_MonsterWidget = null;
     Container.Children.Clear();
 }
Пример #2
0
 private void CreateMonstersWidgets()
 {
     f_MonsterWidget = new MonsterHealth();
     s_MonsterWidget = new MonsterHealth();
     t_MonsterWidget = new MonsterHealth();
     f_MonsterWidget.SetContext(Context.FirstMonster);
     s_MonsterWidget.SetContext(Context.SecondMonster);
     t_MonsterWidget.SetContext(Context.ThirdMonster);
     Container.Children.Add(f_MonsterWidget);
     Container.Children.Add(s_MonsterWidget);
     Container.Children.Add(t_MonsterWidget);
 }
Пример #3
0
 private void CreateMonstersWidgets()
 {
     f_MonsterWidget = new MonsterHealth();
     s_MonsterWidget = new MonsterHealth();
     t_MonsterWidget = new MonsterHealth();
     f_MonsterWidget.SetContext(Context.FirstMonster);
     s_MonsterWidget.SetContext(Context.SecondMonster);
     t_MonsterWidget.SetContext(Context.ThirdMonster);
     Container.Children.Add(f_MonsterWidget);
     Container.Children.Add(s_MonsterWidget);
     Container.Children.Add(t_MonsterWidget);
     UpdateMonstersWidgetsSettings(UserSettings.PlayerConfig.Overlay.MonstersComponent.ShowMonsterWeakness, UserSettings.PlayerConfig.Overlay.MonstersComponent.MaxNumberOfPartsAtOnce, UserSettings.PlayerConfig.Overlay.MonstersComponent.MonsterBarDock);
 }