Exemple #1
0
 private PSO2PluginManager()
 {
     this.innerDict             = new Dictionary <PSO2Plugin, CheckBox>();
     this._tooltip              = new ExtendedToolTip();
     this._tooltip.PreferedSize = new Size(300, 600);
     this._tooltip.ForeColor    = Color.FromArgb(255, 255, 255);
     this._tooltip.BackColor    = Color.FromArgb(17, 17, 17);
     this._tooltip.Opacity      = 0.8F;
     this._tooltip.Font         = new Font(this.Font.FontFamily, 9F, FontStyle.Regular);
     this._tooltip.Popup       += this.Tooltip_Popup;
     this._tooltip.Draw        += this.Tooltip_Draw;
     InitializeComponent();
 }
        private void OptionPanel_Load()
        {
            if (DesignMode)
            {
                return;
            }
            if (this.optionToolTip == null)
            {
                this.optionToolTip              = new ExtendedToolTip();
                this.optionToolTip.UseFading    = true;
                this.optionToolTip.BackColor    = Color.FromArgb(17, 17, 17);
                this.optionToolTip.Font         = new Font(this.Font.FontFamily, 10F);
                this.optionToolTip.ForeColor    = Color.FromArgb(254, 254, 254);
                this.optionToolTip.FormColor    = this.optionToolTip.BackColor;
                this.optionToolTip.PreferedSize = new Size(300, 400);
                this.optionToolTip.Opacity      = 0.75F;
                this.optionToolTip.Popup       += this.OptionToolTip_Popup;
                this.optionToolTip.SetToolTip(this.optioncomboBoxThrottleCache, LanguageManager.GetMessageText("OptionTooltip_UpdateThreadsThrottle", "This option is to throttle how fast the cache process will be to reduce CPU usage. Only avaiable if using update cache.\nSlower = cost less CPU usage."));
                this.optionToolTip.SetToolTip(this.optioncheckboxpso2updatecache, LanguageManager.GetMessageText("OptionTooltip_UpdateCache", "This option is to determine if the launcher should use update cache to speed up file checking."));
                this.optionToolTip.SetToolTip(this.optioncheckBoxMinimizeNetworkUsage, LanguageManager.GetMessageText("OptionTooltip_MinimizeNetworkUsage", "This option is to determine if the launcher should reduce network usage by reading the resource from cache."));
                this.optionToolTip.SetToolTip(this.checkBoxoptionSteamMode, LanguageManager.GetMessageText("OptionTooltip_SteamMode", "Enable steam support: The launcher will keep itself running after launched PSO2 game, which makes steam showing status playing PSO2."));

                this.optionToolTip.SetToolTip(this.optionSliderFormScale, LanguageManager.GetMessageText("OptionTooltip_SliderFormScale", "Set the launcher size scale factor.\nThis scale factor must be equal or higher than user's font scale settings.\nToo big will break launcher rendering. Be careful!"));
                this.optionToolTip.SetToolTip(this.optionbuttonResetBG, LanguageManager.GetMessageText("OptionTooltip_ResetBG", "Reset background image and background color to default."));
                this.optionToolTip.SetToolTip(this.optioncomboBoxBGImgMode, LanguageManager.GetMessageText("OptionTooltip_ImgMode", "Set the image layout for the custom background image."));
                this.optionToolTip.SetToolTip(this.optioncheckBoxTranslatorMode, LanguageManager.GetMessageText("OptionTooltip_TranslatorMode", "While this mode is turned on, user/translator can right click to the UI elements to get its ID for translation.\nIf right click do nothing for a element, it means that element can't be translated."));
                this.optionToolTip.SetToolTip(this.optioncomboBoxLanguage, LanguageManager.GetMessageText("OptionTooltip_comboBoxLanguage", "Select the display language (require launcher to be restarted).\nIf the string is missing or the language file is not existed, the launcher will use the default built-in strings."));

                this.optionToolTip.SetToolTip(this.checkBoxSupportReshade, LanguageManager.GetMessageText("OptionTooltip_CheckBoxReshadeSupport", "Enable ReShade hooking (for SweetFX 2.0) along with PSO2 Plugins without ENB or any injectors.\n(This is an experimental feature)\nThis option is for those who knows well what are they doing. If you don't know what is this, please do not enable."));

                this.optionToolTip.SetToolTip(this.checkBoxExternalLauncher, LanguageManager.GetMessageText("OptionTooltip_checkBoxExternalLauncher", "Use external program/gamelauncher to launch the game. Enable this will disable ReShade support."));
                this.optionToolTip.SetToolTip(this.textBoxExLauncherEXE, LanguageManager.GetMessageText("OptionTooltip_textBoxExLauncherEXE", "Program/gamelauncher's location. Support relative path. Although you should use absolute path instead."));
                this.optionToolTip.SetToolTip(this.textBoxExLauncherArgs, LanguageManager.GetMessageText("OptionTooltip_textBoxExLauncherArgs", "Custom arguments for program/gamelauncher. Leave blank if you don't know the args."));
                this.optionToolTip.SetToolTip(this.radioButtonExLauncherFlexible, LanguageManager.GetMessageText("OptionTooltip_radioButtonExLauncherFlexible", "Flexible mode: This launcher will activate PSO2 Plugin for you then launch your external program/gamelauncher.\nBeware that there is time limit of the PSO2Plugin activation, so launch the game ASAP."));
                this.optionToolTip.SetToolTip(this.radioButtonExLauncherStrict, LanguageManager.GetMessageText("OptionTooltip_radioButtonExLauncherStrict", "Strict mode: This launcher will not do anything and will only launch your external program/gamelauncher.\n(Sounds weird, right ???? Because this mode is likely not even have any reason to be existed here. But trust me, it had some reasons, PSO2 Options for example)"));

                this.optionToolTip.SetToolTip(this.checkboxoptionPrepatch, LanguageManager.GetMessageText("OptionTooltip_checkboxoptionPrepatch", "Determine if launcher should check for Pre-patch updates and prompt user to download it or not."));
            }
            if (this.cacheLangFiles == null)
            {
                this.cacheLangFiles = new List <string>();
            }
        }