public override OverlayItemModelBase GetOverlayItem() { if (this.Validate() && !string.IsNullOrEmpty(this.LeaderboardTypeString)) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); this.BorderColor = ColorSchemes.GetColorCode(this.BorderColor); this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); if (this.leaderboardType == OverlayLeaderboardListItemTypeEnum.CurrencyRank) { if (this.CurrencyRank != null) { return(new OverlayLeaderboardListItemModel(this.HTML, this.leaderboardType, totalToShow, this.Font, this.width, this.height, this.BorderColor, this.BackgroundColor, this.TextColor, this.alignment, this.entranceAnimation, this.exitAnimation, this.CurrencyRank, this.NewLeaderCommand)); } } else if (this.leaderboardType == OverlayLeaderboardListItemTypeEnum.Sparks || this.leaderboardType == OverlayLeaderboardListItemTypeEnum.Embers) { if (!string.IsNullOrEmpty(this.SparksEmbersDateString)) { return(new OverlayLeaderboardListItemModel(this.HTML, this.leaderboardType, totalToShow, this.Font, this.width, this.height, this.BorderColor, this.BackgroundColor, this.TextColor, this.alignment, this.entranceAnimation, this.exitAnimation, this.sparksEmbersDate, this.NewLeaderCommand)); } } else { return(new OverlayLeaderboardListItemModel(this.HTML, this.leaderboardType, totalToShow, this.Font, this.width, this.height, this.BorderColor, this.BackgroundColor, this.TextColor, this.alignment, this.entranceAnimation, this.exitAnimation, this.NewLeaderCommand)); } } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (!string.IsNullOrEmpty(this.Font) && !string.IsNullOrEmpty(this.Color) && !string.IsNullOrEmpty(this.HTML) && this.size > 0 && this.totalLength > 0) { this.Color = ColorSchemes.GetColorCode(this.Color); return(new OverlayTimerItemModel(this.HTML, this.totalLength, this.Color, this.Font, size, this.TimerCompleteCommand)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (this.width > 0 && this.height > 0 && !string.IsNullOrEmpty(this.Font) && !string.IsNullOrEmpty(this.TextColor) && !string.IsNullOrEmpty(this.HTML)) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); return(new OverlaySparkCrystalItemModel(this.HTML, this.TextColor, this.Font, this.width, this.height, this.CustomImageFilePath, this.progressAnimation, this.milestoneReachedAnimation)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (!string.IsNullOrEmpty(this.Font) && !string.IsNullOrEmpty(this.Color) && !string.IsNullOrEmpty(this.HTML) && this.size > 0 && this.minimumSecondsToShow > 0) { this.Color = ColorSchemes.GetColorCode(this.Color); return(new OverlayTimerTrainItemModel(this.HTML, this.minimumSecondsToShow, this.Color, this.Font, this.size, this.followBonus, this.hostBonus, this.raidBonus, this.subBonus, this.donationBonus, this.bitsBonus)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (!string.IsNullOrEmpty(this.Text) && !string.IsNullOrEmpty(this.Color) && this.size > 0) { this.Color = ColorSchemes.GetColorCode(this.Color); this.ShadowColor = ColorSchemes.GetColorCode(this.ShadowColor); return(new OverlayTextItemModel(this.Text, this.Color, this.size, this.Font, this.Bold, this.Italic, this.Underline, this.ShadowColor)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (this.Validate()) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); this.BorderColor = ColorSchemes.GetColorCode(this.BorderColor); this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); return(new OverlayChatMessagesListItemModel(this.HTML, totalToShow, fadeOut, this.Font, this.width, this.height, this.BorderColor, this.BackgroundColor, this.TextColor, this.alignment, this.entranceAnimation, this.exitAnimation)); } return(null); }
public ChatMessageViewModel(string alertText, UserViewModel user = null, string foregroundBrush = null) { this.User = user; this.IsInUsersChannel = true; this.IsAlert = true; this.Message = "--- " + alertText + " ---"; this.AlertMessageBrush = ColorSchemes.GetColorCode(foregroundBrush); this.MessageComponents.Add(new ChatMessageDataModel() { type = "text", text = this.Message }); }
public ChatMessageViewModel(string alertText, UserViewModel user = null, string foregroundBrush = null) { this.ID = Guid.Empty; this.User = user; this.Timestamp = DateTimeOffset.Now; this.Message = "--- " + alertText + " ---"; this.AlertMessageBrush = ColorSchemes.GetColorCode(foregroundBrush); this.MessageComponents.Add(new ChatMessageDataModel() { type = "text", text = this.Message }); }
public override OverlayItemModelBase GetOverlayItem() { if (this.Validate() && this.minimumAmountRequiredToShow >= 0) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); if (!this.ShowMinimumAmountRequiredToShow) { this.minimumAmountRequiredToShow = 0; } return(new OverlayTickerTapeListItemModel(this.HTML, totalToShow, this.tickerTapeType, this.minimumAmountRequiredToShow, this.TextColor, this.Font, this.width, this.height)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (this.startingHealth > 0 && this.width > 0 && this.height > 0 && !string.IsNullOrEmpty(this.HTML)) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); this.ProgressColor = ColorSchemes.GetColorCode(this.ProgressColor); this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); return(new OverlayStreamBossItemModel(this.HTML, this.startingHealth, this.width, this.height, this.TextColor, this.Font, this.BorderColor, this.BackgroundColor, this.ProgressColor, this.followBonus, this.hostBonus, this.subBonus, this.donationBonus, this.sparkBonus, this.emberBonus, this.healingBonus, this.overkillBonus, this.damageAnimation, this.newBossAnimation, this.NewBossCommand)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (!string.IsNullOrEmpty(this.SectionTextFont) && !string.IsNullOrEmpty(this.SectionTextColor) && this.sectionTextSize > 0 && !string.IsNullOrEmpty(this.ItemTextFont) && !string.IsNullOrEmpty(this.ItemTextColor) && this.itemTextSize > 0 && !string.IsNullOrEmpty(this.HTML) && this.SectionItems.Count > 0) { this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); this.SectionTextColor = ColorSchemes.GetColorCode(this.SectionTextColor); this.ItemTextColor = ColorSchemes.GetColorCode(this.ItemTextColor); Dictionary <OverlayEndCreditsSectionTypeEnum, OverlayEndCreditsSectionModel> sections = new Dictionary <OverlayEndCreditsSectionTypeEnum, OverlayEndCreditsSectionModel>(); foreach (OverlayEndCreditsSectionItemViewModel section in this.SectionItems) { sections[section.SectionType] = section.GetItem(); } return(new OverlayEndCreditsItemModel(this.HTML, sections, this.BackgroundColor, this.SectionTextColor, this.SectionTextFont, this.sectionTextSize, this.ItemTextColor, this.ItemTextFont, this.itemTextSize, this.speed)); } return(null); }
public override OverlayItemModelBase GetOverlayItem() { if (!string.IsNullOrEmpty(this.HTML) && !string.IsNullOrEmpty(this.StartingAmount) && !string.IsNullOrEmpty(this.GoalAmount) && !string.IsNullOrEmpty(this.Font) && this.width > 0 && this.height > 0) { this.TextColor = ColorSchemes.GetColorCode(this.TextColor); this.ProgressColor = ColorSchemes.GetColorCode(this.ProgressColor); this.BackgroundColor = ColorSchemes.GetColorCode(this.BackgroundColor); if (this.progressBarType == OverlayProgressBarItemTypeEnum.Custom) { return(new OverlayProgressBarItemModel(this.HTML, this.progressBarType, this.StartingAmount, this.GoalAmount, this.resetAfterDays, this.ProgressColor, this.BackgroundColor, this.TextColor, this.Font, this.width, this.height, this.OnGoalReachedCommand)); } else { if (double.TryParse(this.StartingAmount, out double start) && double.TryParse(this.GoalAmount, out double goal)) { return(new OverlayProgressBarItemModel(this.HTML, this.progressBarType, start, goal, this.resetAfterDays, this.ProgressColor, this.BackgroundColor, this.TextColor, this.Font, this.width, this.height, this.OnGoalReachedCommand)); } } } return(null); }