private static void PostUpdateLoad() { Music.Music.Initialize(); Skins.SkinManager.PlaySkinMusic(); winLoading winLoading = WindowSwitcher.FindWindow("winLoading") as winLoading; winLoading.UpdateLoadText("Loading game..."); CheckFolders(); LoadGuis(); LoadGraphics(); // TODO: Add encryption key here Logic.Globals.Encryption = new Client.Logic.Security.Encryption(); winLoading.UpdateLoadText("Connecting to server..."); // Load TCP and connect to the server NetworkManager.InitializeTcp(); NetworkManager.InitializePacketSecurity(); NetworkManager.Connect(); winLoading.Close(); Windows.WindowSwitcher.ShowMainMenu(); Globals.GameLoaded = true; }
private static void PostUpdateLoad() { Music.Music.Initialize(); Skins.SkinManager.PlaySkinMusic(); winLoading winLoading = WindowSwitcher.FindWindow("winLoading") as winLoading; winLoading.UpdateLoadText("Loading game..."); CheckFolders(); LoadGuis(); LoadGraphics(); if (string.IsNullOrEmpty(IO.Options.ConnectionIP)) { winLoading.Close(); WindowSwitcher.AddWindow(new winWelcome(PostWelcomeLoad)); } else { PostWelcomeLoad(); } }