diff --git a/Release_Tool/Program.cs b/Release_Tool/Program.cs index 9396485..5184a85 100644 --- a/Release_Tool/Program.cs +++ b/Release_Tool/Program.cs @@ -10,11 +10,33 @@ namespace Release_Tool static List files = new List(); public static string globalTimestamp = null; public static string releaseFolder = "debug_release"; - public static string releaseFileName = "currentRelease.zip"; + public static string releaseFileName = "currentRelease"; + public static string fileending = ".zip"; public static string destFolder = null; public static bool success = true; + public static bool Contains(string source, string toCheck, StringComparison comp) + { + return source?.IndexOf(toCheck, comp) >= 0; + } public static void Main(string[] args) { + var lines = File.ReadAllLines(".\\WeeXnes\\Core\\Globals.cs"); + string versionLine = ""; + foreach (var line in lines) + { + if (Contains(line, "public static string version", StringComparison.OrdinalIgnoreCase)) + { + versionLine = line; + } + } + Console.WriteLine(versionLine); + string versionnr = + versionLine.Substring(versionLine.IndexOf("\""), versionLine.Length - versionLine.IndexOf("\"")); + versionnr = versionnr.Substring(1, versionnr.Length - 1); + versionnr = versionnr.Substring(0, versionnr.IndexOf("\"")); + string VersionNumber = versionnr; + releaseFileName = releaseFileName + "_" + versionnr + fileending; + Console.WriteLine("Packing " + releaseFileName); Console.Title = "WeeXnes Automated Release Tool"; SetTimestamp(); SetPaths(); diff --git a/WeeXnes/App.xaml b/WeeXnes/App.xaml index 101d171..825e2aa 100644 --- a/WeeXnes/App.xaml +++ b/WeeXnes/App.xaml @@ -13,6 +13,7 @@ + diff --git a/WeeXnes/Core/Globals.cs b/WeeXnes/Core/Globals.cs index 5165678..bb49822 100644 --- a/WeeXnes/Core/Globals.cs +++ b/WeeXnes/Core/Globals.cs @@ -15,7 +15,7 @@ namespace WeeXnes.Core public static string encryptionKey = "8zf5#RdyQ]$4x4_"; public static string AppDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "WeeXnes"); public static string SettingsFileName = "settings.ini"; - public static string version = "3.2"; + public static string version = "3.3"; public static bool info_isRpcRunning = false; public static bool info_RpcAutoStart; public static string apiUrl = "http://www.weexnes.com:5169/"; diff --git a/WeeXnes/Images/discord.png b/WeeXnes/Images/discord.png new file mode 100644 index 0000000..5b6094f Binary files /dev/null and b/WeeXnes/Images/discord.png differ diff --git a/WeeXnes/Images/home.png b/WeeXnes/Images/home.png new file mode 100644 index 0000000..4c7b3dc Binary files /dev/null and b/WeeXnes/Images/home.png differ diff --git a/WeeXnes/Images/key.png b/WeeXnes/Images/key.png new file mode 100644 index 0000000..1a8add4 Binary files /dev/null and b/WeeXnes/Images/key.png differ diff --git a/WeeXnes/Images/settings.png b/WeeXnes/Images/settings.png new file mode 100644 index 0000000..44ca6a8 Binary files /dev/null and b/WeeXnes/Images/settings.png differ diff --git a/WeeXnes/MainWindow.xaml b/WeeXnes/MainWindow.xaml index 25f07b8..1e9f62e 100644 --- a/WeeXnes/MainWindow.xaml +++ b/WeeXnes/MainWindow.xaml @@ -18,11 +18,7 @@ Deactivated="Window_Deactivated" StateChanged="Window_StateChanged" Closing="Window_Closing"> - - - + @@ -70,16 +66,17 @@ Height="50" Foreground="White" FontSize="14" - Style="{StaticResource MenuButtonRoundTheme}" + Style="{StaticResource HomeMenuButton}" IsChecked="True" Command="{Binding HomeViewCommand}" - Name="HomeMenuButton"/> + Name="HomeMenuButton" + Tag="/Images/wicon.png"/> @@ -87,7 +84,7 @@ Height="50" Foreground="White" FontSize="14" - Style="{StaticResource MenuButtonRoundTheme}" + Style="{StaticResource DiscordMenuButton}" Command="{Binding DiscordRpcViewCommand}" Name="RpcMenuButton"/> @@ -95,7 +92,7 @@ Height="50" Foreground="White" FontSize="14" - Style="{StaticResource MenuButtonRoundTheme}" + Style="{StaticResource SettingsMenuButton}" Command="{Binding SettingsViewCommand}" Name="SettingsMenuButton"/> @@ -171,4 +168,194 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/WeeXnes/Theme/MenuButtonTheme.xaml b/WeeXnes/Theme/MenuButtonTheme.xaml index a9a4cde..c5f93b1 100644 --- a/WeeXnes/Theme/MenuButtonTheme.xaml +++ b/WeeXnes/Theme/MenuButtonTheme.xaml @@ -41,9 +41,164 @@ HorizontalAlignment="Stretch"> - + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WeeXnes/WeeXnes.csproj b/WeeXnes/WeeXnes.csproj index 2376881..94ffb11 100644 --- a/WeeXnes/WeeXnes.csproj +++ b/WeeXnes/WeeXnes.csproj @@ -91,6 +91,7 @@ + @@ -132,6 +133,10 @@ + + + +