diff --git a/Controls/Grid.cs b/Controls/Grid.cs index 557bee0a9..7bc7bdee2 100644 --- a/Controls/Grid.cs +++ b/Controls/Grid.cs @@ -190,7 +190,27 @@ private string EscapeQuotes(string value, char escapeCharacter = ',') { } return value; } + + #region Export event handlers private void exportItemCSV_Click(object sender, EventArgs e) { + ExportCsv(); + } + + private void exportItemHTML_Click(object sender, EventArgs e) { + ExportHtml(); + } + + private void exportItemBBCODE_Click(object sender, EventArgs e) { + ExportBbCode(); + } + + private void exportItemMD_Click(object sender, EventArgs e) { + ExportMarkdown(); + } + #endregion + + #region Export methods + public void ExportCsv() { try { saveFile.Filter = "CSV files|*.csv"; if (saveFile.ShowDialog() == DialogResult.OK) { @@ -237,7 +257,8 @@ private void exportItemCSV_Click(object sender, EventArgs e) { ControlErrors.HandleException(this, ex, false); } } - private void exportItemHTML_Click(object sender, EventArgs e) { + + public void ExportHtml() { try { List columns = GetSortedColumns(); @@ -271,7 +292,8 @@ private void exportItemHTML_Click(object sender, EventArgs e) { ControlErrors.HandleException(this, ex, false); } } - private void exportItemBBCODE_Click(object sender, EventArgs e) { + + public void ExportBbCode() { try { List columns = GetSortedColumns(); @@ -305,7 +327,8 @@ private void exportItemBBCODE_Click(object sender, EventArgs e) { ControlErrors.HandleException(this, ex, false); } } - private void exportItemMD_Click(object sender, EventArgs e) { + + public void ExportMarkdown() { try { List columns = GetSortedColumns(); @@ -341,6 +364,8 @@ private void exportItemMD_Click(object sender, EventArgs e) { ControlErrors.HandleException(this, ex, false); } } + #endregion + private List GetSortedColumns() { List columns = new List(); foreach (DataGridViewColumn col in this.Columns) { diff --git a/Entities/UserSettings.cs b/Entities/UserSettings.cs index 4ab401dbd..52d639f1a 100644 --- a/Entities/UserSettings.cs +++ b/Entities/UserSettings.cs @@ -43,5 +43,6 @@ public class UserSettings { public bool IgnoreLevelTypeWhenSorting { get; set; } public string GameExeLocation { get; set; } public bool AutoLaunchGameOnStartup { get; set; } + public string OverlayFontSerialized { get; set; } } } \ No newline at end of file diff --git a/Views/Overlay.cs b/Views/Overlay.cs index 594d7a6d8..a1b7d370c 100644 --- a/Views/Overlay.cs +++ b/Views/Overlay.cs @@ -1,14 +1,11 @@ -using NewTek.NDI; -using System; +using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Imaging; using System.Drawing.Text; using System.IO; -using System.IO.Compression; using System.Runtime.InteropServices; using System.Threading; -using System.Threading.Tasks; using System.Windows.Forms; namespace FallGuysStats { public partial class Overlay : Form { @@ -102,23 +99,23 @@ public Overlay() { SetFonts(this); - this.DoubleBuffered = true; - this.SetStyle(ControlStyles.ResizeRedraw, true); + DoubleBuffered = true; + SetStyle(ControlStyles.ResizeRedraw, true); } protected override void WndProc(ref Message m) { if (m.Msg == 0x84) { - Point pos = this.PointToClient(new Point(m.LParam.ToInt32())); + Point pos = PointToClient(new Point(m.LParam.ToInt32())); int hitSize = 16; - if (pos.X >= this.ClientSize.Width - hitSize && pos.Y >= this.ClientSize.Height - hitSize) { + if (pos.X >= ClientSize.Width - hitSize && pos.Y >= ClientSize.Height - hitSize) { m.Result = (IntPtr)17; return; - } else if (pos.X <= hitSize && pos.Y >= this.ClientSize.Height - hitSize) { + } else if (pos.X <= hitSize && pos.Y >= ClientSize.Height - hitSize) { m.Result = (IntPtr)16; return; } else if (pos.X <= hitSize && pos.Y <= hitSize) { m.Result = (IntPtr)13; return; - } else if (pos.X >= this.ClientSize.Width - hitSize && pos.Y <= hitSize) { + } else if (pos.X >= ClientSize.Width - hitSize && pos.Y <= hitSize) { m.Result = (IntPtr)14; return; } @@ -151,10 +148,10 @@ private void Overlay_MouseDown(object sender, MouseEventArgs e) { private void UpdateTimer() { while (StatsForm != null && !StatsForm.IsDisposed && !StatsForm.Disposing) { try { - if (this.IsHandleCreated && !this.Disposing && !this.IsDisposed) { + if (IsHandleCreated && !Disposing && !IsDisposed) { frameCount++; isTimeToSwitch = frameCount % (StatsForm.CurrentSettings.CycleTimeSeconds * 20) == 0; - this.Invoke((Action)UpdateInfo); + Invoke((Action)UpdateInfo); } StatsForm.UpdateDates(); @@ -172,13 +169,13 @@ private void SetQualifyChanceLabel(StatSummary levelInfo) { switch (qualifySwitchCount % 2) { case 0: lblQualifyChance.Text = "QUALIFY:"; - qualifyChance = (float)levelInfo.TotalQualify * 100f / (levelInfo.TotalPlays == 0 ? 1 : levelInfo.TotalPlays); + qualifyChance = levelInfo.TotalQualify * 100f / (levelInfo.TotalPlays == 0 ? 1 : levelInfo.TotalPlays); qualifyChanceDisplay = StatsForm.CurrentSettings.HideOverlayPercentages ? string.Empty : $" - {qualifyChance:0.0}%"; lblQualifyChance.TextRight = $"{levelInfo.TotalQualify} / {levelInfo.TotalPlays}{qualifyChanceDisplay}"; break; case 1: lblQualifyChance.Text = "GOLD:"; - qualifyChance = (float)levelInfo.TotalGolds * 100f / (levelInfo.TotalPlays == 0 ? 1 : levelInfo.TotalPlays); + qualifyChance = levelInfo.TotalGolds * 100f / (levelInfo.TotalPlays == 0 ? 1 : levelInfo.TotalPlays); qualifyChanceDisplay = StatsForm.CurrentSettings.HideOverlayPercentages ? string.Empty : $" - {qualifyChance:0.0}%"; lblQualifyChance.TextRight = $"{levelInfo.TotalGolds} / {levelInfo.TotalPlays}{qualifyChanceDisplay}"; break; @@ -266,7 +263,7 @@ private void UpdateInfo() { StatSummary levelInfo = StatsForm.GetLevelInfo(roundName); lblName.TextRight = roundName; - float winChance = (float)levelInfo.TotalWins * 100f / (levelInfo.TotalShows == 0 ? 1 : levelInfo.TotalShows); + float winChance = levelInfo.TotalWins * 100f / (levelInfo.TotalShows == 0 ? 1 : levelInfo.TotalShows); string winChanceDisplay = StatsForm.CurrentSettings.HideOverlayPercentages ? string.Empty : $" - {winChance:0.0}%"; if (StatsForm.CurrentSettings.PreviousWins > 0) { lblWins.TextRight = $"{levelInfo.TotalWins} ({levelInfo.AllWins + StatsForm.CurrentSettings.PreviousWins}){winChanceDisplay}"; @@ -276,7 +273,7 @@ private void UpdateInfo() { lblWins.TextRight = $"{levelInfo.TotalWins}{winChanceDisplay}"; } - float finalChance = (float)levelInfo.TotalFinals * 100f / (levelInfo.TotalShows == 0 ? 1 : levelInfo.TotalShows); + float finalChance = levelInfo.TotalFinals * 100f / (levelInfo.TotalShows == 0 ? 1 : levelInfo.TotalShows); string finalText = $"{levelInfo.TotalFinals} / {levelInfo.TotalShows}"; string finalChanceDisplay = StatsForm.CurrentSettings.HideOverlayPercentages ? string.Empty : finalText.Length > 9 ? $" - {finalChance:0}%" : $" - {finalChance:0.0}%"; lblFinals.TextRight = $"{finalText}{finalChanceDisplay}"; @@ -349,7 +346,7 @@ private void UpdateInfo() { lblDuration.TextRight = "-"; } } - this.Invalidate(); + Invalidate(); } if (StatsForm.CurrentSettings.UseNDI) { @@ -472,7 +469,7 @@ public void SetBackgroundColor(int colorOption) { case 5: BackColor = Color.Green; break; } } - public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool hideRound, bool hideTime, int colorOption, int? width, int? height) { + public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool hideRound, bool hideTime, int colorOption, int? width, int? height, string serializedFont) { FlipDisplay(false); int heightOffset = showTabs ? 35 : 0; @@ -645,6 +642,12 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool break; } + if (!string.IsNullOrEmpty(serializedFont)) { + SetFonts(this, -1,new FontConverter().ConvertFromString(serializedFont) as Font); + } else { + SetFonts(this); + } + DisplayTabs(showTabs); FlipDisplay(flipDisplay); SetBackgroundColor(colorOption); diff --git a/Views/Settings.Designer.cs b/Views/Settings.Designer.cs index 184a8b337..b251959de 100644 --- a/Views/Settings.Designer.cs +++ b/Views/Settings.Designer.cs @@ -23,742 +23,836 @@ protected override void Dispose(bool disposing) { /// the contents of this method with the code editor. /// private void InitializeComponent() { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Settings)); - this.lblLogPath = new System.Windows.Forms.Label(); - this.lblLogPathNote = new System.Windows.Forms.Label(); - this.txtLogPath = new System.Windows.Forms.TextBox(); - this.btnSave = new System.Windows.Forms.Button(); - this.grpOverlay = new System.Windows.Forms.GroupBox(); - this.chkHidePercentages = new System.Windows.Forms.CheckBox(); - this.chkHideWinsInfo = new System.Windows.Forms.CheckBox(); - this.cboOverlayColor = new System.Windows.Forms.ComboBox(); - this.lblOverlayColor = new System.Windows.Forms.Label(); - this.chkFlipped = new System.Windows.Forms.CheckBox(); - this.chkShowTabs = new System.Windows.Forms.CheckBox(); - this.chkHideTimeInfo = new System.Windows.Forms.CheckBox(); - this.chkHideRoundInfo = new System.Windows.Forms.CheckBox(); - this.cboFastestFilter = new System.Windows.Forms.ComboBox(); - this.lblFastestFilter = new System.Windows.Forms.Label(); - this.cboQualifyFilter = new System.Windows.Forms.ComboBox(); - this.lblQualifyFilter = new System.Windows.Forms.Label(); - this.cboWinsFilter = new System.Windows.Forms.ComboBox(); - this.lblWinsFilter = new System.Windows.Forms.Label(); - this.chkOverlayOnTop = new System.Windows.Forms.CheckBox(); - this.chkUseNDI = new System.Windows.Forms.CheckBox(); - this.lblCycleTimeSecondsTag = new System.Windows.Forms.Label(); - this.lblCycleTimeSeconds = new System.Windows.Forms.Label(); - this.txtCycleTimeSeconds = new System.Windows.Forms.TextBox(); - this.grpStats = new System.Windows.Forms.GroupBox(); - this.chkChangeHoopsieLegends = new System.Windows.Forms.CheckBox(); - this.chkAutoUpdate = new System.Windows.Forms.CheckBox(); - this.lblPreviousWinsNote = new System.Windows.Forms.Label(); - this.lblPreviousWins = new System.Windows.Forms.Label(); - this.txtPreviousWins = new System.Windows.Forms.TextBox(); - this.grpGameOptions = new System.Windows.Forms.GroupBox(); - this.lblGameExeLocation = new System.Windows.Forms.Label(); - this.txtGameExeLocation = new System.Windows.Forms.TextBox(); - this.btnGameExeLocationBrowse = new System.Windows.Forms.Button(); - this.chkAutoLaunchGameOnStart = new System.Windows.Forms.CheckBox(); - this.grpSortingOptions = new System.Windows.Forms.GroupBox(); - this.chkIgnoreLevelTypeWhenSorting = new System.Windows.Forms.CheckBox(); - this.btnCancel = new System.Windows.Forms.Button(); - this.grpCycleQualifyGold = new System.Windows.Forms.GroupBox(); - this.chkCycleQualifyGold = new System.Windows.Forms.RadioButton(); - this.chkOnlyShowQualify = new System.Windows.Forms.RadioButton(); - this.chkOnlyShowGold = new System.Windows.Forms.RadioButton(); - this.grpCycleFastestLongest = new System.Windows.Forms.GroupBox(); - this.chkOnlyShowLongest = new System.Windows.Forms.RadioButton(); - this.chkOnlyShowFastest = new System.Windows.Forms.RadioButton(); - this.chkCycleFastestLongest = new System.Windows.Forms.RadioButton(); - this.grpCycleWinFinalStreak = new System.Windows.Forms.GroupBox(); - this.chkOnlyShowFinalStreak = new System.Windows.Forms.RadioButton(); - this.chkOnlyShowWinStreak = new System.Windows.Forms.RadioButton(); - this.chkCycleWinFinalStreak = new System.Windows.Forms.RadioButton(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.chkOnlyShowPing = new System.Windows.Forms.RadioButton(); - this.chkOnlyShowPlayers = new System.Windows.Forms.RadioButton(); - this.chkCyclePlayersPing = new System.Windows.Forms.RadioButton(); - this.grpOverlay.SuspendLayout(); - this.grpStats.SuspendLayout(); - this.grpGameOptions.SuspendLayout(); - this.grpSortingOptions.SuspendLayout(); - this.grpCycleQualifyGold.SuspendLayout(); - this.grpCycleFastestLongest.SuspendLayout(); - this.grpCycleWinFinalStreak.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.SuspendLayout(); - // - // lblLogPath - // - this.lblLogPath.AutoSize = true; - this.lblLogPath.Location = new System.Drawing.Point(8, 15); - this.lblLogPath.Name = "lblLogPath"; - this.lblLogPath.Size = new System.Drawing.Size(50, 13); - this.lblLogPath.TabIndex = 0; - this.lblLogPath.Text = "Log Path"; - // - // lblLogPathNote - // - this.lblLogPathNote.AutoSize = true; - this.lblLogPathNote.ForeColor = System.Drawing.Color.DimGray; - this.lblLogPathNote.Location = new System.Drawing.Point(61, 35); - this.lblLogPathNote.Name = "lblLogPathNote"; - this.lblLogPathNote.Size = new System.Drawing.Size(458, 13); - this.lblLogPathNote.TabIndex = 2; - this.lblLogPathNote.Text = "* You should not need to set this. Only use when the program is not reading the c" + + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Settings)); + this.lblLogPath = new System.Windows.Forms.Label(); + this.lblLogPathNote = new System.Windows.Forms.Label(); + this.txtLogPath = new System.Windows.Forms.TextBox(); + this.btnSave = new System.Windows.Forms.Button(); + this.grpOverlay = new System.Windows.Forms.GroupBox(); + this.grpCycleQualifyGold = new System.Windows.Forms.GroupBox(); + this.chkOnlyShowGold = new System.Windows.Forms.RadioButton(); + this.chkOnlyShowQualify = new System.Windows.Forms.RadioButton(); + this.chkCycleQualifyGold = new System.Windows.Forms.RadioButton(); + this.grpCycleFastestLongest = new System.Windows.Forms.GroupBox(); + this.chkOnlyShowLongest = new System.Windows.Forms.RadioButton(); + this.chkOnlyShowFastest = new System.Windows.Forms.RadioButton(); + this.chkCycleFastestLongest = new System.Windows.Forms.RadioButton(); + this.chkHidePercentages = new System.Windows.Forms.CheckBox(); + this.chkHideWinsInfo = new System.Windows.Forms.CheckBox(); + this.cboOverlayColor = new System.Windows.Forms.ComboBox(); + this.lblOverlayColor = new System.Windows.Forms.Label(); + this.chkFlipped = new System.Windows.Forms.CheckBox(); + this.chkShowTabs = new System.Windows.Forms.CheckBox(); + this.chkHideTimeInfo = new System.Windows.Forms.CheckBox(); + this.chkHideRoundInfo = new System.Windows.Forms.CheckBox(); + this.lblOverlayFont = new System.Windows.Forms.Label(); + this.cboFastestFilter = new System.Windows.Forms.ComboBox(); + this.lblFastestFilter = new System.Windows.Forms.Label(); + this.cboQualifyFilter = new System.Windows.Forms.ComboBox(); + this.lblQualifyFilter = new System.Windows.Forms.Label(); + this.cboWinsFilter = new System.Windows.Forms.ComboBox(); + this.lblWinsFilter = new System.Windows.Forms.Label(); + this.chkOverlayOnTop = new System.Windows.Forms.CheckBox(); + this.chkUseNDI = new System.Windows.Forms.CheckBox(); + this.lblCycleTimeSecondsTag = new System.Windows.Forms.Label(); + this.lblCycleTimeSeconds = new System.Windows.Forms.Label(); + this.txtCycleTimeSeconds = new System.Windows.Forms.TextBox(); + this.grpCycleWinFinalStreak = new System.Windows.Forms.GroupBox(); + this.chkOnlyShowFinalStreak = new System.Windows.Forms.RadioButton(); + this.chkOnlyShowWinStreak = new System.Windows.Forms.RadioButton(); + this.chkCycleWinFinalStreak = new System.Windows.Forms.RadioButton(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.chkOnlyShowPing = new System.Windows.Forms.RadioButton(); + this.chkOnlyShowPlayers = new System.Windows.Forms.RadioButton(); + this.chkCyclePlayersPing = new System.Windows.Forms.RadioButton(); + this.btnSelectFont = new System.Windows.Forms.Button(); + this.btnResetOverlayFont = new System.Windows.Forms.Button(); + this.grpOverlayFontExample = new System.Windows.Forms.GroupBox(); + this.lblOverlayFontExample = new System.Windows.Forms.Label(); + this.grpStats = new System.Windows.Forms.GroupBox(); + this.chkChangeHoopsieLegends = new System.Windows.Forms.CheckBox(); + this.chkAutoUpdate = new System.Windows.Forms.CheckBox(); + this.lblPreviousWinsNote = new System.Windows.Forms.Label(); + this.lblPreviousWins = new System.Windows.Forms.Label(); + this.txtPreviousWins = new System.Windows.Forms.TextBox(); + this.grpGameOptions = new System.Windows.Forms.GroupBox(); + this.lblGameExeLocation = new System.Windows.Forms.Label(); + this.txtGameExeLocation = new System.Windows.Forms.TextBox(); + this.btnGameExeLocationBrowse = new System.Windows.Forms.Button(); + this.chkAutoLaunchGameOnStart = new System.Windows.Forms.CheckBox(); + this.grpSortingOptions = new System.Windows.Forms.GroupBox(); + this.chkIgnoreLevelTypeWhenSorting = new System.Windows.Forms.CheckBox(); + this.btnCancel = new System.Windows.Forms.Button(); + this.dlgOverlayFont = new System.Windows.Forms.FontDialog(); + this.grpOverlay.SuspendLayout(); + this.grpCycleQualifyGold.SuspendLayout(); + this.grpCycleFastestLongest.SuspendLayout(); + this.grpCycleWinFinalStreak.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.grpOverlayFontExample.SuspendLayout(); + this.grpStats.SuspendLayout(); + this.grpGameOptions.SuspendLayout(); + this.grpSortingOptions.SuspendLayout(); + this.SuspendLayout(); + // + // lblLogPath + // + this.lblLogPath.AutoSize = true; + this.lblLogPath.Location = new System.Drawing.Point(12, 23); + this.lblLogPath.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblLogPath.Name = "lblLogPath"; + this.lblLogPath.Size = new System.Drawing.Size(73, 20); + this.lblLogPath.TabIndex = 0; + this.lblLogPath.Text = "Log Path"; + // + // lblLogPathNote + // + this.lblLogPathNote.AutoSize = true; + this.lblLogPathNote.ForeColor = System.Drawing.Color.DimGray; + this.lblLogPathNote.Location = new System.Drawing.Point(92, 54); + this.lblLogPathNote.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblLogPathNote.Name = "lblLogPathNote"; + this.lblLogPathNote.Size = new System.Drawing.Size(682, 20); + this.lblLogPathNote.TabIndex = 2; + this.lblLogPathNote.Text = "* You should not need to set this. Only use when the program is not reading the c" + "orrect location."; - // - // txtLogPath - // - this.txtLogPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + // txtLogPath + // + this.txtLogPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.txtLogPath.Location = new System.Drawing.Point(64, 12); - this.txtLogPath.Name = "txtLogPath"; - this.txtLogPath.Size = new System.Drawing.Size(593, 20); - this.txtLogPath.TabIndex = 1; - this.txtLogPath.Validating += new System.ComponentModel.CancelEventHandler(this.txtLogPath_Validating); - // - // btnSave - // - this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnSave.Location = new System.Drawing.Point(500, 528); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(75, 23); - this.btnSave.TabIndex = 7; - this.btnSave.Text = "Save"; - this.btnSave.UseVisualStyleBackColor = true; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // grpOverlay - // - this.grpOverlay.Controls.Add(this.grpCycleQualifyGold); - this.grpOverlay.Controls.Add(this.grpCycleFastestLongest); - this.grpOverlay.Controls.Add(this.chkHidePercentages); - this.grpOverlay.Controls.Add(this.chkHideWinsInfo); - this.grpOverlay.Controls.Add(this.cboOverlayColor); - this.grpOverlay.Controls.Add(this.lblOverlayColor); - this.grpOverlay.Controls.Add(this.chkFlipped); - this.grpOverlay.Controls.Add(this.chkShowTabs); - this.grpOverlay.Controls.Add(this.chkHideTimeInfo); - this.grpOverlay.Controls.Add(this.chkHideRoundInfo); - this.grpOverlay.Controls.Add(this.cboFastestFilter); - this.grpOverlay.Controls.Add(this.lblFastestFilter); - this.grpOverlay.Controls.Add(this.cboQualifyFilter); - this.grpOverlay.Controls.Add(this.lblQualifyFilter); - this.grpOverlay.Controls.Add(this.cboWinsFilter); - this.grpOverlay.Controls.Add(this.lblWinsFilter); - this.grpOverlay.Controls.Add(this.chkOverlayOnTop); - this.grpOverlay.Controls.Add(this.chkUseNDI); - this.grpOverlay.Controls.Add(this.lblCycleTimeSecondsTag); - this.grpOverlay.Controls.Add(this.lblCycleTimeSeconds); - this.grpOverlay.Controls.Add(this.txtCycleTimeSeconds); - this.grpOverlay.Controls.Add(this.grpCycleWinFinalStreak); - this.grpOverlay.Controls.Add(this.groupBox1); - this.grpOverlay.Location = new System.Drawing.Point(12, 115); - this.grpOverlay.Name = "grpOverlay"; - this.grpOverlay.Size = new System.Drawing.Size(645, 285); - this.grpOverlay.TabIndex = 4; - this.grpOverlay.TabStop = false; - this.grpOverlay.Text = "Overlay"; - // - // chkHidePercentages - // - this.chkHidePercentages.AutoSize = true; - this.chkHidePercentages.Location = new System.Drawing.Point(16, 90); - this.chkHidePercentages.Name = "chkHidePercentages"; - this.chkHidePercentages.Size = new System.Drawing.Size(111, 17); - this.chkHidePercentages.TabIndex = 3; - this.chkHidePercentages.Text = "Hide Percentages"; - this.chkHidePercentages.UseVisualStyleBackColor = true; - // - // chkHideWinsInfo - // - this.chkHideWinsInfo.AutoSize = true; - this.chkHideWinsInfo.Location = new System.Drawing.Point(16, 21); - this.chkHideWinsInfo.Name = "chkHideWinsInfo"; - this.chkHideWinsInfo.Size = new System.Drawing.Size(95, 17); - this.chkHideWinsInfo.TabIndex = 0; - this.chkHideWinsInfo.Text = "Hide Wins info"; - this.chkHideWinsInfo.UseVisualStyleBackColor = true; - // - // cboOverlayColor - // - this.cboOverlayColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboOverlayColor.FormattingEnabled = true; - this.cboOverlayColor.Items.AddRange(new object[] { + this.txtLogPath.Location = new System.Drawing.Point(96, 18); + this.txtLogPath.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.txtLogPath.Name = "txtLogPath"; + this.txtLogPath.Size = new System.Drawing.Size(888, 26); + this.txtLogPath.TabIndex = 1; + this.txtLogPath.Validating += new System.ComponentModel.CancelEventHandler(this.txtLogPath_Validating); + // + // btnSave + // + this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnSave.Location = new System.Drawing.Point(750, 911); + this.btnSave.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.btnSave.Name = "btnSave"; + this.btnSave.Size = new System.Drawing.Size(112, 35); + this.btnSave.TabIndex = 7; + this.btnSave.Text = "Save"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // grpOverlay + // + this.grpOverlay.Controls.Add(this.grpCycleQualifyGold); + this.grpOverlay.Controls.Add(this.grpCycleFastestLongest); + this.grpOverlay.Controls.Add(this.chkHidePercentages); + this.grpOverlay.Controls.Add(this.chkHideWinsInfo); + this.grpOverlay.Controls.Add(this.cboOverlayColor); + this.grpOverlay.Controls.Add(this.lblOverlayColor); + this.grpOverlay.Controls.Add(this.chkFlipped); + this.grpOverlay.Controls.Add(this.chkShowTabs); + this.grpOverlay.Controls.Add(this.chkHideTimeInfo); + this.grpOverlay.Controls.Add(this.chkHideRoundInfo); + this.grpOverlay.Controls.Add(this.cboFastestFilter); + this.grpOverlay.Controls.Add(this.lblFastestFilter); + this.grpOverlay.Controls.Add(this.cboQualifyFilter); + this.grpOverlay.Controls.Add(this.lblQualifyFilter); + this.grpOverlay.Controls.Add(this.cboWinsFilter); + this.grpOverlay.Controls.Add(this.lblWinsFilter); + this.grpOverlay.Controls.Add(this.chkOverlayOnTop); + this.grpOverlay.Controls.Add(this.chkUseNDI); + this.grpOverlay.Controls.Add(this.lblCycleTimeSecondsTag); + this.grpOverlay.Controls.Add(this.lblCycleTimeSeconds); + this.grpOverlay.Controls.Add(this.txtCycleTimeSeconds); + this.grpOverlay.Controls.Add(this.grpCycleWinFinalStreak); + this.grpOverlay.Controls.Add(this.groupBox1); + this.grpOverlay.Controls.Add(this.lblOverlayFont); + this.grpOverlay.Controls.Add(this.btnSelectFont); + this.grpOverlay.Controls.Add(this.btnResetOverlayFont); + this.grpOverlay.Controls.Add(this.grpOverlayFontExample); + this.grpOverlay.Location = new System.Drawing.Point(18, 177); + this.grpOverlay.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.grpOverlay.Name = "grpOverlay"; + this.grpOverlay.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.grpOverlay.Size = new System.Drawing.Size(968, 542); + this.grpOverlay.TabIndex = 4; + this.grpOverlay.TabStop = false; + this.grpOverlay.Text = "Overlay"; + // + // grpCycleQualifyGold + // + this.grpCycleQualifyGold.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.grpCycleQualifyGold.Controls.Add(this.chkOnlyShowGold); + this.grpCycleQualifyGold.Controls.Add(this.chkOnlyShowQualify); + this.grpCycleQualifyGold.Controls.Add(this.chkCycleQualifyGold); + this.grpCycleQualifyGold.Location = new System.Drawing.Point(18, 263); + this.grpCycleQualifyGold.Margin = new System.Windows.Forms.Padding(0); + this.grpCycleQualifyGold.Name = "grpCycleQualifyGold"; + this.grpCycleQualifyGold.Size = new System.Drawing.Size(554, 49); + this.grpCycleQualifyGold.TabIndex = 8; + this.grpCycleQualifyGold.TabStop = false; + // + // chkOnlyShowGold + // + this.chkOnlyShowGold.AutoSize = true; + this.chkOnlyShowGold.Location = new System.Drawing.Point(388, 15); + this.chkOnlyShowGold.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowGold.Name = "chkOnlyShowGold"; + this.chkOnlyShowGold.Size = new System.Drawing.Size(103, 24); + this.chkOnlyShowGold.TabIndex = 2; + this.chkOnlyShowGold.Text = "Gold Only"; + this.chkOnlyShowGold.UseVisualStyleBackColor = true; + // + // chkOnlyShowQualify + // + this.chkOnlyShowQualify.AutoSize = true; + this.chkOnlyShowQualify.Location = new System.Drawing.Point(226, 15); + this.chkOnlyShowQualify.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowQualify.Name = "chkOnlyShowQualify"; + this.chkOnlyShowQualify.Size = new System.Drawing.Size(117, 24); + this.chkOnlyShowQualify.TabIndex = 1; + this.chkOnlyShowQualify.Text = "Qualify Only"; + this.chkOnlyShowQualify.UseVisualStyleBackColor = true; + // + // chkCycleQualifyGold + // + this.chkCycleQualifyGold.AutoSize = true; + this.chkCycleQualifyGold.Checked = true; + this.chkCycleQualifyGold.Location = new System.Drawing.Point(8, 15); + this.chkCycleQualifyGold.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkCycleQualifyGold.Name = "chkCycleQualifyGold"; + this.chkCycleQualifyGold.Size = new System.Drawing.Size(170, 24); + this.chkCycleQualifyGold.TabIndex = 0; + this.chkCycleQualifyGold.TabStop = true; + this.chkCycleQualifyGold.Text = "Cycle Qualify / Gold"; + this.chkCycleQualifyGold.UseVisualStyleBackColor = true; + // + // grpCycleFastestLongest + // + this.grpCycleFastestLongest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.grpCycleFastestLongest.Controls.Add(this.chkOnlyShowLongest); + this.grpCycleFastestLongest.Controls.Add(this.chkOnlyShowFastest); + this.grpCycleFastestLongest.Controls.Add(this.chkCycleFastestLongest); + this.grpCycleFastestLongest.Location = new System.Drawing.Point(18, 302); + this.grpCycleFastestLongest.Margin = new System.Windows.Forms.Padding(0); + this.grpCycleFastestLongest.Name = "grpCycleFastestLongest"; + this.grpCycleFastestLongest.Size = new System.Drawing.Size(554, 49); + this.grpCycleFastestLongest.TabIndex = 9; + this.grpCycleFastestLongest.TabStop = false; + // + // chkOnlyShowLongest + // + this.chkOnlyShowLongest.AutoSize = true; + this.chkOnlyShowLongest.Location = new System.Drawing.Point(388, 15); + this.chkOnlyShowLongest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowLongest.Name = "chkOnlyShowLongest"; + this.chkOnlyShowLongest.Size = new System.Drawing.Size(127, 24); + this.chkOnlyShowLongest.TabIndex = 2; + this.chkOnlyShowLongest.Text = "Longest Only"; + this.chkOnlyShowLongest.UseVisualStyleBackColor = true; + // + // chkOnlyShowFastest + // + this.chkOnlyShowFastest.AutoSize = true; + this.chkOnlyShowFastest.Location = new System.Drawing.Point(226, 15); + this.chkOnlyShowFastest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowFastest.Name = "chkOnlyShowFastest"; + this.chkOnlyShowFastest.Size = new System.Drawing.Size(123, 24); + this.chkOnlyShowFastest.TabIndex = 1; + this.chkOnlyShowFastest.Text = "Fastest Only"; + this.chkOnlyShowFastest.UseVisualStyleBackColor = true; + // + // chkCycleFastestLongest + // + this.chkCycleFastestLongest.AutoSize = true; + this.chkCycleFastestLongest.Checked = true; + this.chkCycleFastestLongest.Location = new System.Drawing.Point(8, 15); + this.chkCycleFastestLongest.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkCycleFastestLongest.Name = "chkCycleFastestLongest"; + this.chkCycleFastestLongest.Size = new System.Drawing.Size(200, 24); + this.chkCycleFastestLongest.TabIndex = 0; + this.chkCycleFastestLongest.TabStop = true; + this.chkCycleFastestLongest.Text = "Cycle Fastest / Longest"; + this.chkCycleFastestLongest.UseVisualStyleBackColor = true; + // + // chkHidePercentages + // + this.chkHidePercentages.AutoSize = true; + this.chkHidePercentages.Location = new System.Drawing.Point(24, 138); + this.chkHidePercentages.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkHidePercentages.Name = "chkHidePercentages"; + this.chkHidePercentages.Size = new System.Drawing.Size(162, 24); + this.chkHidePercentages.TabIndex = 3; + this.chkHidePercentages.Text = "Hide Percentages"; + this.chkHidePercentages.UseVisualStyleBackColor = true; + // + // chkHideWinsInfo + // + this.chkHideWinsInfo.AutoSize = true; + this.chkHideWinsInfo.Location = new System.Drawing.Point(24, 32); + this.chkHideWinsInfo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkHideWinsInfo.Name = "chkHideWinsInfo"; + this.chkHideWinsInfo.Size = new System.Drawing.Size(137, 24); + this.chkHideWinsInfo.TabIndex = 0; + this.chkHideWinsInfo.Text = "Hide Wins info"; + this.chkHideWinsInfo.UseVisualStyleBackColor = true; + // + // cboOverlayColor + // + this.cboOverlayColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboOverlayColor.FormattingEnabled = true; + this.cboOverlayColor.Items.AddRange(new object[] { "Transparent", "Magenta", "Red", "Green", "Blue", "Black"}); - this.cboOverlayColor.Location = new System.Drawing.Point(447, 150); - this.cboOverlayColor.Name = "cboOverlayColor"; - this.cboOverlayColor.Size = new System.Drawing.Size(183, 21); - this.cboOverlayColor.TabIndex = 19; - // - // lblOverlayColor - // - this.lblOverlayColor.AutoSize = true; - this.lblOverlayColor.Location = new System.Drawing.Point(376, 153); - this.lblOverlayColor.Name = "lblOverlayColor"; - this.lblOverlayColor.Size = new System.Drawing.Size(65, 13); - this.lblOverlayColor.TabIndex = 18; - this.lblOverlayColor.Text = "Background"; - // - // chkFlipped - // - this.chkFlipped.AutoSize = true; - this.chkFlipped.Location = new System.Drawing.Point(447, 181); - this.chkFlipped.Name = "chkFlipped"; - this.chkFlipped.Size = new System.Drawing.Size(132, 17); - this.chkFlipped.TabIndex = 20; - this.chkFlipped.Text = "Flip display horizontally"; - this.chkFlipped.UseVisualStyleBackColor = true; - // - // chkShowTabs - // - this.chkShowTabs.AutoSize = true; - this.chkShowTabs.Location = new System.Drawing.Point(16, 113); - this.chkShowTabs.Name = "chkShowTabs"; - this.chkShowTabs.Size = new System.Drawing.Size(148, 17); - this.chkShowTabs.TabIndex = 4; - this.chkShowTabs.Text = "Show Tab for current filter"; - this.chkShowTabs.UseVisualStyleBackColor = true; - // - // chkHideTimeInfo - // - this.chkHideTimeInfo.AutoSize = true; - this.chkHideTimeInfo.Location = new System.Drawing.Point(16, 67); - this.chkHideTimeInfo.Name = "chkHideTimeInfo"; - this.chkHideTimeInfo.Size = new System.Drawing.Size(94, 17); - this.chkHideTimeInfo.TabIndex = 2; - this.chkHideTimeInfo.Text = "Hide Time info"; - this.chkHideTimeInfo.UseVisualStyleBackColor = true; - // - // chkHideRoundInfo - // - this.chkHideRoundInfo.AutoSize = true; - this.chkHideRoundInfo.Location = new System.Drawing.Point(16, 44); - this.chkHideRoundInfo.Name = "chkHideRoundInfo"; - this.chkHideRoundInfo.Size = new System.Drawing.Size(103, 17); - this.chkHideRoundInfo.TabIndex = 1; - this.chkHideRoundInfo.Text = "Hide Round info"; - this.chkHideRoundInfo.UseVisualStyleBackColor = true; - // - // cboFastestFilter - // - this.cboFastestFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboFastestFilter.FormattingEnabled = true; - this.cboFastestFilter.Items.AddRange(new object[] { + this.cboOverlayColor.Location = new System.Drawing.Point(670, 231); + this.cboOverlayColor.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.cboOverlayColor.Name = "cboOverlayColor"; + this.cboOverlayColor.Size = new System.Drawing.Size(272, 28); + this.cboOverlayColor.TabIndex = 19; + // + // lblOverlayColor + // + this.lblOverlayColor.AutoSize = true; + this.lblOverlayColor.Location = new System.Drawing.Point(564, 235); + this.lblOverlayColor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblOverlayColor.Name = "lblOverlayColor"; + this.lblOverlayColor.Size = new System.Drawing.Size(95, 20); + this.lblOverlayColor.TabIndex = 18; + this.lblOverlayColor.Text = "Background"; + // + // chkFlipped + // + this.chkFlipped.AutoSize = true; + this.chkFlipped.Location = new System.Drawing.Point(670, 278); + this.chkFlipped.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkFlipped.Name = "chkFlipped"; + this.chkFlipped.Size = new System.Drawing.Size(195, 24); + this.chkFlipped.TabIndex = 20; + this.chkFlipped.Text = "Flip display horizontally"; + this.chkFlipped.UseVisualStyleBackColor = true; + // + // chkShowTabs + // + this.chkShowTabs.AutoSize = true; + this.chkShowTabs.Location = new System.Drawing.Point(24, 174); + this.chkShowTabs.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkShowTabs.Name = "chkShowTabs"; + this.chkShowTabs.Size = new System.Drawing.Size(217, 24); + this.chkShowTabs.TabIndex = 4; + this.chkShowTabs.Text = "Show Tab for current filter"; + this.chkShowTabs.UseVisualStyleBackColor = true; + // + // chkHideTimeInfo + // + this.chkHideTimeInfo.AutoSize = true; + this.chkHideTimeInfo.Location = new System.Drawing.Point(24, 103); + this.chkHideTimeInfo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkHideTimeInfo.Name = "chkHideTimeInfo"; + this.chkHideTimeInfo.Size = new System.Drawing.Size(136, 24); + this.chkHideTimeInfo.TabIndex = 2; + this.chkHideTimeInfo.Text = "Hide Time info"; + this.chkHideTimeInfo.UseVisualStyleBackColor = true; + // + // chkHideRoundInfo + // + this.chkHideRoundInfo.AutoSize = true; + this.chkHideRoundInfo.Location = new System.Drawing.Point(24, 68); + this.chkHideRoundInfo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkHideRoundInfo.Name = "chkHideRoundInfo"; + this.chkHideRoundInfo.Size = new System.Drawing.Size(150, 24); + this.chkHideRoundInfo.TabIndex = 1; + this.chkHideRoundInfo.Text = "Hide Round info"; + this.chkHideRoundInfo.UseVisualStyleBackColor = true; + // + // lblOverlayFont + // + this.lblOverlayFont.AutoSize = true; + this.lblOverlayFont.Location = new System.Drawing.Point(14, 437); + this.lblOverlayFont.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblOverlayFont.Name = "lblOverlayFont"; + this.lblOverlayFont.Size = new System.Drawing.Size(157, 20); + this.lblOverlayFont.TabIndex = 31; + this.lblOverlayFont.Text = "Custom Overlay Font"; + // + // cboFastestFilter + // + this.cboFastestFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboFastestFilter.FormattingEnabled = true; + this.cboFastestFilter.Items.AddRange(new object[] { "All Time Stats", "Stats and Party Filter", "Season Stats", "Week Stats", "Day Stats", "Session Stats"}); - this.cboFastestFilter.Location = new System.Drawing.Point(447, 69); - this.cboFastestFilter.Name = "cboFastestFilter"; - this.cboFastestFilter.Size = new System.Drawing.Size(183, 21); - this.cboFastestFilter.TabIndex = 17; - // - // lblFastestFilter - // - this.lblFastestFilter.AutoSize = true; - this.lblFastestFilter.Location = new System.Drawing.Point(326, 72); - this.lblFastestFilter.Name = "lblFastestFilter"; - this.lblFastestFilter.Size = new System.Drawing.Size(115, 13); - this.lblFastestFilter.TabIndex = 16; - this.lblFastestFilter.Text = "Fastest / Longest Filter"; - // - // cboQualifyFilter - // - this.cboQualifyFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboQualifyFilter.FormattingEnabled = true; - this.cboQualifyFilter.Items.AddRange(new object[] { + this.cboFastestFilter.Location = new System.Drawing.Point(670, 106); + this.cboFastestFilter.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.cboFastestFilter.Name = "cboFastestFilter"; + this.cboFastestFilter.Size = new System.Drawing.Size(272, 28); + this.cboFastestFilter.TabIndex = 17; + // + // lblFastestFilter + // + this.lblFastestFilter.AutoSize = true; + this.lblFastestFilter.Location = new System.Drawing.Point(489, 111); + this.lblFastestFilter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblFastestFilter.Name = "lblFastestFilter"; + this.lblFastestFilter.Size = new System.Drawing.Size(172, 20); + this.lblFastestFilter.TabIndex = 16; + this.lblFastestFilter.Text = "Fastest / Longest Filter"; + // + // cboQualifyFilter + // + this.cboQualifyFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboQualifyFilter.FormattingEnabled = true; + this.cboQualifyFilter.Items.AddRange(new object[] { "All Time Stats", "Stats and Party Filter", "Season Stats", "Week Stats", "Day Stats", "Session Stats"}); - this.cboQualifyFilter.Location = new System.Drawing.Point(447, 44); - this.cboQualifyFilter.Name = "cboQualifyFilter"; - this.cboQualifyFilter.Size = new System.Drawing.Size(183, 21); - this.cboQualifyFilter.TabIndex = 15; - // - // lblQualifyFilter - // - this.lblQualifyFilter.AutoSize = true; - this.lblQualifyFilter.Location = new System.Drawing.Point(344, 47); - this.lblQualifyFilter.Name = "lblQualifyFilter"; - this.lblQualifyFilter.Size = new System.Drawing.Size(97, 13); - this.lblQualifyFilter.TabIndex = 14; - this.lblQualifyFilter.Text = "Qualify / Gold Filter"; - // - // cboWinsFilter - // - this.cboWinsFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboWinsFilter.FormattingEnabled = true; - this.cboWinsFilter.Items.AddRange(new object[] { + this.cboQualifyFilter.Location = new System.Drawing.Point(670, 68); + this.cboQualifyFilter.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.cboQualifyFilter.Name = "cboQualifyFilter"; + this.cboQualifyFilter.Size = new System.Drawing.Size(272, 28); + this.cboQualifyFilter.TabIndex = 15; + // + // lblQualifyFilter + // + this.lblQualifyFilter.AutoSize = true; + this.lblQualifyFilter.Location = new System.Drawing.Point(516, 72); + this.lblQualifyFilter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblQualifyFilter.Name = "lblQualifyFilter"; + this.lblQualifyFilter.Size = new System.Drawing.Size(142, 20); + this.lblQualifyFilter.TabIndex = 14; + this.lblQualifyFilter.Text = "Qualify / Gold Filter"; + // + // cboWinsFilter + // + this.cboWinsFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cboWinsFilter.FormattingEnabled = true; + this.cboWinsFilter.Items.AddRange(new object[] { "All Time Stats", "Stats and Party Filter", "Season Stats", "Week Stats", "Day Stats", "Session Stats"}); - this.cboWinsFilter.Location = new System.Drawing.Point(447, 19); - this.cboWinsFilter.Name = "cboWinsFilter"; - this.cboWinsFilter.Size = new System.Drawing.Size(183, 21); - this.cboWinsFilter.TabIndex = 13; - // - // lblWinsFilter - // - this.lblWinsFilter.AutoSize = true; - this.lblWinsFilter.Location = new System.Drawing.Point(352, 22); - this.lblWinsFilter.Name = "lblWinsFilter"; - this.lblWinsFilter.Size = new System.Drawing.Size(89, 13); - this.lblWinsFilter.TabIndex = 12; - this.lblWinsFilter.Text = "Wins / Final Filter"; - // - // chkOverlayOnTop - // - this.chkOverlayOnTop.AutoSize = true; - this.chkOverlayOnTop.Location = new System.Drawing.Point(447, 204); - this.chkOverlayOnTop.Name = "chkOverlayOnTop"; - this.chkOverlayOnTop.Size = new System.Drawing.Size(120, 17); - this.chkOverlayOnTop.TabIndex = 21; - this.chkOverlayOnTop.Text = "Always show on top"; - this.chkOverlayOnTop.UseVisualStyleBackColor = true; - // - // chkUseNDI - // - this.chkUseNDI.AutoSize = true; - this.chkUseNDI.Location = new System.Drawing.Point(447, 227); - this.chkUseNDI.Name = "chkUseNDI"; - this.chkUseNDI.Size = new System.Drawing.Size(157, 17); - this.chkUseNDI.TabIndex = 22; - this.chkUseNDI.Text = "Use NDI to transmit Overlay"; - this.chkUseNDI.UseVisualStyleBackColor = true; - // - // lblCycleTimeSecondsTag - // - this.lblCycleTimeSecondsTag.AutoSize = true; - this.lblCycleTimeSecondsTag.Location = new System.Drawing.Point(125, 151); - this.lblCycleTimeSecondsTag.Name = "lblCycleTimeSecondsTag"; - this.lblCycleTimeSecondsTag.Size = new System.Drawing.Size(24, 13); - this.lblCycleTimeSecondsTag.TabIndex = 7; - this.lblCycleTimeSecondsTag.Text = "sec"; - // - // lblCycleTimeSeconds - // - this.lblCycleTimeSeconds.AutoSize = true; - this.lblCycleTimeSeconds.Location = new System.Drawing.Point(19, 151); - this.lblCycleTimeSeconds.Name = "lblCycleTimeSeconds"; - this.lblCycleTimeSeconds.Size = new System.Drawing.Size(59, 13); - this.lblCycleTimeSeconds.TabIndex = 5; - this.lblCycleTimeSeconds.Text = "Cycle Time"; - // - // txtCycleTimeSeconds - // - this.txtCycleTimeSeconds.Location = new System.Drawing.Point(84, 148); - this.txtCycleTimeSeconds.MaxLength = 2; - this.txtCycleTimeSeconds.Name = "txtCycleTimeSeconds"; - this.txtCycleTimeSeconds.Size = new System.Drawing.Size(35, 20); - this.txtCycleTimeSeconds.TabIndex = 6; - this.txtCycleTimeSeconds.Text = "5"; - this.txtCycleTimeSeconds.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - this.txtCycleTimeSeconds.Validating += new System.ComponentModel.CancelEventHandler(this.txtCycleTimeSeconds_Validating); - // - // grpStats - // - this.grpStats.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.grpStats.Controls.Add(this.chkChangeHoopsieLegends); - this.grpStats.Controls.Add(this.chkAutoUpdate); - this.grpStats.Controls.Add(this.lblPreviousWinsNote); - this.grpStats.Controls.Add(this.lblPreviousWins); - this.grpStats.Controls.Add(this.txtPreviousWins); - this.grpStats.Location = new System.Drawing.Point(12, 58); - this.grpStats.Name = "grpStats"; - this.grpStats.Size = new System.Drawing.Size(645, 51); - this.grpStats.TabIndex = 3; - this.grpStats.TabStop = false; - this.grpStats.Text = "Stats"; - // - // chkChangeHoopsieLegends - // - this.chkChangeHoopsieLegends.AutoSize = true; - this.chkChangeHoopsieLegends.Location = new System.Drawing.Point(390, 21); - this.chkChangeHoopsieLegends.Name = "chkChangeHoopsieLegends"; - this.chkChangeHoopsieLegends.Size = new System.Drawing.Size(243, 17); - this.chkChangeHoopsieLegends.TabIndex = 4; - this.chkChangeHoopsieLegends.Text = "Rename Hoopsie Legends to Hoopsie Heroes"; - this.chkChangeHoopsieLegends.UseVisualStyleBackColor = true; - // - // chkAutoUpdate - // - this.chkAutoUpdate.AutoSize = true; - this.chkAutoUpdate.Location = new System.Drawing.Point(254, 21); - this.chkAutoUpdate.Name = "chkAutoUpdate"; - this.chkAutoUpdate.Size = new System.Drawing.Size(128, 17); - this.chkAutoUpdate.TabIndex = 3; - this.chkAutoUpdate.Text = "Auto Update Program"; - this.chkAutoUpdate.UseVisualStyleBackColor = true; - // - // lblPreviousWinsNote - // - this.lblPreviousWinsNote.AutoSize = true; - this.lblPreviousWinsNote.ForeColor = System.Drawing.Color.DimGray; - this.lblPreviousWinsNote.Location = new System.Drawing.Point(133, 22); - this.lblPreviousWinsNote.Name = "lblPreviousWinsNote"; - this.lblPreviousWinsNote.Size = new System.Drawing.Size(108, 13); - this.lblPreviousWinsNote.TabIndex = 2; - this.lblPreviousWinsNote.Text = "(Before using tracker)"; - // - // lblPreviousWins - // - this.lblPreviousWins.AutoSize = true; - this.lblPreviousWins.Location = new System.Drawing.Point(11, 22); - this.lblPreviousWins.Name = "lblPreviousWins"; - this.lblPreviousWins.Size = new System.Drawing.Size(75, 13); - this.lblPreviousWins.TabIndex = 0; - this.lblPreviousWins.Text = "Previous Wins"; - // - // txtPreviousWins - // - this.txtPreviousWins.Location = new System.Drawing.Point(92, 19); - this.txtPreviousWins.MaxLength = 4; - this.txtPreviousWins.Name = "txtPreviousWins"; - this.txtPreviousWins.Size = new System.Drawing.Size(35, 20); - this.txtPreviousWins.TabIndex = 1; - this.txtPreviousWins.Text = "0"; - this.txtPreviousWins.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - this.txtPreviousWins.Validating += new System.ComponentModel.CancelEventHandler(this.txtPreviousWins_Validating); - // - // grpGameOptions - // - this.grpGameOptions.Controls.Add(this.lblGameExeLocation); - this.grpGameOptions.Controls.Add(this.txtGameExeLocation); - this.grpGameOptions.Controls.Add(this.btnGameExeLocationBrowse); - this.grpGameOptions.Controls.Add(this.chkAutoLaunchGameOnStart); - this.grpGameOptions.Location = new System.Drawing.Point(11, 453); - this.grpGameOptions.Margin = new System.Windows.Forms.Padding(2); - this.grpGameOptions.Name = "grpGameOptions"; - this.grpGameOptions.Padding = new System.Windows.Forms.Padding(2); - this.grpGameOptions.Size = new System.Drawing.Size(644, 69); - this.grpGameOptions.TabIndex = 6; - this.grpGameOptions.TabStop = false; - this.grpGameOptions.Text = "Game Options"; - // - // lblGameExeLocation - // - this.lblGameExeLocation.AutoSize = true; - this.lblGameExeLocation.Location = new System.Drawing.Point(11, 21); - this.lblGameExeLocation.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.lblGameExeLocation.Name = "lblGameExeLocation"; - this.lblGameExeLocation.Size = new System.Drawing.Size(125, 13); - this.lblGameExeLocation.TabIndex = 0; - this.lblGameExeLocation.Text = "Fall Guys Game Location"; - // - // txtGameExeLocation - // - this.txtGameExeLocation.Enabled = false; - this.txtGameExeLocation.Location = new System.Drawing.Point(140, 19); - this.txtGameExeLocation.Margin = new System.Windows.Forms.Padding(2); - this.txtGameExeLocation.Name = "txtGameExeLocation"; - this.txtGameExeLocation.Size = new System.Drawing.Size(447, 20); - this.txtGameExeLocation.TabIndex = 1; - // - // btnGameExeLocationBrowse - // - this.btnGameExeLocationBrowse.Location = new System.Drawing.Point(590, 18); - this.btnGameExeLocationBrowse.Margin = new System.Windows.Forms.Padding(2); - this.btnGameExeLocationBrowse.Name = "btnGameExeLocationBrowse"; - this.btnGameExeLocationBrowse.Size = new System.Drawing.Size(50, 22); - this.btnGameExeLocationBrowse.TabIndex = 2; - this.btnGameExeLocationBrowse.Text = "Browse"; - this.btnGameExeLocationBrowse.Click += new System.EventHandler(this.btnGameExeLocationBrowse_Click); - // - // chkAutoLaunchGameOnStart - // - this.chkAutoLaunchGameOnStart.Location = new System.Drawing.Point(13, 43); - this.chkAutoLaunchGameOnStart.Margin = new System.Windows.Forms.Padding(2); - this.chkAutoLaunchGameOnStart.Name = "chkAutoLaunchGameOnStart"; - this.chkAutoLaunchGameOnStart.Size = new System.Drawing.Size(204, 16); - this.chkAutoLaunchGameOnStart.TabIndex = 3; - this.chkAutoLaunchGameOnStart.Text = "Auto-launch Fall Guys on tracker start"; - // - // grpSortingOptions - // - this.grpSortingOptions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.grpSortingOptions.Controls.Add(this.chkIgnoreLevelTypeWhenSorting); - this.grpSortingOptions.Location = new System.Drawing.Point(11, 405); - this.grpSortingOptions.Margin = new System.Windows.Forms.Padding(2); - this.grpSortingOptions.Name = "grpSortingOptions"; - this.grpSortingOptions.Padding = new System.Windows.Forms.Padding(2); - this.grpSortingOptions.Size = new System.Drawing.Size(645, 44); - this.grpSortingOptions.TabIndex = 5; - this.grpSortingOptions.TabStop = false; - this.grpSortingOptions.Text = "Sorting Options"; - // - // chkIgnoreLevelTypeWhenSorting - // - this.chkIgnoreLevelTypeWhenSorting.AutoSize = true; - this.chkIgnoreLevelTypeWhenSorting.Location = new System.Drawing.Point(16, 19); - this.chkIgnoreLevelTypeWhenSorting.Margin = new System.Windows.Forms.Padding(2); - this.chkIgnoreLevelTypeWhenSorting.Name = "chkIgnoreLevelTypeWhenSorting"; - this.chkIgnoreLevelTypeWhenSorting.Size = new System.Drawing.Size(175, 17); - this.chkIgnoreLevelTypeWhenSorting.TabIndex = 0; - this.chkIgnoreLevelTypeWhenSorting.Text = "Ignore Level Type when sorting"; - this.chkIgnoreLevelTypeWhenSorting.UseVisualStyleBackColor = true; - // - // btnCancel - // - this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.btnCancel.Location = new System.Drawing.Point(581, 528); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 23); - this.btnCancel.TabIndex = 8; - this.btnCancel.Text = "Cancel"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // grpCycleQualifyGold - // - this.grpCycleQualifyGold.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.cboWinsFilter.Location = new System.Drawing.Point(670, 29); + this.cboWinsFilter.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.cboWinsFilter.Name = "cboWinsFilter"; + this.cboWinsFilter.Size = new System.Drawing.Size(272, 28); + this.cboWinsFilter.TabIndex = 13; + // + // lblWinsFilter + // + this.lblWinsFilter.AutoSize = true; + this.lblWinsFilter.Location = new System.Drawing.Point(528, 34); + this.lblWinsFilter.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblWinsFilter.Name = "lblWinsFilter"; + this.lblWinsFilter.Size = new System.Drawing.Size(129, 20); + this.lblWinsFilter.TabIndex = 12; + this.lblWinsFilter.Text = "Wins / Final Filter"; + // + // chkOverlayOnTop + // + this.chkOverlayOnTop.AutoSize = true; + this.chkOverlayOnTop.Location = new System.Drawing.Point(670, 314); + this.chkOverlayOnTop.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOverlayOnTop.Name = "chkOverlayOnTop"; + this.chkOverlayOnTop.Size = new System.Drawing.Size(174, 24); + this.chkOverlayOnTop.TabIndex = 21; + this.chkOverlayOnTop.Text = "Always show on top"; + this.chkOverlayOnTop.UseVisualStyleBackColor = true; + // + // chkUseNDI + // + this.chkUseNDI.AutoSize = true; + this.chkUseNDI.Location = new System.Drawing.Point(670, 349); + this.chkUseNDI.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkUseNDI.Name = "chkUseNDI"; + this.chkUseNDI.Size = new System.Drawing.Size(231, 24); + this.chkUseNDI.TabIndex = 22; + this.chkUseNDI.Text = "Use NDI to transmit Overlay"; + this.chkUseNDI.UseVisualStyleBackColor = true; + // + // lblCycleTimeSecondsTag + // + this.lblCycleTimeSecondsTag.AutoSize = true; + this.lblCycleTimeSecondsTag.Location = new System.Drawing.Point(188, 232); + this.lblCycleTimeSecondsTag.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblCycleTimeSecondsTag.Name = "lblCycleTimeSecondsTag"; + this.lblCycleTimeSecondsTag.Size = new System.Drawing.Size(34, 20); + this.lblCycleTimeSecondsTag.TabIndex = 7; + this.lblCycleTimeSecondsTag.Text = "sec"; + // + // lblCycleTimeSeconds + // + this.lblCycleTimeSeconds.AutoSize = true; + this.lblCycleTimeSeconds.Location = new System.Drawing.Point(28, 232); + this.lblCycleTimeSeconds.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblCycleTimeSeconds.Name = "lblCycleTimeSeconds"; + this.lblCycleTimeSeconds.Size = new System.Drawing.Size(85, 20); + this.lblCycleTimeSeconds.TabIndex = 5; + this.lblCycleTimeSeconds.Text = "Cycle Time"; + // + // txtCycleTimeSeconds + // + this.txtCycleTimeSeconds.Location = new System.Drawing.Point(126, 228); + this.txtCycleTimeSeconds.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.txtCycleTimeSeconds.MaxLength = 2; + this.txtCycleTimeSeconds.Name = "txtCycleTimeSeconds"; + this.txtCycleTimeSeconds.Size = new System.Drawing.Size(50, 26); + this.txtCycleTimeSeconds.TabIndex = 6; + this.txtCycleTimeSeconds.Text = "5"; + this.txtCycleTimeSeconds.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.txtCycleTimeSeconds.Validating += new System.ComponentModel.CancelEventHandler(this.txtCycleTimeSeconds_Validating); + // + // grpCycleWinFinalStreak + // + this.grpCycleWinFinalStreak.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grpCycleQualifyGold.Controls.Add(this.chkOnlyShowGold); - this.grpCycleQualifyGold.Controls.Add(this.chkOnlyShowQualify); - this.grpCycleQualifyGold.Controls.Add(this.chkCycleQualifyGold); - this.grpCycleQualifyGold.Location = new System.Drawing.Point(12, 171); - this.grpCycleQualifyGold.Margin = new System.Windows.Forms.Padding(0); - this.grpCycleQualifyGold.Name = "grpCycleQualifyGold"; - this.grpCycleQualifyGold.Padding = new System.Windows.Forms.Padding(2); - this.grpCycleQualifyGold.Size = new System.Drawing.Size(369, 32); - this.grpCycleQualifyGold.TabIndex = 8; - this.grpCycleQualifyGold.TabStop = false; - // - // chkCycleQualifyGold - // - this.chkCycleQualifyGold.AutoSize = true; - this.chkCycleQualifyGold.Checked = true; - this.chkCycleQualifyGold.Location = new System.Drawing.Point(5, 10); - this.chkCycleQualifyGold.Name = "chkCycleQualifyGold"; - this.chkCycleQualifyGold.Size = new System.Drawing.Size(119, 17); - this.chkCycleQualifyGold.TabIndex = 0; - this.chkCycleQualifyGold.TabStop = true; - this.chkCycleQualifyGold.Text = "Cycle Qualify / Gold"; - this.chkCycleQualifyGold.UseVisualStyleBackColor = true; - // - // chkOnlyShowQualify - // - this.chkOnlyShowQualify.AutoSize = true; - this.chkOnlyShowQualify.Location = new System.Drawing.Point(151, 10); - this.chkOnlyShowQualify.Name = "chkOnlyShowQualify"; - this.chkOnlyShowQualify.Size = new System.Drawing.Size(81, 17); - this.chkOnlyShowQualify.TabIndex = 1; - this.chkOnlyShowQualify.Text = "Qualify Only"; - this.chkOnlyShowQualify.UseVisualStyleBackColor = true; - // - // chkOnlyShowGold - // - this.chkOnlyShowGold.AutoSize = true; - this.chkOnlyShowGold.Location = new System.Drawing.Point(259, 10); - this.chkOnlyShowGold.Name = "chkOnlyShowGold"; - this.chkOnlyShowGold.Size = new System.Drawing.Size(71, 17); - this.chkOnlyShowGold.TabIndex = 2; - this.chkOnlyShowGold.Text = "Gold Only"; - this.chkOnlyShowGold.UseVisualStyleBackColor = true; - // - // grpCycleFastestLongest - // - this.grpCycleFastestLongest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.grpCycleWinFinalStreak.Controls.Add(this.chkOnlyShowFinalStreak); + this.grpCycleWinFinalStreak.Controls.Add(this.chkOnlyShowWinStreak); + this.grpCycleWinFinalStreak.Controls.Add(this.chkCycleWinFinalStreak); + this.grpCycleWinFinalStreak.Location = new System.Drawing.Point(18, 340); + this.grpCycleWinFinalStreak.Margin = new System.Windows.Forms.Padding(0); + this.grpCycleWinFinalStreak.Name = "grpCycleWinFinalStreak"; + this.grpCycleWinFinalStreak.Size = new System.Drawing.Size(554, 49); + this.grpCycleWinFinalStreak.TabIndex = 10; + this.grpCycleWinFinalStreak.TabStop = false; + // + // chkOnlyShowFinalStreak + // + this.chkOnlyShowFinalStreak.AutoSize = true; + this.chkOnlyShowFinalStreak.Location = new System.Drawing.Point(388, 15); + this.chkOnlyShowFinalStreak.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowFinalStreak.Name = "chkOnlyShowFinalStreak"; + this.chkOnlyShowFinalStreak.Size = new System.Drawing.Size(154, 24); + this.chkOnlyShowFinalStreak.TabIndex = 2; + this.chkOnlyShowFinalStreak.Text = "Final Streak Only"; + this.chkOnlyShowFinalStreak.UseVisualStyleBackColor = true; + // + // chkOnlyShowWinStreak + // + this.chkOnlyShowWinStreak.AutoSize = true; + this.chkOnlyShowWinStreak.Location = new System.Drawing.Point(226, 15); + this.chkOnlyShowWinStreak.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowWinStreak.Name = "chkOnlyShowWinStreak"; + this.chkOnlyShowWinStreak.Size = new System.Drawing.Size(147, 24); + this.chkOnlyShowWinStreak.TabIndex = 1; + this.chkOnlyShowWinStreak.Text = "Win Streak Only"; + this.chkOnlyShowWinStreak.UseVisualStyleBackColor = true; + // + // chkCycleWinFinalStreak + // + this.chkCycleWinFinalStreak.AutoSize = true; + this.chkCycleWinFinalStreak.Checked = true; + this.chkCycleWinFinalStreak.Location = new System.Drawing.Point(8, 15); + this.chkCycleWinFinalStreak.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkCycleWinFinalStreak.Name = "chkCycleWinFinalStreak"; + this.chkCycleWinFinalStreak.Size = new System.Drawing.Size(200, 24); + this.chkCycleWinFinalStreak.TabIndex = 0; + this.chkCycleWinFinalStreak.TabStop = true; + this.chkCycleWinFinalStreak.Text = "Cycle Win / Final Streak"; + this.chkCycleWinFinalStreak.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grpCycleFastestLongest.Controls.Add(this.chkOnlyShowLongest); - this.grpCycleFastestLongest.Controls.Add(this.chkOnlyShowFastest); - this.grpCycleFastestLongest.Controls.Add(this.chkCycleFastestLongest); - this.grpCycleFastestLongest.Location = new System.Drawing.Point(12, 196); - this.grpCycleFastestLongest.Margin = new System.Windows.Forms.Padding(0); - this.grpCycleFastestLongest.Name = "grpCycleFastestLongest"; - this.grpCycleFastestLongest.Padding = new System.Windows.Forms.Padding(2); - this.grpCycleFastestLongest.Size = new System.Drawing.Size(369, 32); - this.grpCycleFastestLongest.TabIndex = 9; - this.grpCycleFastestLongest.TabStop = false; - // - // chkOnlyShowLongest - // - this.chkOnlyShowLongest.AutoSize = true; - this.chkOnlyShowLongest.Location = new System.Drawing.Point(259, 10); - this.chkOnlyShowLongest.Name = "chkOnlyShowLongest"; - this.chkOnlyShowLongest.Size = new System.Drawing.Size(87, 17); - this.chkOnlyShowLongest.TabIndex = 2; - this.chkOnlyShowLongest.Text = "Longest Only"; - this.chkOnlyShowLongest.UseVisualStyleBackColor = true; - // - // chkOnlyShowFastest - // - this.chkOnlyShowFastest.AutoSize = true; - this.chkOnlyShowFastest.Location = new System.Drawing.Point(151, 10); - this.chkOnlyShowFastest.Name = "chkOnlyShowFastest"; - this.chkOnlyShowFastest.Size = new System.Drawing.Size(83, 17); - this.chkOnlyShowFastest.TabIndex = 1; - this.chkOnlyShowFastest.Text = "Fastest Only"; - this.chkOnlyShowFastest.UseVisualStyleBackColor = true; - // - // chkCycleFastestLongest - // - this.chkCycleFastestLongest.AutoSize = true; - this.chkCycleFastestLongest.Checked = true; - this.chkCycleFastestLongest.Location = new System.Drawing.Point(5, 10); - this.chkCycleFastestLongest.Name = "chkCycleFastestLongest"; - this.chkCycleFastestLongest.Size = new System.Drawing.Size(137, 17); - this.chkCycleFastestLongest.TabIndex = 0; - this.chkCycleFastestLongest.TabStop = true; - this.chkCycleFastestLongest.Text = "Cycle Fastest / Longest"; - this.chkCycleFastestLongest.UseVisualStyleBackColor = true; - // - // grpCycleWinFinalStreak - // - this.grpCycleWinFinalStreak.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.groupBox1.Controls.Add(this.chkOnlyShowPing); + this.groupBox1.Controls.Add(this.chkOnlyShowPlayers); + this.groupBox1.Controls.Add(this.chkCyclePlayersPing); + this.groupBox1.Location = new System.Drawing.Point(18, 378); + this.groupBox1.Margin = new System.Windows.Forms.Padding(0); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(554, 49); + this.groupBox1.TabIndex = 11; + this.groupBox1.TabStop = false; + // + // chkOnlyShowPing + // + this.chkOnlyShowPing.AutoSize = true; + this.chkOnlyShowPing.Location = new System.Drawing.Point(388, 15); + this.chkOnlyShowPing.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowPing.Name = "chkOnlyShowPing"; + this.chkOnlyShowPing.Size = new System.Drawing.Size(100, 24); + this.chkOnlyShowPing.TabIndex = 2; + this.chkOnlyShowPing.Text = "Ping Only"; + this.chkOnlyShowPing.UseVisualStyleBackColor = true; + // + // chkOnlyShowPlayers + // + this.chkOnlyShowPlayers.AutoSize = true; + this.chkOnlyShowPlayers.Location = new System.Drawing.Point(226, 15); + this.chkOnlyShowPlayers.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkOnlyShowPlayers.Name = "chkOnlyShowPlayers"; + this.chkOnlyShowPlayers.Size = new System.Drawing.Size(120, 24); + this.chkOnlyShowPlayers.TabIndex = 1; + this.chkOnlyShowPlayers.Text = "Players Only"; + this.chkOnlyShowPlayers.UseVisualStyleBackColor = true; + // + // chkCyclePlayersPing + // + this.chkCyclePlayersPing.AutoSize = true; + this.chkCyclePlayersPing.Checked = true; + this.chkCyclePlayersPing.Location = new System.Drawing.Point(8, 15); + this.chkCyclePlayersPing.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkCyclePlayersPing.Name = "chkCyclePlayersPing"; + this.chkCyclePlayersPing.Size = new System.Drawing.Size(170, 24); + this.chkCyclePlayersPing.TabIndex = 0; + this.chkCyclePlayersPing.TabStop = true; + this.chkCyclePlayersPing.Text = "Cycle Players / Ping"; + this.chkCyclePlayersPing.UseVisualStyleBackColor = true; + // + // btnSelectFont + // + this.btnSelectFont.Location = new System.Drawing.Point(41, 460); + this.btnSelectFont.Name = "btnSelectFont"; + this.btnSelectFont.Size = new System.Drawing.Size(105, 31); + this.btnSelectFont.TabIndex = 33; + this.btnSelectFont.Text = "Select Font"; + this.btnSelectFont.UseVisualStyleBackColor = true; + this.btnSelectFont.Click += new System.EventHandler(this.btnSelectFont_Click); + // + // btnResetOverlayFont + // + this.btnResetOverlayFont.Location = new System.Drawing.Point(41, 497); + this.btnResetOverlayFont.Name = "btnResetOverlayFont"; + this.btnResetOverlayFont.Size = new System.Drawing.Size(105, 31); + this.btnResetOverlayFont.TabIndex = 36; + this.btnResetOverlayFont.Text = "Reset Font"; + this.btnResetOverlayFont.UseVisualStyleBackColor = true; + this.btnResetOverlayFont.Click += new System.EventHandler(this.btnResetOverlayFont_Click); + // + // grpOverlayFontExample + // + this.grpOverlayFontExample.Controls.Add(this.lblOverlayFontExample); + this.grpOverlayFontExample.Location = new System.Drawing.Point(178, 437); + this.grpOverlayFontExample.Name = "grpOverlayFontExample"; + this.grpOverlayFontExample.Size = new System.Drawing.Size(775, 91); + this.grpOverlayFontExample.TabIndex = 35; + this.grpOverlayFontExample.TabStop = false; + this.grpOverlayFontExample.Text = "Example"; + // + // lblOverlayFontExample + // + this.lblOverlayFontExample.Location = new System.Drawing.Point(6, 23); + this.lblOverlayFontExample.Name = "lblOverlayFontExample"; + this.lblOverlayFontExample.Size = new System.Drawing.Size(763, 52); + this.lblOverlayFontExample.TabIndex = 34; + this.lblOverlayFontExample.Text = "Round 3: Freezy Peak"; + this.lblOverlayFontExample.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // grpStats + // + this.grpStats.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.grpCycleWinFinalStreak.Controls.Add(this.chkOnlyShowFinalStreak); - this.grpCycleWinFinalStreak.Controls.Add(this.chkOnlyShowWinStreak); - this.grpCycleWinFinalStreak.Controls.Add(this.chkCycleWinFinalStreak); - this.grpCycleWinFinalStreak.Location = new System.Drawing.Point(12, 221); - this.grpCycleWinFinalStreak.Margin = new System.Windows.Forms.Padding(0); - this.grpCycleWinFinalStreak.Name = "grpCycleWinFinalStreak"; - this.grpCycleWinFinalStreak.Padding = new System.Windows.Forms.Padding(2); - this.grpCycleWinFinalStreak.Size = new System.Drawing.Size(369, 32); - this.grpCycleWinFinalStreak.TabIndex = 10; - this.grpCycleWinFinalStreak.TabStop = false; - // - // chkOnlyShowFinalStreak - // - this.chkOnlyShowFinalStreak.AutoSize = true; - this.chkOnlyShowFinalStreak.Location = new System.Drawing.Point(259, 10); - this.chkOnlyShowFinalStreak.Name = "chkOnlyShowFinalStreak"; - this.chkOnlyShowFinalStreak.Size = new System.Drawing.Size(105, 17); - this.chkOnlyShowFinalStreak.TabIndex = 2; - this.chkOnlyShowFinalStreak.Text = "Final Streak Only"; - this.chkOnlyShowFinalStreak.UseVisualStyleBackColor = true; - // - // chkOnlyShowWinStreak - // - this.chkOnlyShowWinStreak.AutoSize = true; - this.chkOnlyShowWinStreak.Location = new System.Drawing.Point(151, 10); - this.chkOnlyShowWinStreak.Name = "chkOnlyShowWinStreak"; - this.chkOnlyShowWinStreak.Size = new System.Drawing.Size(102, 17); - this.chkOnlyShowWinStreak.TabIndex = 1; - this.chkOnlyShowWinStreak.Text = "Win Streak Only"; - this.chkOnlyShowWinStreak.UseVisualStyleBackColor = true; - // - // chkCycleWinFinalStreak - // - this.chkCycleWinFinalStreak.AutoSize = true; - this.chkCycleWinFinalStreak.Checked = true; - this.chkCycleWinFinalStreak.Location = new System.Drawing.Point(5, 10); - this.chkCycleWinFinalStreak.Name = "chkCycleWinFinalStreak"; - this.chkCycleWinFinalStreak.Size = new System.Drawing.Size(140, 17); - this.chkCycleWinFinalStreak.TabIndex = 0; - this.chkCycleWinFinalStreak.TabStop = true; - this.chkCycleWinFinalStreak.Text = "Cycle Win / Final Streak"; - this.chkCycleWinFinalStreak.UseVisualStyleBackColor = true; - // - // groupBox1 - // - this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.grpStats.Controls.Add(this.chkChangeHoopsieLegends); + this.grpStats.Controls.Add(this.chkAutoUpdate); + this.grpStats.Controls.Add(this.lblPreviousWinsNote); + this.grpStats.Controls.Add(this.lblPreviousWins); + this.grpStats.Controls.Add(this.txtPreviousWins); + this.grpStats.Location = new System.Drawing.Point(18, 89); + this.grpStats.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.grpStats.Name = "grpStats"; + this.grpStats.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.grpStats.Size = new System.Drawing.Size(968, 78); + this.grpStats.TabIndex = 3; + this.grpStats.TabStop = false; + this.grpStats.Text = "Stats"; + // + // chkChangeHoopsieLegends + // + this.chkChangeHoopsieLegends.AutoSize = true; + this.chkChangeHoopsieLegends.Location = new System.Drawing.Point(585, 32); + this.chkChangeHoopsieLegends.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkChangeHoopsieLegends.Name = "chkChangeHoopsieLegends"; + this.chkChangeHoopsieLegends.Size = new System.Drawing.Size(362, 24); + this.chkChangeHoopsieLegends.TabIndex = 4; + this.chkChangeHoopsieLegends.Text = "Rename Hoopsie Legends to Hoopsie Heroes"; + this.chkChangeHoopsieLegends.UseVisualStyleBackColor = true; + // + // chkAutoUpdate + // + this.chkAutoUpdate.AutoSize = true; + this.chkAutoUpdate.Location = new System.Drawing.Point(381, 32); + this.chkAutoUpdate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.chkAutoUpdate.Name = "chkAutoUpdate"; + this.chkAutoUpdate.Size = new System.Drawing.Size(190, 24); + this.chkAutoUpdate.TabIndex = 3; + this.chkAutoUpdate.Text = "Auto Update Program"; + this.chkAutoUpdate.UseVisualStyleBackColor = true; + // + // lblPreviousWinsNote + // + this.lblPreviousWinsNote.AutoSize = true; + this.lblPreviousWinsNote.ForeColor = System.Drawing.Color.DimGray; + this.lblPreviousWinsNote.Location = new System.Drawing.Point(200, 34); + this.lblPreviousWinsNote.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblPreviousWinsNote.Name = "lblPreviousWinsNote"; + this.lblPreviousWinsNote.Size = new System.Drawing.Size(162, 20); + this.lblPreviousWinsNote.TabIndex = 2; + this.lblPreviousWinsNote.Text = "(Before using tracker)"; + // + // lblPreviousWins + // + this.lblPreviousWins.AutoSize = true; + this.lblPreviousWins.Location = new System.Drawing.Point(16, 34); + this.lblPreviousWins.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.lblPreviousWins.Name = "lblPreviousWins"; + this.lblPreviousWins.Size = new System.Drawing.Size(108, 20); + this.lblPreviousWins.TabIndex = 0; + this.lblPreviousWins.Text = "Previous Wins"; + // + // txtPreviousWins + // + this.txtPreviousWins.Location = new System.Drawing.Point(138, 29); + this.txtPreviousWins.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.txtPreviousWins.MaxLength = 4; + this.txtPreviousWins.Name = "txtPreviousWins"; + this.txtPreviousWins.Size = new System.Drawing.Size(50, 26); + this.txtPreviousWins.TabIndex = 1; + this.txtPreviousWins.Text = "0"; + this.txtPreviousWins.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; + this.txtPreviousWins.Validating += new System.ComponentModel.CancelEventHandler(this.txtPreviousWins_Validating); + // + // grpGameOptions + // + this.grpGameOptions.Controls.Add(this.lblGameExeLocation); + this.grpGameOptions.Controls.Add(this.txtGameExeLocation); + this.grpGameOptions.Controls.Add(this.btnGameExeLocationBrowse); + this.grpGameOptions.Controls.Add(this.chkAutoLaunchGameOnStart); + this.grpGameOptions.Location = new System.Drawing.Point(18, 801); + this.grpGameOptions.Name = "grpGameOptions"; + this.grpGameOptions.Size = new System.Drawing.Size(966, 106); + this.grpGameOptions.TabIndex = 6; + this.grpGameOptions.TabStop = false; + this.grpGameOptions.Text = "Game Options"; + // + // lblGameExeLocation + // + this.lblGameExeLocation.AutoSize = true; + this.lblGameExeLocation.Location = new System.Drawing.Point(16, 32); + this.lblGameExeLocation.Name = "lblGameExeLocation"; + this.lblGameExeLocation.Size = new System.Drawing.Size(188, 20); + this.lblGameExeLocation.TabIndex = 0; + this.lblGameExeLocation.Text = "Fall Guys Game Location"; + // + // txtGameExeLocation + // + this.txtGameExeLocation.Enabled = false; + this.txtGameExeLocation.Location = new System.Drawing.Point(210, 29); + this.txtGameExeLocation.Name = "txtGameExeLocation"; + this.txtGameExeLocation.Size = new System.Drawing.Size(668, 26); + this.txtGameExeLocation.TabIndex = 1; + // + // btnGameExeLocationBrowse + // + this.btnGameExeLocationBrowse.Location = new System.Drawing.Point(884, 27); + this.btnGameExeLocationBrowse.Name = "btnGameExeLocationBrowse"; + this.btnGameExeLocationBrowse.Size = new System.Drawing.Size(75, 31); + this.btnGameExeLocationBrowse.TabIndex = 2; + this.btnGameExeLocationBrowse.Text = "Browse"; + this.btnGameExeLocationBrowse.Click += new System.EventHandler(this.btnGameExeLocationBrowse_Click); + // + // chkAutoLaunchGameOnStart + // + this.chkAutoLaunchGameOnStart.Location = new System.Drawing.Point(20, 66); + this.chkAutoLaunchGameOnStart.Name = "chkAutoLaunchGameOnStart"; + this.chkAutoLaunchGameOnStart.Size = new System.Drawing.Size(306, 25); + this.chkAutoLaunchGameOnStart.TabIndex = 3; + this.chkAutoLaunchGameOnStart.Text = "Auto-launch Fall Guys on tracker start"; + // + // grpSortingOptions + // + this.grpSortingOptions.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.groupBox1.Controls.Add(this.chkOnlyShowPing); - this.groupBox1.Controls.Add(this.chkOnlyShowPlayers); - this.groupBox1.Controls.Add(this.chkCyclePlayersPing); - this.groupBox1.Location = new System.Drawing.Point(12, 246); - this.groupBox1.Margin = new System.Windows.Forms.Padding(0); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(2); - this.groupBox1.Size = new System.Drawing.Size(369, 32); - this.groupBox1.TabIndex = 11; - this.groupBox1.TabStop = false; - // - // chkOnlyShowPing - // - this.chkOnlyShowPing.AutoSize = true; - this.chkOnlyShowPing.Location = new System.Drawing.Point(259, 10); - this.chkOnlyShowPing.Name = "chkOnlyShowPing"; - this.chkOnlyShowPing.Size = new System.Drawing.Size(70, 17); - this.chkOnlyShowPing.TabIndex = 2; - this.chkOnlyShowPing.Text = "Ping Only"; - this.chkOnlyShowPing.UseVisualStyleBackColor = true; - // - // chkOnlyShowPlayers - // - this.chkOnlyShowPlayers.AutoSize = true; - this.chkOnlyShowPlayers.Location = new System.Drawing.Point(151, 10); - this.chkOnlyShowPlayers.Name = "chkOnlyShowPlayers"; - this.chkOnlyShowPlayers.Size = new System.Drawing.Size(83, 17); - this.chkOnlyShowPlayers.TabIndex = 1; - this.chkOnlyShowPlayers.Text = "Players Only"; - this.chkOnlyShowPlayers.UseVisualStyleBackColor = true; - // - // chkCyclePlayersPing - // - this.chkCyclePlayersPing.AutoSize = true; - this.chkCyclePlayersPing.Checked = true; - this.chkCyclePlayersPing.Location = new System.Drawing.Point(5, 10); - this.chkCyclePlayersPing.Name = "chkCyclePlayersPing"; - this.chkCyclePlayersPing.Size = new System.Drawing.Size(120, 17); - this.chkCyclePlayersPing.TabIndex = 0; - this.chkCyclePlayersPing.TabStop = true; - this.chkCyclePlayersPing.Text = "Cycle Players / Ping"; - this.chkCyclePlayersPing.UseVisualStyleBackColor = true; - // - // Settings - // - this.AcceptButton = this.btnSave; - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(242)))), ((int)(((byte)(251))))); - this.CancelButton = this.btnCancel; - this.ClientSize = new System.Drawing.Size(669, 561); - this.Controls.Add(this.btnCancel); - this.Controls.Add(this.grpGameOptions); - this.Controls.Add(this.grpSortingOptions); - this.Controls.Add(this.grpOverlay); - this.Controls.Add(this.grpStats); - this.Controls.Add(this.btnSave); - this.Controls.Add(this.txtLogPath); - this.Controls.Add(this.lblLogPathNote); - this.Controls.Add(this.lblLogPath); - this.ForeColor = System.Drawing.Color.Black; - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "Settings"; - this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Settings"; - this.Load += new System.EventHandler(this.Settings_Load); - this.grpOverlay.ResumeLayout(false); - this.grpOverlay.PerformLayout(); - this.grpStats.ResumeLayout(false); - this.grpStats.PerformLayout(); - this.grpGameOptions.ResumeLayout(false); - this.grpGameOptions.PerformLayout(); - this.grpSortingOptions.ResumeLayout(false); - this.grpSortingOptions.PerformLayout(); - this.grpCycleQualifyGold.ResumeLayout(false); - this.grpCycleQualifyGold.PerformLayout(); - this.grpCycleFastestLongest.ResumeLayout(false); - this.grpCycleFastestLongest.PerformLayout(); - this.grpCycleWinFinalStreak.ResumeLayout(false); - this.grpCycleWinFinalStreak.PerformLayout(); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); + this.grpSortingOptions.Controls.Add(this.chkIgnoreLevelTypeWhenSorting); + this.grpSortingOptions.Location = new System.Drawing.Point(18, 727); + this.grpSortingOptions.Name = "grpSortingOptions"; + this.grpSortingOptions.Size = new System.Drawing.Size(968, 68); + this.grpSortingOptions.TabIndex = 5; + this.grpSortingOptions.TabStop = false; + this.grpSortingOptions.Text = "Sorting Options"; + // + // chkIgnoreLevelTypeWhenSorting + // + this.chkIgnoreLevelTypeWhenSorting.AutoSize = true; + this.chkIgnoreLevelTypeWhenSorting.Location = new System.Drawing.Point(24, 29); + this.chkIgnoreLevelTypeWhenSorting.Name = "chkIgnoreLevelTypeWhenSorting"; + this.chkIgnoreLevelTypeWhenSorting.Size = new System.Drawing.Size(254, 24); + this.chkIgnoreLevelTypeWhenSorting.TabIndex = 0; + this.chkIgnoreLevelTypeWhenSorting.Text = "Ignore Level Type when sorting"; + this.chkIgnoreLevelTypeWhenSorting.UseVisualStyleBackColor = true; + // + // btnCancel + // + this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.btnCancel.Location = new System.Drawing.Point(872, 911); + this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.btnCancel.Name = "btnCancel"; + this.btnCancel.Size = new System.Drawing.Size(112, 35); + this.btnCancel.TabIndex = 8; + this.btnCancel.Text = "Cancel"; + this.btnCancel.UseVisualStyleBackColor = true; + this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); + // + // Settings + // + this.AcceptButton = this.btnSave; + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(242)))), ((int)(((byte)(251))))); + this.CancelButton = this.btnCancel; + this.ClientSize = new System.Drawing.Size(1004, 962); + this.Controls.Add(this.btnCancel); + this.Controls.Add(this.grpGameOptions); + this.Controls.Add(this.grpSortingOptions); + this.Controls.Add(this.grpOverlay); + this.Controls.Add(this.grpStats); + this.Controls.Add(this.btnSave); + this.Controls.Add(this.txtLogPath); + this.Controls.Add(this.lblLogPathNote); + this.Controls.Add(this.lblLogPath); + this.ForeColor = System.Drawing.Color.Black; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "Settings"; + this.ShowInTaskbar = false; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Settings"; + this.Load += new System.EventHandler(this.Settings_Load); + this.grpOverlay.ResumeLayout(false); + this.grpOverlay.PerformLayout(); + this.grpCycleQualifyGold.ResumeLayout(false); + this.grpCycleQualifyGold.PerformLayout(); + this.grpCycleFastestLongest.ResumeLayout(false); + this.grpCycleFastestLongest.PerformLayout(); + this.grpCycleWinFinalStreak.ResumeLayout(false); + this.grpCycleWinFinalStreak.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.grpOverlayFontExample.ResumeLayout(false); + this.grpStats.ResumeLayout(false); + this.grpStats.PerformLayout(); + this.grpGameOptions.ResumeLayout(false); + this.grpGameOptions.PerformLayout(); + this.grpSortingOptions.ResumeLayout(false); + this.grpSortingOptions.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -818,5 +912,11 @@ private void InitializeComponent() { private System.Windows.Forms.RadioButton chkOnlyShowPing; private System.Windows.Forms.RadioButton chkOnlyShowPlayers; private System.Windows.Forms.RadioButton chkCyclePlayersPing; + private System.Windows.Forms.Label lblOverlayFont; + private System.Windows.Forms.Button btnSelectFont; + private System.Windows.Forms.FontDialog dlgOverlayFont; + private System.Windows.Forms.Label lblOverlayFontExample; + private System.Windows.Forms.GroupBox grpOverlayFontExample; + private System.Windows.Forms.Button btnResetOverlayFont; } } \ No newline at end of file diff --git a/Views/Settings.cs b/Views/Settings.cs index 62ac27304..c12837a3a 100644 --- a/Views/Settings.cs +++ b/Views/Settings.cs @@ -1,11 +1,22 @@ using System; +using System.Drawing; +using System.Drawing.Text; using System.IO; using System.Windows.Forms; + namespace FallGuysStats { public partial class Settings : Form { + private PrivateFontCollection CustomFonts; + private FontConverter fc; + private string overlayFontSerialized = string.Empty; + public UserSettings CurrentSettings { get; set; } public Settings() { InitializeComponent(); + + fc = new FontConverter(); + CustomFonts = new PrivateFontCollection(); + CustomFonts.AddFontFile("TitanOne-Regular.ttf"); } private void Settings_Load(object sender, EventArgs e) { txtLogPath.Text = CurrentSettings.LogPath; @@ -88,6 +99,14 @@ private void Settings_Load(object sender, EventArgs e) { txtGameExeLocation.Text = CurrentSettings.GameExeLocation; chkAutoLaunchGameOnStart.Checked = CurrentSettings.AutoLaunchGameOnStartup; chkIgnoreLevelTypeWhenSorting.Checked = CurrentSettings.IgnoreLevelTypeWhenSorting; + + if (!string.IsNullOrEmpty(CurrentSettings.OverlayFontSerialized)) { + FontConverter fc = new FontConverter(); + Font exampleFont = fc.ConvertFromString(CurrentSettings.OverlayFontSerialized) as Font; + lblOverlayFontExample.Font = exampleFont; + } else if (CustomFonts != null) { + lblOverlayFontExample.Font = new Font(CustomFonts.Families[0], 18, FontStyle.Regular, GraphicsUnit.Pixel); + } } private void btnSave_Click(object sender, EventArgs e) { @@ -227,6 +246,12 @@ private void btnSave_Click(object sender, EventArgs e) { CurrentSettings.GameExeLocation = txtGameExeLocation.Text; CurrentSettings.AutoLaunchGameOnStartup = chkAutoLaunchGameOnStart.Checked; + if (!string.IsNullOrEmpty(overlayFontSerialized)) { + CurrentSettings.OverlayFontSerialized = fc.ConvertToString(lblOverlayFontExample.Font); + } else { + CurrentSettings.OverlayFontSerialized = string.Empty; + } + DialogResult = DialogResult.OK; Close(); } @@ -276,5 +301,21 @@ private void btnCancel_Click(object sender, EventArgs e) { DialogResult = DialogResult.Cancel; Close(); } + + private void btnSelectFont_Click(object sender, EventArgs e) { + dlgOverlayFont.Font = lblOverlayFont.Font; + DialogResult result = dlgOverlayFont.ShowDialog(); + + if (result.Equals(DialogResult.OK)) { + lblOverlayFontExample.Font = dlgOverlayFont.Font; + overlayFontSerialized = fc.ConvertToString(dlgOverlayFont.Font); + } + } + + private void btnResetOverlayFont_Click(object sender, EventArgs e) { + Font defaultFont = new Font(CustomFonts.Families[0], 18, FontStyle.Regular, GraphicsUnit.Pixel); + lblOverlayFontExample.Font = defaultFont; + overlayFontSerialized = string.Empty; + } } } \ No newline at end of file diff --git a/Views/Settings.resx b/Views/Settings.resx index ebf3e6074..2b88ad7c1 100644 --- a/Views/Settings.resx +++ b/Views/Settings.resx @@ -117,6 +117,9 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + @@ -405,4 +408,7 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + 240, 17 + \ No newline at end of file diff --git a/Views/Stats.cs b/Views/Stats.cs index edaf2ecff..161c1bd4c 100644 --- a/Views/Stats.cs +++ b/Views/Stats.cs @@ -1,17 +1,16 @@ -using LiteDB; -using Microsoft.Win32; -using System; +using System; using System.Collections.Generic; using System.Data; using System.Diagnostics; using System.Drawing; using System.Globalization; using System.IO; -using System.IO.Compression; using System.Linq; using System.Reflection; using System.Threading; using System.Windows.Forms; +using LiteDB; +using Microsoft.Win32; namespace FallGuysStats { public partial class Stats : Form { [STAThread] @@ -348,27 +347,6 @@ public void SaveUserSettings() { StatsDB.Commit(); } } - private void Stats_FormClosing(object sender, FormClosingEventArgs e) { - try { - if (!overlay.Disposing && !overlay.IsDisposed && !IsDisposed && !Disposing) { - if (overlay.Visible) { - CurrentSettings.OverlayLocationX = overlay.Location.X; - CurrentSettings.OverlayLocationY = overlay.Location.Y; - CurrentSettings.OverlayWidth = overlay.Width; - CurrentSettings.OverlayHeight = overlay.Height; - } - CurrentSettings.FilterType = menuAllStats.Checked ? 0 : menuSeasonStats.Checked ? 1 : menuWeekStats.Checked ? 2 : menuDayStats.Checked ? 3 : 4; - CurrentSettings.SelectedProfile = menuProfileMain.Checked ? 0 : 1; - CurrentSettings.FormLocationX = Location.X; - CurrentSettings.FormLocationY = Location.Y; - CurrentSettings.FormWidth = ClientSize.Width; - CurrentSettings.FormHeight = ClientSize.Height; - SaveUserSettings(); - } - StatsDB.Dispose(); - overlay.Cleanup(); - } catch { } - } public void ResetStats() { for (int i = 0; i < StatDetails.Count; i++) { LevelStats calculator = StatDetails[i]; @@ -430,6 +408,30 @@ public void ResetStats() { LogFile_OnParsedLogLines(rounds); loadingExisting = false; } + private void Stats_FormClosing(object sender, FormClosingEventArgs e) { + try { + if (!overlay.Disposing && !overlay.IsDisposed && !IsDisposed && !Disposing) { + if (overlay.Visible) { + CurrentSettings.OverlayLocationX = overlay.Location.X; + CurrentSettings.OverlayLocationY = overlay.Location.Y; + + CurrentSettings.OverlayWidth = overlay.Width; + CurrentSettings.OverlayHeight = overlay.Height; + } + CurrentSettings.FilterType = menuAllStats.Checked ? 0 : menuSeasonStats.Checked ? 1 : menuWeekStats.Checked ? 2 : menuDayStats.Checked ? 3 : 4; + CurrentSettings.SelectedProfile = menuProfileMain.Checked ? 0 : 1; + + CurrentSettings.FormLocationX = Location.X; + CurrentSettings.FormLocationY = Location.Y; + CurrentSettings.FormWidth = ClientSize.Width; + CurrentSettings.FormHeight = ClientSize.Height; + SaveUserSettings(); + } + StatsDB.Dispose(); + overlay.Cleanup(); + //secondOverlay.Cleanup(); + } catch { } + } private void Stats_Load(object sender, EventArgs e) { try { if (CurrentSettings.FormWidth.HasValue) { @@ -463,9 +465,9 @@ private void Stats_Shown(object sender, EventArgs e) { } logFile.Start(logPath, LOGNAME); - overlay.ArrangeDisplay(CurrentSettings.FlippedDisplay, CurrentSettings.ShowOverlayTabs, CurrentSettings.HideWinsInfo, CurrentSettings.HideRoundInfo, CurrentSettings.HideTimeInfo, CurrentSettings.OverlayColor, CurrentSettings.OverlayWidth, CurrentSettings.OverlayHeight); + overlay.ArrangeDisplay(CurrentSettings.FlippedDisplay, CurrentSettings.ShowOverlayTabs, CurrentSettings.HideWinsInfo, CurrentSettings.HideRoundInfo, CurrentSettings.HideTimeInfo, CurrentSettings.OverlayColor, CurrentSettings.OverlayWidth, CurrentSettings.OverlayHeight, CurrentSettings.OverlayFontSerialized); if (CurrentSettings.OverlayVisible) { - menuOverlay_Click(null, null); + ToggleOverlay(overlay); } menuAllStats.Checked = false; @@ -836,38 +838,38 @@ private void gridDetails_CellFormatting(object sender, DataGridViewCellFormattin } break; case "Qualified": { - float qualifyChance = (float)info.Qualified * 100f / (info.Played == 0 ? 1 : info.Played); - if (CurrentSettings.ShowPercentages) { - e.Value = $"{qualifyChance:0.0}%"; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Qualified}"; - } else { - e.Value = info.Qualified; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; - } - break; + float qualifyChance = info.Qualified * 100f / (info.Played == 0 ? 1 : info.Played); + if (CurrentSettings.ShowPercentages) { + e.Value = $"{qualifyChance:0.0}%"; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Qualified}"; + } else { + e.Value = info.Qualified; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; } + break; + } case "Gold": { - float qualifyChance = (float)info.Gold * 100f / (info.Played == 0 ? 1 : info.Played); - if (CurrentSettings.ShowPercentages) { - e.Value = $"{qualifyChance:0.0}%"; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Gold}"; - } else { - e.Value = info.Gold; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; - } - break; + float qualifyChance = info.Gold * 100f / (info.Played == 0 ? 1 : info.Played); + if (CurrentSettings.ShowPercentages) { + e.Value = $"{qualifyChance:0.0}%"; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Gold}"; + } else { + e.Value = info.Gold; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; } + break; + } case "Silver": { - float qualifyChance = (float)info.Silver * 100f / (info.Played == 0 ? 1 : info.Played); - if (CurrentSettings.ShowPercentages) { - e.Value = $"{qualifyChance:0.0}%"; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Silver}"; - } else { - e.Value = info.Silver; - gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; - } - break; + float qualifyChance = info.Silver * 100f / (info.Played == 0 ? 1 : info.Played); + if (CurrentSettings.ShowPercentages) { + e.Value = $"{qualifyChance:0.0}%"; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{info.Silver}"; + } else { + e.Value = info.Silver; + gridDetails.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = $"{qualifyChance:0.0}%"; } + break; + } case "Bronze": { float qualifyChance = (float)info.Bronze * 100f / (info.Played == 0 ? 1 : info.Played); if (CurrentSettings.ShowPercentages) { @@ -1403,7 +1405,7 @@ private async void menuSettings_Click(object sender, EventArgs e) { logFile.Start(logPath, LOGNAME); } - overlay.ArrangeDisplay(CurrentSettings.FlippedDisplay, CurrentSettings.ShowOverlayTabs, CurrentSettings.HideWinsInfo, CurrentSettings.HideRoundInfo, CurrentSettings.HideTimeInfo, CurrentSettings.OverlayColor, CurrentSettings.OverlayWidth, CurrentSettings.OverlayHeight); + overlay.ArrangeDisplay(CurrentSettings.FlippedDisplay, CurrentSettings.ShowOverlayTabs, CurrentSettings.HideWinsInfo, CurrentSettings.HideRoundInfo, CurrentSettings.HideTimeInfo, CurrentSettings.OverlayColor, CurrentSettings.OverlayWidth, CurrentSettings.OverlayHeight, CurrentSettings.OverlayFontSerialized); } } } catch (Exception ex) { @@ -1411,6 +1413,9 @@ private async void menuSettings_Click(object sender, EventArgs e) { } } private void menuOverlay_Click(object sender, EventArgs e) { + ToggleOverlay(overlay); + } + private void ToggleOverlay(Overlay overlay) { if (overlay.Visible) { overlay.Hide(); CurrentSettings.OverlayLocationX = overlay.Location.X;