protected override async Task OnLoaded() { this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.DataContext = this.viewModel; await this.viewModel.OnLoaded(); }
protected override Task OnLoaded() { this.StartingHealthTextBox.Text = "5000"; this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.TextColorComboBox.ItemsSource = this.BorderColorComboBox.ItemsSource = this.BackgroundColorComboBox.ItemsSource = this.ProgressColorComboBox.ItemsSource = ColorSchemes.ColorSchemeDictionary.Keys; this.DamageAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectVisibleAnimationTypeEnum>(); this.DamageAnimationComboBox.SelectedIndex = 0; this.NewBossAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectVisibleAnimationTypeEnum>(); this.NewBossAnimationComboBox.SelectedIndex = 0; this.WidthTextBox.Text = "450"; this.HeightTextBox.Text = "100"; this.TextFontComboBox.Text = "Arial"; this.FollowBonusTextBox.Text = "1.0"; this.HostBonusTextBox.Text = "1.0"; this.SubBonusTextBox.Text = "10.0"; this.DonationBonusTextBox.Text = "1.0"; this.SparkBonusTextBox.Text = "0.01"; this.HTMLText.Text = OverlayStreamBoss.HTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override Task OnLoaded() { List <string> games = new List <string>() { CallOfDutyBlackOps4GameStatsSetup.GameName, FortniteGameStatsSetup.GameName, RainboxSixSiegeGameStatsSetup.GameName }; this.GameComboBox.ItemsSource = games.OrderBy(g => g); this.PlatformComboBox.ItemsSource = EnumHelper.GetEnumNames <GameStatsPlatformTypeEnum>(); this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.TextSizeComboBox.ItemsSource = OverlayTextItemControl.sampleFontSize.Select(f => f.ToString()); this.BorderColorComboBox.ItemsSource = this.BackgroundColorComboBox.ItemsSource = this.TextColorComboBox.ItemsSource = ColorSchemes.ColorSchemeDictionary.Keys; this.TextFontComboBox.Text = "Arial"; this.HTMLText.Text = GameStatsSetupBase.DefaultHTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override Task OnLoaded() { this.TotalToShowTextBox.Text = "5"; this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.BorderColorComboBox.ItemsSource = this.BackgroundColorComboBox.ItemsSource = this.TextColorComboBox.ItemsSource = ColorSchemes.ColorSchemeDictionary.Keys; this.AddEventAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectEntranceAnimationTypeEnum>(); this.AddEventAnimationComboBox.SelectedIndex = 0; this.RemoveEventAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectExitAnimationTypeEnum>(); this.RemoveEventAnimationComboBox.SelectedIndex = 0; this.WidthTextBox.Text = "400"; this.HeightTextBox.Text = "100"; this.TextFontComboBox.Text = "Arial"; this.HTMLText.Text = OverlayGameQueue.HTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override async Task OnLoaded() { this.SectionTextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.ItemTextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); await base.OnLoaded(); }
protected override Task OnLoaded() { this.TextColorComboBox.ItemsSource = ColorSchemes.HTMLColorSchemeDictionary.Keys; this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.TextSizeComboBox.ItemsSource = OverlayTextItemControl.sampleFontSize.Select(f => f.ToString()); this.MinimumSecondsTextBox.Text = "5"; this.TextFontComboBox.Text = "Arial"; this.FollowBonusTextBox.Text = "1.0"; this.HostBonusTextBox.Text = "1.0"; this.SubBonusTextBox.Text = "10.0"; this.DonationBonusTextBox.Text = "1.0"; this.SparkBonusTextBox.Text = "0.01"; this.EmberBonusTextBox.Text = "0.1"; this.HTMLText.Text = OverlayTimer.HTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override Task OnLoaded() { this.LeaderboardTypeComboBox.ItemsSource = EnumHelper.GetEnumNames <LeaderboardTypeEnum>(); this.CurrencyRankComboBox.ItemsSource = ChannelSession.Settings.Currencies.Values; this.SparkEmberDateComboBox.ItemsSource = EnumHelper.GetEnumNames <LeaderboardSparksEmbersDateEnum>(); this.TotalToShowTextBox.Text = "5"; this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.BorderColorComboBox.ItemsSource = this.BackgroundColorComboBox.ItemsSource = this.TextColorComboBox.ItemsSource = ColorSchemes.HTMLColorSchemeDictionary.Keys; this.AddEventAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectEntranceAnimationTypeEnum>(); this.AddEventAnimationComboBox.SelectedIndex = 0; this.RemoveEventAnimationComboBox.ItemsSource = EnumHelper.GetEnumNames <OverlayEffectExitAnimationTypeEnum>(); this.RemoveEventAnimationComboBox.SelectedIndex = 0; this.WidthTextBox.Text = "400"; this.HeightTextBox.Text = "100"; this.TextFontComboBox.Text = "Arial"; this.HTMLText.Text = OverlayLeaderboard.HTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override Task OnLoaded() { this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.TextSizeComboBox.ItemsSource = OverlayTextItemControl.sampleFontSize.Select(f => f.ToString()); this.TextShadowColorComboBox.ItemsSource = this.TextColorComboBox.ItemsSource = ColorSchemes.HTMLColorSchemeDictionary.Keys; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }
protected override Task OnLoaded() { this.GoalTypeComboBox.ItemsSource = EnumHelper.GetEnumNames <ProgressBarTypeEnum>().OrderBy(s => s); this.ProgressColorComboBox.ItemsSource = this.BackgroundColorComboBox.ItemsSource = this.TextColorComboBox.ItemsSource = ColorSchemes.ColorSchemeDictionary.Keys; this.TextFontComboBox.ItemsSource = InstalledFonts.GetInstalledFonts(); this.StartingAmountTextBox.Text = "0"; this.GoalAmountTextBox.Text = "0"; this.ResetAfterDaysTextBox.Text = "0"; this.TextFontComboBox.Text = "Arial"; this.HTMLText.Text = OverlayProgressBar.HTMLTemplate; if (this.item != null) { this.SetItem(this.item); } return(Task.FromResult(0)); }