diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..045a162
--- /dev/null
+++ b/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Random Song Generator")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Random Song Generator")]
+[assembly: AssemblyCopyright("Copyright © 2021")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("d70b6cad-cea7-41f4-aefd-b7c62e33338b")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..a86a798
--- /dev/null
+++ b/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Random_Song_Generator.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Random_Song_Generator.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/Properties/Resources.resx b/Properties/Resources.resx
new file mode 100644
index 0000000..29dcb1b
--- /dev/null
+++ b/Properties/Resources.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..8004738
--- /dev/null
+++ b/Properties/Settings.Designer.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Random_Song_Generator.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool accepted {
+ get {
+ return ((bool)(this["accepted"]));
+ }
+ set {
+ this["accepted"] = value;
+ }
+ }
+ }
+}
diff --git a/Properties/Settings.settings b/Properties/Settings.settings
new file mode 100644
index 0000000..1c06bed
--- /dev/null
+++ b/Properties/Settings.settings
@@ -0,0 +1,9 @@
+
+
+
+
+
+ False
+
+
+
\ No newline at end of file
diff --git a/UI/BetterUI.Designer.cs b/UI/BetterUI.Designer.cs
new file mode 100644
index 0000000..29b8ca6
--- /dev/null
+++ b/UI/BetterUI.Designer.cs
@@ -0,0 +1,282 @@
+namespace Men.UI
+{
+ partial class BetterUI
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.Filters = new System.Windows.Forms.CheckedListBox();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.diffPanel = new System.Windows.Forms.Panel();
+ this.panel3 = new System.Windows.Forms.Panel();
+ this.label3 = new System.Windows.Forms.Label();
+ this.subname = new System.Windows.Forms.Label();
+ this.mapper = new System.Windows.Forms.Label();
+ this.songName = new System.Windows.Forms.Label();
+ this.coverArt = new System.Windows.Forms.PictureBox();
+ this.gen = new System.Windows.Forms.Button();
+ this.status = new System.Windows.Forms.Label();
+ this.copy = new System.Windows.Forms.Button();
+ this.oneclick = new System.Windows.Forms.Button();
+ this.key = new System.Windows.Forms.Button();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.coverArt)).BeginInit();
+ this.SuspendLayout();
+ //
+ // panel1
+ //
+ this.panel1.Controls.Add(this.Filters);
+ this.panel1.Location = new System.Drawing.Point(-3, -1);
+ this.panel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(324, 369);
+ this.panel1.TabIndex = 0;
+ //
+ // Filters
+ //
+ this.Filters.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.Filters.Font = new System.Drawing.Font("Century Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Filters.FormattingEnabled = true;
+ this.Filters.Items.AddRange(new object[] {
+ "Allow Automapped",
+ "Allow Noodle Extensions",
+ "Allow Mapping Extensions",
+ "Allow Chroma",
+ "Allow Cinema ",
+ "Only Automapped",
+ "Only Noodle Extensions",
+ "Only Mapping Extensions",
+ "Only Chroma",
+ "Only Cinema"});
+ this.Filters.Location = new System.Drawing.Point(15, 31);
+ this.Filters.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.Filters.Name = "Filters";
+ this.Filters.Size = new System.Drawing.Size(307, 312);
+ this.Filters.TabIndex = 3;
+ //
+ // panel2
+ //
+ this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.panel2.Controls.Add(this.diffPanel);
+ this.panel2.Controls.Add(this.panel3);
+ this.panel2.Controls.Add(this.label3);
+ this.panel2.Controls.Add(this.subname);
+ this.panel2.Controls.Add(this.mapper);
+ this.panel2.Controls.Add(this.songName);
+ this.panel2.Controls.Add(this.coverArt);
+ this.panel2.Location = new System.Drawing.Point(321, -1);
+ this.panel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(346, 307);
+ this.panel2.TabIndex = 1;
+ //
+ // diffPanel
+ //
+ this.diffPanel.AutoScroll = true;
+ this.diffPanel.Location = new System.Drawing.Point(7, 229);
+ this.diffPanel.Name = "diffPanel";
+ this.diffPanel.Size = new System.Drawing.Size(332, 61);
+ this.diffPanel.TabIndex = 6;
+ //
+ // panel3
+ //
+ this.panel3.Location = new System.Drawing.Point(345, 0);
+ this.panel3.Name = "panel3";
+ this.panel3.Size = new System.Drawing.Size(123, 307);
+ this.panel3.TabIndex = 4;
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Font = new System.Drawing.Font("Century Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.label3.Location = new System.Drawing.Point(114, 195);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(98, 22);
+ this.label3.TabIndex = 5;
+ this.label3.Text = "Difficulties";
+ //
+ // subname
+ //
+ this.subname.AutoSize = true;
+ this.subname.Font = new System.Drawing.Font("Century Gothic", 13.25F);
+ this.subname.Location = new System.Drawing.Point(188, 127);
+ this.subname.MaximumSize = new System.Drawing.Size(150, 0);
+ this.subname.MinimumSize = new System.Drawing.Size(150, 0);
+ this.subname.Name = "subname";
+ this.subname.Size = new System.Drawing.Size(150, 21);
+ this.subname.TabIndex = 4;
+ this.subname.Text = "Song Subname";
+ this.subname.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // mapper
+ //
+ this.mapper.AutoSize = true;
+ this.mapper.Font = new System.Drawing.Font("Century Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.mapper.Location = new System.Drawing.Point(188, 169);
+ this.mapper.MaximumSize = new System.Drawing.Size(175, 0);
+ this.mapper.Name = "mapper";
+ this.mapper.Size = new System.Drawing.Size(84, 22);
+ this.mapper.TabIndex = 3;
+ this.mapper.Text = "Mapper";
+ //
+ // songName
+ //
+ this.songName.AutoSize = true;
+ this.songName.Font = new System.Drawing.Font("Century Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.songName.Location = new System.Drawing.Point(189, 16);
+ this.songName.MaximumSize = new System.Drawing.Size(150, 0);
+ this.songName.Name = "songName";
+ this.songName.Size = new System.Drawing.Size(117, 22);
+ this.songName.TabIndex = 1;
+ this.songName.Text = "Song Name";
+ //
+ // coverArt
+ //
+ this.coverArt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.coverArt.Location = new System.Drawing.Point(7, 16);
+ this.coverArt.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.coverArt.Name = "coverArt";
+ this.coverArt.Size = new System.Drawing.Size(175, 175);
+ this.coverArt.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
+ this.coverArt.TabIndex = 0;
+ this.coverArt.TabStop = false;
+ //
+ // gen
+ //
+ this.gen.BackColor = System.Drawing.Color.Transparent;
+ this.gen.FlatAppearance.BorderColor = System.Drawing.Color.DarkGray;
+ this.gen.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.gen.Location = new System.Drawing.Point(676, 12);
+ this.gen.Name = "gen";
+ this.gen.Size = new System.Drawing.Size(98, 45);
+ this.gen.TabIndex = 2;
+ this.gen.Text = "Generate";
+ this.gen.UseVisualStyleBackColor = false;
+ this.gen.Click += new System.EventHandler(this.gen_Click);
+ //
+ // status
+ //
+ this.status.AutoSize = true;
+ this.status.Font = new System.Drawing.Font("Century Gothic", 10.75F);
+ this.status.Location = new System.Drawing.Point(673, 235);
+ this.status.MaximumSize = new System.Drawing.Size(100, 0);
+ this.status.Name = "status";
+ this.status.Size = new System.Drawing.Size(51, 20);
+ this.status.TabIndex = 3;
+ this.status.Text = "Status";
+ this.status.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // copy
+ //
+ this.copy.BackColor = System.Drawing.Color.Transparent;
+ this.copy.Enabled = false;
+ this.copy.FlatAppearance.BorderColor = System.Drawing.Color.DarkGray;
+ this.copy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.copy.Location = new System.Drawing.Point(677, 78);
+ this.copy.Name = "copy";
+ this.copy.Size = new System.Drawing.Size(98, 45);
+ this.copy.TabIndex = 4;
+ this.copy.Text = "Copy Link";
+ this.copy.UseVisualStyleBackColor = false;
+ this.copy.Click += new System.EventHandler(this.copy_Click);
+ //
+ // oneclick
+ //
+ this.oneclick.BackColor = System.Drawing.Color.Transparent;
+ this.oneclick.Enabled = false;
+ this.oneclick.FlatAppearance.BorderColor = System.Drawing.Color.DarkGray;
+ this.oneclick.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.oneclick.Location = new System.Drawing.Point(677, 131);
+ this.oneclick.Name = "oneclick";
+ this.oneclick.Size = new System.Drawing.Size(98, 45);
+ this.oneclick.TabIndex = 5;
+ this.oneclick.Text = "OneClick Download";
+ this.oneclick.UseVisualStyleBackColor = false;
+ this.oneclick.Click += new System.EventHandler(this.oneclick_Click);
+ //
+ // key
+ //
+ this.key.BackColor = System.Drawing.Color.Transparent;
+ this.key.Enabled = false;
+ this.key.FlatAppearance.BorderColor = System.Drawing.Color.DarkGray;
+ this.key.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.key.Location = new System.Drawing.Point(677, 182);
+ this.key.Name = "key";
+ this.key.Size = new System.Drawing.Size(98, 45);
+ this.key.TabIndex = 6;
+ this.key.Text = "Copy Key";
+ this.key.UseVisualStyleBackColor = false;
+ this.key.Click += new System.EventHandler(this.key_Click);
+ //
+ // BetterUI
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 16F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.BackColor = System.Drawing.Color.White;
+ this.ClientSize = new System.Drawing.Size(783, 301);
+ this.Controls.Add(this.key);
+ this.Controls.Add(this.oneclick);
+ this.Controls.Add(this.copy);
+ this.Controls.Add(this.status);
+ this.Controls.Add(this.gen);
+ this.Controls.Add(this.panel2);
+ this.Controls.Add(this.panel1);
+ this.Font = new System.Drawing.Font("Century Gothic", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
+ this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
+ this.Name = "BetterUI";
+ this.Text = "Random Song Generator";
+ this.Load += new System.EventHandler(this.BetterUI_Load);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.coverArt)).EndInit();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel panel1;
+ public System.Windows.Forms.CheckedListBox Filters;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label label3;
+ private System.Windows.Forms.Label subname;
+ private System.Windows.Forms.Label mapper;
+ private System.Windows.Forms.Label songName;
+ private System.Windows.Forms.PictureBox coverArt;
+ private System.Windows.Forms.Button gen;
+ private System.Windows.Forms.Panel panel3;
+ private System.Windows.Forms.Label status;
+ private System.Windows.Forms.Panel diffPanel;
+ private System.Windows.Forms.Button copy;
+ private System.Windows.Forms.Button oneclick;
+ private System.Windows.Forms.Button key;
+ }
+}
\ No newline at end of file
diff --git a/UI/BetterUI.cs b/UI/BetterUI.cs
new file mode 100644
index 0000000..f5b4a58
--- /dev/null
+++ b/UI/BetterUI.cs
@@ -0,0 +1,113 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Windows.Forms;
+using Men.Utilities;
+using Men.BeatSaver;
+
+
+namespace Men.UI
+{
+ public partial class BetterUI : Form
+ {
+ private Map mp;
+ public BetterUI()
+ {
+ InitializeComponent();
+ for (int i = 1; i < 5; i++)
+ {
+ Filters.SetItemChecked(i, true);
+ }
+ Filters.ItemCheck += new ItemCheckEventHandler(ItemCheck);
+ }
+ private void ItemCheck(object sender, ItemCheckEventArgs e)
+ {
+ /*for (int i = 4; i < 10; i++)
+ {
+ if (Filters.GetItemChecked(i))
+ {
+ if (i == e.Index)
+ continue;
+
+ return;
+ }
+ }*/
+ Men.Utilities.Filters.filter ^= (short)Math.Pow(2, e.Index);
+ }
+
+ private void BetterUI_Load(object sender, EventArgs e)
+ {
+ if(!Random_Song_Generator.Properties.Settings.Default.accepted)
+ {
+ DialogResult r = MessageBox.Show("This program utilizes the BeatSaver API for validating map keys. If more than one exclusive filter is enabled, this will send the program into a loop, sending the BeatSaver API many requests, which may cause your IP to be blacklisted. Do you understand?", "API Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation);
+
+ if(r == DialogResult.Yes)
+ {
+
+ Random_Song_Generator.Properties.Settings.Default.accepted = true;
+ Random_Song_Generator.Properties.Settings.Default.Save();
+
+ }
+ }
+ }
+
+ private void gen_Click(object sender, EventArgs e)
+ {
+ Thread t = new Thread(Generate);
+ t.IsBackground = true;
+ t.Start();
+
+
+ }
+ private void Generate()
+ {
+ RandomBeatSaver rand = new RandomBeatSaver(status);
+ Map map = rand.Next();
+ mp = map;
+ songName.Invoke(new Action(() => songName.Text = $"{map.metadata.songName} - {map.metadata.songAuthorName}" ));
+ subname.Invoke(new Action(() => subname.Text = map.metadata.songSubName));
+ coverArt.Invoke(new Action(() => coverArt.ImageLocation = map.versions[0].coverURl));
+
+ mapper.Invoke(new Action(() => mapper.Text = map.metadata.levelAuthorName));
+
+ copy.Invoke(new Action(() => copy.Enabled = true));
+ oneclick.Invoke(new Action(() => oneclick.Enabled = true));
+ key.Invoke(new Action(() => key.Enabled = true));
+ int i = 0;
+ diffPanel.Invoke(new Action(() => diffPanel.Controls.Clear()));
+ foreach(BeatSaver.Difficulty d in map.versions[0].diffs)
+ {
+
+ diffPanel.Invoke(new Action(() => {
+ Controls.Difficulty dif = new Controls.Difficulty(d);
+
+ dif.Left = dif.Width * i;
+ diffPanel.Controls.Add(dif);
+ }));
+ i++;
+ }
+ // diffPanel
+
+ }
+
+ private void copy_Click(object sender, EventArgs e)
+ {
+ Clipboard.SetText($"https://beatsaver.com/maps/{mp.id}");
+ }
+
+ private void oneclick_Click(object sender, EventArgs e)
+ {
+ System.Diagnostics.Process.Start($"beatsaver://{mp.id}");
+ }
+
+ private void key_Click(object sender, EventArgs e)
+ {
+ Clipboard.SetText(mp.id);
+ }
+ }
+}
diff --git a/UI/BetterUI.resx b/UI/BetterUI.resx
new file mode 100644
index 0000000..29dcb1b
--- /dev/null
+++ b/UI/BetterUI.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/UI/Controls/Difficulty.Designer.cs b/UI/Controls/Difficulty.Designer.cs
new file mode 100644
index 0000000..74383c0
--- /dev/null
+++ b/UI/Controls/Difficulty.Designer.cs
@@ -0,0 +1,75 @@
+namespace Men.UI.Controls
+{
+ partial class Difficulty
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.diff = new System.Windows.Forms.Label();
+ this.expand = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // diff
+ //
+ this.diff.AutoSize = true;
+ this.diff.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.diff.Location = new System.Drawing.Point(3, 7);
+ this.diff.Name = "diff";
+ this.diff.Size = new System.Drawing.Size(76, 21);
+ this.diff.TabIndex = 0;
+ this.diff.Text = "Difficulty";
+ this.diff.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // expand
+ //
+ this.expand.Font = new System.Drawing.Font("Century Gothic", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.expand.Location = new System.Drawing.Point(149, 5);
+ this.expand.Name = "expand";
+ this.expand.Size = new System.Drawing.Size(25, 25);
+ this.expand.TabIndex = 1;
+ this.expand.Text = "v";
+ this.expand.TextAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.expand.UseVisualStyleBackColor = true;
+ //
+ // Difficulty
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.expand);
+ this.Controls.Add(this.diff);
+ this.Name = "Difficulty";
+ this.Size = new System.Drawing.Size(177, 37);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label diff;
+ private System.Windows.Forms.Button expand;
+ }
+}
diff --git a/UI/Controls/Difficulty.cs b/UI/Controls/Difficulty.cs
new file mode 100644
index 0000000..62d8142
--- /dev/null
+++ b/UI/Controls/Difficulty.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using Men.UI;
+
+namespace Men.UI.Controls
+{
+ public partial class Difficulty : UserControl
+ {
+ public Men.BeatSaver.Difficulty DifficultyInfo;
+ public Difficulty(Men.BeatSaver.Difficulty d)
+ {
+ InitializeComponent();
+ DifficultyInfo = d;
+ diff.Text = $"{d.difficulty} {d.characteristic}";
+
+ using (Graphics g = CreateGraphics())
+ {
+ SizeF size = g.MeasureString(diff.Text, diff.Font, diff.Width);
+ expand.Location = new Point((int)size.Width + 23, expand.Location.Y);
+ Width = expand.Location.X + 35;
+ }
+ expand.Click += new EventHandler(new Action