コード例 #1
0
 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();
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 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();
 }
コード例 #4
0
        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();
        }
コード例 #5
0
ファイル: Hunterpie.xaml.cs プロジェクト: RadioVs/HunterPie
        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();
        }
コード例 #6
0
 private void LoadData()
 {
     GStrings.InitStrings(UserSettings.PlayerConfig.HunterPie.Language);
     MonsterData.LoadMonsterData();
     AbnormalityData.LoadAbnormalityData();
 }