public OverlayStreamBossItemViewModel(OverlayStreamBossItemModel item) : this() { this.startingHealth = item.StartingHealth; this.followBonus = item.FollowBonus; this.hostBonus = item.HostBonus; this.subBonus = item.SubscriberBonus; this.donationBonus = item.DonationBonus; this.sparkBonus = item.SparkBonus; this.emberBonus = item.EmberBonus; this.healingBonus = item.HealingBonus; this.overkillBonus = item.OverkillBonus; this.width = item.Width; this.height = item.Height; this.Font = item.TextFont; this.TextColor = ColorSchemes.GetColorName(item.TextColor); this.BorderColor = ColorSchemes.GetColorName(item.BorderColor); this.ProgressColor = ColorSchemes.GetColorName(item.ProgressColor); this.BackgroundColor = ColorSchemes.GetColorName(item.BackgroundColor); this.damageAnimation = item.DamageAnimation; this.newBossAnimation = item.NewBossAnimation; this.NewBossCommand = item.NewStreamBossCommand; this.HTML = item.HTML; }
public OverlayTimerItemViewModel(OverlayTimerItemModel item) : this() { this.totalLength = item.TotalLength; this.size = item.TextSize; this.Font = item.TextFont; this.Color = ColorSchemes.GetColorName(item.TextColor); this.HTML = item.HTML; this.TimerCompleteCommand = item.TimerFinishedCommand; }
public OverlayTextItemViewModel(OverlayTextItemModel item) : this() { this.Text = item.Text; this.size = item.Size; this.Font = item.Font; this.Bold = item.Bold; this.Italic = item.Italic; this.Underline = item.Underline; this.Color = ColorSchemes.GetColorName(item.Color); this.ShadowColor = ColorSchemes.GetColorName(item.ShadowColor); }
public OverlaySparkCrystalItemViewModel(OverlaySparkCrystalItemModel item) : this() { this.width = item.CrystalWidth; this.height = item.CrystalHeight; this.CustomImageFilePath = item.CustomImageFilePath; this.Font = item.TextFont; this.TextColor = ColorSchemes.GetColorName(item.TextColor); this.progressAnimation = item.ProgressAnimation; this.milestoneReachedAnimation = item.MilestoneReachedAnimation; this.HTML = item.HTML; }
public OverlayEndCreditsItemViewModel(OverlayEndCreditsItemModel item) : this() { this.speed = item.Speed; this.BackgroundColor = ColorSchemes.GetColorName(item.BackgroundColor); this.SectionTextFont = item.SectionTextFont; this.SectionTextColor = ColorSchemes.GetColorName(item.SectionTextColor); this.sectionTextSize = item.SectionTextSize; this.ItemTextFont = item.ItemTextFont; this.ItemTextColor = ColorSchemes.GetColorName(item.ItemTextColor); this.itemTextSize = item.ItemTextSize; this.HTML = item.TitleTemplate; this.SectionItems.AddRange(item.SectionTemplates.Select(kvp => new OverlayEndCreditsSectionItemViewModel(this, kvp.Value))); }
public OverlayProgressBarItemViewModel(OverlayProgressBarItemModel item) : this() { this.progressBarType = item.ProgressBarType; if (!string.IsNullOrEmpty(item.CurrentAmountCustom)) { this.StartingAmount = item.CurrentAmountCustom; } else { this.StartingAmount = item.StartAmount.ToString(); } if (this.progressBarType == OverlayProgressBarItemTypeEnum.Followers && item.StartAmount == 0) { this.TotalFollowers = true; } else { this.TotalFollowers = false; } if (!string.IsNullOrEmpty(item.GoalAmountCustom)) { this.GoalAmount = item.GoalAmountCustom; } else { this.GoalAmount = item.GoalAmount.ToString(); } this.resetAfterDays = item.ResetAfterDays; this.width = item.Width; this.height = item.Height; this.Font = item.TextFont; this.TextColor = ColorSchemes.GetColorName(item.TextColor); this.ProgressColor = ColorSchemes.GetColorName(item.ProgressColor); this.BackgroundColor = ColorSchemes.GetColorName(item.BackgroundColor); this.OnGoalReachedCommand = item.ProgressGoalReachedCommand; this.HTML = item.HTML; }
public OverlayTimerTrainItemViewModel(OverlayTimerTrainItemModel item) : this() { this.minimumSecondsToShow = item.MinimumSecondsToShow; this.size = item.TextSize; this.Font = item.TextFont; this.Color = ColorSchemes.GetColorName(item.TextColor); this.followBonus = item.FollowBonus; this.hostBonus = item.HostBonus; this.raidBonus = item.RaidBonus; this.subBonus = item.SubscriberBonus; this.donationBonus = item.DonationBonus; this.bitsBonus = item.BitsBonus; this.HTML = item.HTML; }
public OverlayListItemViewModelBase(int totalToShow, int fadeOut, int width, int height, string textFont, string textColor, string borderColor, string backgroundColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum entranceAnimation, OverlayItemEffectExitAnimationTypeEnum exitAnimation, string htmlText) : this() { this.totalToShow = totalToShow; this.fadeOut = fadeOut; this.width = width; this.height = height; this.Font = textFont; this.TextColor = ColorSchemes.GetColorName(textColor); this.BorderColor = ColorSchemes.GetColorName(borderColor); this.BackgroundColor = ColorSchemes.GetColorName(backgroundColor); this.alignment = alignment; this.entranceAnimation = entranceAnimation; this.exitAnimation = exitAnimation; this.HTML = htmlText; }