From 264deb3774935da3faba95fef55a94227e3f2368 Mon Sep 17 00:00:00 2001 From: JayXKanz666 Date: Thu, 13 Jul 2017 16:46:24 +0200 Subject: Fixed type names -`String` replaced with `string` -`Boolean` replaced with `bool` --- TimeHACK.Main/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'TimeHACK.Main/Program.cs') diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index e2a4be6..3f8d10c 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -51,7 +51,7 @@ namespace TimeHACK //TimeHACK.Engine.GameSave.SaveData MySaveData = new TimeHACK.Engine.GameSave.SaveData() //{ // OS = 60, - // MyStringList = new List + // MystringList = new List // { // "Item1", // "Item2" @@ -69,7 +69,7 @@ namespace TimeHACK Application.Run(title); } - public static String OpenFileExplorerAsDialogAndReturnGivenPath() + public static string OpenFileExplorerAsDialogAndReturnGivenPath() { WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); -- cgit v1.2.3 From 67db4eebef37d24cee4057ac6f381ce9eb3854fe Mon Sep 17 00:00:00 2001 From: lempamo Date: Wed, 19 Jul 2017 21:17:50 -0400 Subject: New Version thing --- TimeHACK.Main/Program.cs | 32 -------------------------------- TimeHACK.Main/TitleScreen.cs | 8 ++++---- 2 files changed, 4 insertions(+), 36 deletions(-) (limited to 'TimeHACK.Main/Program.cs') diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs index 3f8d10c..086c084 100644 --- a/TimeHACK.Main/Program.cs +++ b/TimeHACK.Main/Program.cs @@ -21,7 +21,6 @@ namespace TimeHACK static System.Media.SoundPlayer stopsound; internal static bool nightly = true; - internal static string gameID; internal static TitleScreen title; public static string AddressBookSelectedFolderName; public static AddressBookContact AddressBookSelectedContact; @@ -42,12 +41,6 @@ namespace TimeHACK title = new TitleScreen(); - gameID = "Getting AppVeyor..."; - System.Threading.Thread getAppVeyor = new System.Threading.Thread(GetAppVeyor); - - getAppVeyor.Start(); - System.Threading.Thread.Sleep(500); - //TimeHACK.Engine.GameSave.SaveData MySaveData = new TimeHACK.Engine.GameSave.SaveData() //{ // OS = 60, @@ -94,31 +87,6 @@ namespace TimeHACK //Application.Exit(); } - public static void GetAppVeyor() - { - if (nightly == true) - { - try - { - WebClient wc = new WebClient(); - - // Set the GameID - string json = wc.DownloadString("http://ci.appveyor.com/api/projects/timehack/timehack"); - JObject j = JObject.Parse(JObject.Parse(json)["build"].ToString()); - gameID = "AppVeyor-" + j["buildNumber"].ToString(); - } - catch (WebException) - { - gameID = "AppVeyor"; - } - } - else - { - gameID = "TimeHACK 1.1"; - } - - } - public static void AddTaskbarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon) { TitleScreen.frm95.AddTaskBarItem(Application, ApplicationID, ApplicationName, ApplicationIcon); diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs index 757c5ab..848709a 100644 --- a/TimeHACK.Main/TitleScreen.cs +++ b/TimeHACK.Main/TitleScreen.cs @@ -149,7 +149,7 @@ namespace TimeHACK // Set GameVersion - gameversion.Text = Program.gameID; + gameversion.Text = "Alpha 1.0.3"; // Initialize Font File.WriteAllBytes(Data + "\\LeviWindows.ttf", Resources.LeviWindows); @@ -299,7 +299,7 @@ namespace TimeHACK private void gameversion_MouseLeave(object sender, EventArgs e) { - gameversion.Text = Program.gameID; + gameversion.Text = "Alpha 1.0.3"; } private void startbutton_Click(object sender, EventArgs e) @@ -322,9 +322,9 @@ namespace TimeHACK private void updateText_Tick(object sender, EventArgs e) { - if (gameversion.Text != Program.gameID) + if (gameversion.Text != "Alpha 1.0.3") { - gameversion.Text = Program.gameID; + gameversion.Text = "Alpha 1.0.3"; updateText.Stop(); } } -- cgit v1.2.3