Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the SettingsDialog class.
        /// </summary>
        public SettingsDialog()
        {
            this.InitializeComponent();
            this.vaultPathLabel.Text           = Resources.SettingsLabel1;
            this.languageLabel.Text            = Resources.SettingsLabel2;
            this.titanQuestPathLabel.Text      = Resources.SettingsLabel3;
            this.immortalThronePathLabel.Text  = Resources.SettingsLabel4;
            this.customMapLabel.Text           = Resources.SettingsLabel5;
            this.detectGamePathsCheckBox.Text  = Resources.SettingsDetectGamePath;
            this.detectLanguageCheckBox.Text   = Resources.SettingsDetectLanguage;
            this.enableCustomMapsCheckBox.Text = Resources.SettingsEnableMod;
            this.toolTip.SetToolTip(this.enableCustomMapsCheckBox, Resources.SettingsEnableModTT);
            this.skipTitleCheckBox.Text = Resources.SettingsSkipTitle;
            this.toolTip.SetToolTip(this.skipTitleCheckBox, Resources.SettingsSkipTitleTT);
            this.allowItemCopyCheckBox.Text = Resources.SettingsAllowCopy;
            this.toolTip.SetToolTip(this.allowItemCopyCheckBox, Resources.SettingsAllowCopyTT);
            this.allowItemEditCheckBox.Text = Resources.SettingsAllowEdit;
            this.toolTip.SetToolTip(this.allowItemEditCheckBox, Resources.SettingsAllowEditTT);
            this.loadLastCharacterCheckBox.Text = Resources.SettingsLoadChar;
            this.toolTip.SetToolTip(this.loadLastCharacterCheckBox, Resources.SettingsLoadCharTT);
            this.loadLastVaultCheckBox.Text = Resources.SettingsLoadVault;
            this.toolTip.SetToolTip(this.loadLastVaultCheckBox, Resources.SettingsLoadVaultTT);
            this.loadAllFilesCheckBox.Text = Resources.SettingsPreLoad;
            this.toolTip.SetToolTip(this.loadAllFilesCheckBox, Resources.SettingsPreLoadTT);
            this.suppressWarningsCheckBox.Text = Resources.SettingsNoWarning;
            this.toolTip.SetToolTip(this.suppressWarningsCheckBox, Resources.SettingsNoWarningTT);
            this.playerReadonlyCheckbox.Text = Resources.SettingsPlayerReadonly;
            this.toolTip.SetToolTip(this.playerReadonlyCheckbox, Resources.SettingsPlayerReadonlyTT);
            this.resetButton.Text = Resources.SettingsReset;
            this.toolTip.SetToolTip(this.resetButton, Resources.SettingsResetTT);
            this.cancelButton.Text = Resources.GlobalCancel;
            this.okayButton.Text   = Resources.GlobalOK;
            this.Text = Resources.SettingsTitle;

            this.DrawCustomBorder = true;

            this.mapListComboBox.Items.Clear();
            this.mapListComboBox.Items.Add(string.Empty);

            string[] maps = TQData.GetCustomMapList();

            if (maps != null && maps.Length > 0)
            {
                this.mapListComboBox.Items.AddRange(maps);
            }
            if (!IniProperties.ShowEditingCopyFeatures)
            {
                this.allowItemEditCheckBox.Visible = false;
                this.allowItemCopyCheckBox.Visible = false;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the SettingsDialog class.
        /// </summary>
        public SettingsDialog()
        {
            this.InitializeComponent();

            #region Apply custom font

            this.allowItemEditCheckBox.Font     = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.allowItemCopyCheckBox.Font     = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.skipTitleCheckBox.Font         = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.loadLastCharacterCheckBox.Font = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.loadLastVaultCheckBox.Font     = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.vaultPathTextBox.Font          = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.vaultPathLabel.Font            = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.cancelButton.Font                   = FontHelper.GetFontAlbertusMTLight(12F);
            this.okayButton.Font                     = FontHelper.GetFontAlbertusMTLight(12F);
            this.resetButton.Font                    = FontHelper.GetFontAlbertusMTLight(12F);
            this.vaultPathBrowseButton.Font          = FontHelper.GetFontAlbertusMTLight(12F);
            this.enableCustomMapsCheckBox.Font       = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.loadAllFilesCheckBox.Font           = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.suppressWarningsCheckBox.Font       = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.playerReadonlyCheckbox.Font         = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.languageComboBox.Font               = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.languageLabel.Font                  = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.detectLanguageCheckBox.Font         = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.titanQuestPathTextBox.Font          = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.titanQuestPathLabel.Font            = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.immortalThronePathLabel.Font        = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.immortalThronePathTextBox.Font      = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.detectGamePathsCheckBox.Font        = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.titanQuestPathBrowseButton.Font     = FontHelper.GetFontAlbertusMTLight(12F);
            this.immortalThronePathBrowseButton.Font = FontHelper.GetFontAlbertusMTLight(12F);
            this.customMapLabel.Font                 = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.mapListComboBox.Font                = FontHelper.GetFontAlbertusMTLight(11.25F);
            this.Font = FontHelper.GetFontAlbertusMTLight(11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (byte)(0));

            #endregion

            this.vaultPathLabel.Text           = Resources.SettingsLabel1;
            this.languageLabel.Text            = Resources.SettingsLabel2;
            this.titanQuestPathLabel.Text      = Resources.SettingsLabel3;
            this.immortalThronePathLabel.Text  = Resources.SettingsLabel4;
            this.customMapLabel.Text           = Resources.SettingsLabel5;
            this.detectGamePathsCheckBox.Text  = Resources.SettingsDetectGamePath;
            this.detectLanguageCheckBox.Text   = Resources.SettingsDetectLanguage;
            this.enableCustomMapsCheckBox.Text = Resources.SettingsEnableMod;
            this.toolTip.SetToolTip(this.enableCustomMapsCheckBox, Resources.SettingsEnableModTT);
            this.skipTitleCheckBox.Text = Resources.SettingsSkipTitle;
            this.toolTip.SetToolTip(this.skipTitleCheckBox, Resources.SettingsSkipTitleTT);
            this.allowItemCopyCheckBox.Text = Resources.SettingsAllowCopy;
            this.toolTip.SetToolTip(this.allowItemCopyCheckBox, Resources.SettingsAllowCopyTT);
            this.allowItemEditCheckBox.Text = Resources.SettingsAllowEdit;
            this.toolTip.SetToolTip(this.allowItemEditCheckBox, Resources.SettingsAllowEdit);
            this.characterEditCheckBox.Text = Resources.SettingsAllowEditCE;
            this.toolTip.SetToolTip(this.characterEditCheckBox, Resources.SettingsAllowEditCE);
            this.loadLastCharacterCheckBox.Text = Resources.SettingsLoadChar;
            this.toolTip.SetToolTip(this.loadLastCharacterCheckBox, Resources.SettingsLoadCharTT);
            this.loadLastVaultCheckBox.Text = Resources.SettingsLoadVault;
            this.toolTip.SetToolTip(this.loadLastVaultCheckBox, Resources.SettingsLoadVaultTT);
            this.loadAllFilesCheckBox.Text = Resources.SettingsPreLoad;
            this.toolTip.SetToolTip(this.loadAllFilesCheckBox, Resources.SettingsPreLoadTT);
            this.suppressWarningsCheckBox.Text = Resources.SettingsNoWarning;
            this.toolTip.SetToolTip(this.suppressWarningsCheckBox, Resources.SettingsNoWarningTT);
            this.playerReadonlyCheckbox.Text = Resources.SettingsPlayerReadonly;
            this.toolTip.SetToolTip(this.playerReadonlyCheckbox, Resources.SettingsPlayerReadonlyTT);
            this.resetButton.Text = Resources.SettingsReset;
            this.toolTip.SetToolTip(this.resetButton, Resources.SettingsResetTT);
            this.cancelButton.Text = Resources.GlobalCancel;
            this.okayButton.Text   = Resources.GlobalOK;
            this.Text = Resources.SettingsTitle;

            this.DrawCustomBorder = true;

            this.mapListComboBox.Items.Clear();
            this.mapListComboBox.Items.Add(string.Empty);

            string[] maps = TQData.GetCustomMapList();

            if (maps != null && maps.Length > 0)
            {
                this.mapListComboBox.Items.AddRange(maps);
            }
            if (!Config.Settings.Default.AllowCheats)
            {
                this.allowItemEditCheckBox.Visible = false;
                this.allowItemCopyCheckBox.Visible = false;
                this.characterEditCheckBox.Visible = false;
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the SettingsDialog class.
        /// </summary>
        public SettingsDialog()
        {
            this.InitializeComponent();
            this.vaultPathLabel.Text          = Resources.SettingsLabel1;
            this.languageLabel.Text           = Resources.SettingsLabel2;
            this.titanQuestPathLabel.Text     = Resources.SettingsLabel3;
            this.immortalThronePathLabel.Text = Resources.SettingsLabel4;
            this.customMapLabel.Text          = Resources.SettingsLabel5;
            this.detectGamePathsCheckBox.Text = Resources.SettingsDetectGamePath;
            this.detectLanguageCheckBox.Text  = Resources.SettingsDetectLanguage;
            this.playerListGroupBox.Text      = Resources.SettingsFilterGroup;
            this.playerListGroupBox.ForeColor = Color.White;
            this.noFilterRadioButton.Text     = Resources.SettingsFilterNone;
            this.toolTip.SetToolTip(this.noFilterRadioButton, Resources.SettingsFilterNoneTT);
            this.filterITCharsRadioButton.Text = Resources.SettingsFilterIT;
            this.toolTip.SetToolTip(this.filterITCharsRadioButton, Resources.SettingsFilterITTT);
            this.filterTQCharsRadioButton.Text = Resources.SettingsFilterTQ;
            this.toolTip.SetToolTip(this.filterTQCharsRadioButton, Resources.SettingsFilterTQTT);
            this.enableCustomMapsCheckBox.Text = Resources.SettingsEnableMod;
            this.toolTip.SetToolTip(this.enableCustomMapsCheckBox, Resources.SettingsEnableModTT);
            this.skipTitleCheckBox.Text = Resources.SettingsSkipTitle;
            this.toolTip.SetToolTip(this.skipTitleCheckBox, Resources.SettingsSkipTitleTT);
            this.allowItemCopyCheckBox.Text = Resources.SettingsAllowCopy;
            this.toolTip.SetToolTip(this.allowItemCopyCheckBox, Resources.SettingsAllowCopyTT);
            this.allowItemEditCheckBox.Text = Resources.SettingsAllowEdit;
            this.toolTip.SetToolTip(this.allowItemEditCheckBox, Resources.SettingsAllowEditTT);
            this.loadLastCharacterCheckBox.Text = Resources.SettingsLoadChar;
            this.toolTip.SetToolTip(this.loadLastCharacterCheckBox, Resources.SettingsLoadCharTT);
            this.loadLastVaultCheckBox.Text = Resources.SettingsLoadVault;
            this.toolTip.SetToolTip(this.loadLastVaultCheckBox, Resources.SettingsLoadVaultTT);
            this.loadAllFilesCheckBox.Text = Resources.SettingsPreLoad;
            this.toolTip.SetToolTip(this.loadAllFilesCheckBox, Resources.SettingsPreLoadTT);
            this.suppressWarningsCheckBox.Text = Resources.SettingsNoWarning;
            this.toolTip.SetToolTip(this.suppressWarningsCheckBox, Resources.SettingsNoWarningTT);
            this.checkForUpdatesCheckBox.Text = Resources.SettingsAutoUpdate;
            this.toolTip.SetToolTip(this.checkForUpdatesCheckBox, Resources.SettingsAutoUpdateTT);
            this.resetButton.Text = Resources.SettingsReset;
            this.toolTip.SetToolTip(this.resetButton, Resources.SettingsResetTT);
            this.checkNowButton.Text = Resources.SettingsForceCheck;
            this.toolTip.SetToolTip(this.checkNowButton, Resources.SettingsForceCheckTT);
            this.enableNewUICheckBox.Text = Resources.SettingsEnableNewUI;
            this.toolTip.SetToolTip(this.enableNewUICheckBox, Resources.SettingsEnableNewUITT);
            this.cancelButton.Text = Resources.GlobalCancel;
            this.okayButton.Text   = Resources.GlobalOK;
            this.Text = Resources.SettingsTitle;

            if (Settings.Default.EnableNewUI)
            {
                this.DrawCustomBorder = true;
            }
            else
            {
                this.Revert(new Size(713, 399));
            }

            this.mapListComboBox.Items.Clear();
            this.mapListComboBox.Items.Add(string.Empty);

            string[] maps = TQData.GetCustomMapList(TQData.IsITInstalled);

            if (maps != null && maps.Length > 0)
            {
                this.mapListComboBox.Items.AddRange(maps);
            }
        }