public Buff(PlayerInfo playerInfo, Entity currentBoss) { InitializeComponent(); _header = new EnduranceDebuffHeader(); ContentWidth = 1020; Update(playerInfo, currentBoss); }
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++; } }
public Buff(PlayerInfo playerInfo) { InitializeComponent(); _header = new EnduranceDebuffHeader(); ContentWidth = 980; Update(playerInfo); }