public Hunterpie() { // Initialize debugger and theme Debugger.InitializeDebugger(); UserSettings.InitializePlayerConfig(); LoadCustomTheme(); Debugger.LoadNewColors(); InitializeComponent(); OpenDebugger(); AppDomain.CurrentDomain.UnhandledException += ExceptionLogger; // Initialize everything under this line if (!CheckIfUpdateEnableAndStart()) { return; } InitializeTrayIcon(); // Updates version_text this.version_text.Content = $"Version: {HUNTERPIE_VERSION} ({UserSettings.PlayerConfig.HunterPie.Update.Branch})"; Debugger.Warn("Initializing HunterPie!"); GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language); MonsterData.LoadMonsterData(); AbnormalityData.LoadAbnormalityData(); SetHotKeys(); StartEverything(); }
public Hunterpie() { if (CheckIfHunterPieOpen()) { Close(); return; } AppDomain.CurrentDomain.UnhandledException += ExceptionLogger; SetDPIAwareness(); Buffers.Initialize(1024); Buffers.Add <byte>(64); // Initialize debugger and player config Debugger.InitializeDebugger(); UserSettings.InitializePlayerConfig(); // Initialize localization GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language); // Load custom theme and console colors LoadCustomTheme(); Debugger.LoadNewColors(); InitializeComponent(); OpenDebugger(); // Initialize everything under this line if (!CheckIfUpdateEnableAndStart()) { return; } Width = UserSettings.PlayerConfig.HunterPie.Width; Height = UserSettings.PlayerConfig.HunterPie.Height; // Convert the old HotKey to the new one ConvertOldHotkeyToNew(UserSettings.PlayerConfig.Overlay.ToggleDesignModeKey); IsUpdating = false; InitializeTrayIcon(); // Update version text this.version_text.Text = GStrings.GetLocalizationByXPath("/Console/String[@ID='CONSOLE_VERSION']").Replace("{HunterPie_Version}", HUNTERPIE_VERSION).Replace("{HunterPie_Branch}", UserSettings.PlayerConfig.HunterPie.Update.Branch); // Initializes the rest of HunterPie LoadData(); Debugger.Warn(GStrings.GetLocalizationByXPath("/Console/String[@ID='MESSAGE_HUNTERPIE_INITIALIZED']")); BUTTON_UPLOADBUILD.IsEnabled = false; BUTTON_UPLOADBUILD.Opacity = 0.5; SetHotKeys(); StartEverything(); }
public Hunterpie() { InitializeComponent(); OpenDebugger(); // Initialize rich presence Discord = new Presence(MonsterHunter); // Initialize everything under this line UserSettings.InitializePlayerConfig(); CheckIfUpdateEnableAndStart(); // Updates version_text this.version_text.Content = $"Version: {HUNTERPIE_VERSION}"; Debugger.Warn("Initializing HunterPie!"); GStrings.InitStrings(); StartEverything(); }
public Hunterpie() { Debugger.InitializeDebugger(); LoadCustomTheme(); InitializeComponent(); OpenDebugger(); AppDomain.CurrentDomain.UnhandledException += ExceptionLogger; // Initialize rich presence Discord = new Presence(MonsterHunter); // Initialize everything under this line UserSettings.InitializePlayerConfig(); CheckIfUpdateEnableAndStart(); // Updates version_text this.version_text.Content = $"Version: {HUNTERPIE_VERSION} ({UserSettings.PlayerConfig.HunterPie.Update.Branch})"; Debugger.Warn("Initializing HunterPie!"); GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language); StartEverything(); }
public Hunterpie() { if (CheckIfHunterPieOpen()) { this.Close(); return; } AppDomain.CurrentDomain.UnhandledException += ExceptionLogger; // Initialize debugger and player config Debugger.InitializeDebugger(); UserSettings.InitializePlayerConfig(); // Initialize localization GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language); // Load custom theme and console colors LoadCustomTheme(); Debugger.LoadNewColors(); InitializeComponent(); OpenDebugger(); // Initialize everything under this line if (!CheckIfUpdateEnableAndStart()) { return; } InitializeTrayIcon(); // Updates version_text this.version_text.Content = GStrings.GetLocalizationByXPath("/Console/String[@ID='CONSOLE_VERSION']").Replace("{HunterPie_Version}", HUNTERPIE_VERSION).Replace("{HunterPie_Branch}", UserSettings.PlayerConfig.HunterPie.Update.Branch); // Initializes the rest of HunterPie LoadData(); Debugger.Warn(GStrings.GetLocalizationByXPath("/Console/String[@ID='MESSAGE_HUNTERPIE_INITIALIZED']")); SetHotKeys(); StartEverything(); }
private void LoadData() { GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language); MonsterData.LoadMonsterData(); AbnormalityData.LoadAbnormalityData(); }