diff --git a/Partypacker/Core/PartypackServer.cs b/Partypacker/Core/PartypackServer.cs index 26d0e06..b06effe 100644 --- a/Partypacker/Core/PartypackServer.cs +++ b/Partypacker/Core/PartypackServer.cs @@ -14,14 +14,14 @@ namespace Partypacker.Core #if DEBUG "http://localhost:6677"; #else - "https://partypack.mcthe.dev"; + MainWindow.settings.GetValue("Launcher", "apiurl") ?? "https://partypack.mcthe.dev"; #endif public static string DashboardURL = #if DEBUG "http://localhost:5173"; #else - "https://partypack.mcthe.dev"; + MainWindow.settings.GetValue("Launcher", "dashurl") ?? "https://partypack.mcthe.dev"; #endif public static KeyValuePair GET(string URL = "/") diff --git a/Partypacker/Icon.png b/Partypacker/Icon.png new file mode 100644 index 0000000..1eceabd Binary files /dev/null and b/Partypacker/Icon.png differ diff --git a/Partypacker/MainWindow.xaml b/Partypacker/MainWindow.xaml index 549fb14..b55acc9 100644 --- a/Partypacker/MainWindow.xaml +++ b/Partypacker/MainWindow.xaml @@ -12,6 +12,12 @@ + + @@ -31,14 +37,16 @@ - - - - + + + + + + diff --git a/Partypacker/MainWindow.xaml.cs b/Partypacker/MainWindow.xaml.cs index 83cca4f..1491c81 100644 --- a/Partypacker/MainWindow.xaml.cs +++ b/Partypacker/MainWindow.xaml.cs @@ -29,7 +29,7 @@ namespace Partypacker static string Token; static UserDetailObject UserDetails; static Server sv; - static INIFile settings = new("settings.ini", true); + public static INIFile settings = new("settings.ini", true); public MainWindow() { diff --git a/Partypacker/Nexa Bold.otf b/Partypacker/Nexa Bold.otf new file mode 100644 index 0000000..e188cd9 Binary files /dev/null and b/Partypacker/Nexa Bold.otf differ diff --git a/Partypacker/Partypacker.csproj b/Partypacker/Partypacker.csproj index cf55a80..e80e321 100644 --- a/Partypacker/Partypacker.csproj +++ b/Partypacker/Partypacker.csproj @@ -9,6 +9,12 @@ PartyPacker.ico + + + + + + @@ -24,4 +30,24 @@ + + + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + diff --git a/Partypacker/Properties/Resources.Designer.cs b/Partypacker/Properties/Resources.Designer.cs new file mode 100644 index 0000000..c1984ee --- /dev/null +++ b/Partypacker/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 Partypacker.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", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal 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)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Partypacker.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)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Partypacker/Properties/Resources.resx b/Partypacker/Properties/Resources.resx new file mode 100644 index 0000000..4fdb1b6 --- /dev/null +++ b/Partypacker/Properties/Resources.resx @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file