public OverlayWidget(string name, string overlayName, OverlayItemBase item, OverlayItemPosition position, bool dontRefresh) : this() { this.Name = name; this.OverlayName = overlayName; this.Item = item; this.Position = position; this.DontRefresh = dontRefresh; }
public override async Task <OverlayItemBase> GetProcessedItem(UserViewModel user, IEnumerable <string> arguments, Dictionary <string, string> extraSpecialIdentifiers) { if (this.DamageTaken) { if (this.NewBoss && this.NewStreamBossCommand != null) { await this.NewStreamBossCommand.Perform(); } OverlayItemBase copy = await base.GetProcessedItem(this.CurrentBoss, arguments, extraSpecialIdentifiers); this.DamageTaken = false; this.NewBoss = false; return(copy); } return(await base.GetProcessedItem(this.CurrentBoss, arguments, extraSpecialIdentifiers)); }