Logique d'interaction pour EnduranceDebuff.xaml
 public EntityStatsMain(MainWindow parent)
 {
     InitializeComponent();
     _parent = parent;
     CloseWindow.Source = BasicTeraData.Instance.ImageDatabase.Close.Source;
     _header = new EnduranceDebuffHeader();
 }
Esempio n. 2
0
 public EntityStatsMain()
 {
     InitializeComponent();
     CloseWindow.Source = BasicTeraData.Instance.ImageDatabase.Close.Source;
     _header            = new EnduranceDebuffHeader();
     EnduranceAbnormality.Items.Add(_header);
 }
Esempio n. 3
0
        public Buff(PlayerDamageDealt playerDamageDealt, PlayerAbnormals buffs, EntityInformation entityInformation)
        {
            InitializeComponent();
            _header = new EnduranceDebuffHeader();
            ContentWidth = 1020;

            EnduranceAbnormality.Items.Clear();
            EnduranceAbnormality.Items.Add(_header);
            var counter = 0;
            foreach (var abnormality in buffs.Times.Where(x => x.Value.Duration(playerDamageDealt.BeginTime, playerDamageDealt.EndTime) > 0))
            {
                EnduranceDebuff abnormalityUi;
                if (_enduranceDebuffsList.Count > counter)
                {
                    abnormalityUi = _enduranceDebuffsList[counter];
                }
                else
                {
                    abnormalityUi = new EnduranceDebuff();
                    _enduranceDebuffsList.Add(abnormalityUi);
                }
                abnormalityUi.Update(abnormality.Key, abnormality.Value, playerDamageDealt.BeginTime, playerDamageDealt.EndTime);
                EnduranceAbnormality.Items.Add(abnormalityUi);

                counter++;
            }
        }
Esempio n. 4
0
 public EntityStatsMain(MainWindow parent)
 {
     InitializeComponent();
     _parent            = parent;
     CloseWindow.Source = BasicTeraData.Instance.ImageDatabase.Close.Source;
     _header            = new EnduranceDebuffHeader();
 }
Esempio n. 5
0
 public EntityStatsMain(MainWindow parent)
 {
     InitializeComponent();
     _parent = parent;
     _header = new EnduranceDebuffHeader();
 }