コード例 #1
0
ファイル: frmConfigure.cs プロジェクト: wuhuolong/OpenMB
        private void ConfigFrm_Load(object sender, EventArgs e)
        {
            controller.Init();
            LocateSystem.Singleton.InitLocateSystem(controller.CurrentLoacte);// Init Locate System
            controller.InitLocates();

            if (controller.CurrentLoacte != LOCATE.invalid)
            {
                cmbLanguageSelect.SelectedIndex = LocateSystem.Singleton.CovertLocateInfoToIndex(controller.CurrentLoacte);

                tbRenderOpt.TabPages[0].Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_graphic");
                tbRenderOpt.TabPages[1].Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_audio");
                tbRenderOpt.TabPages[2].Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_game");

                lblRenderSys.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_rendersystem");
                lblCOO.Text       = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_click_on_options");
                lblLang.Text      = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_language");

                chkEnableSound.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_enable_sound");
                chkEnableMusic.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_enable_music");

                gbLocalization.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_localization");
                gbRenderOpt.Text    = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_render_options");
                gbMusicSound.Text   = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_music_sound");
                gbAdvanced.Text     = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_advanced_options");

                btnOK.Text     = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_ok");
                btnCancel.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_cancel");

                chkEnableEditMode.Text = LocateSystem.Singleton.GetLocalizedString(LocateFileType.GameUI, "ui_is_enable_edit_mode");
            }
        }
コード例 #2
0
ファイル: frmConfigure.cs プロジェクト: lennyhans/OpenMB
        private void ConfigFrm_Load(object sender, EventArgs e)
        {
            controller.Init();
            LocateSystem.Instance.InitLocateSystem(controller.CurrentLoacte);            // Init Locate System
            controller.InitLocates();

            if (controller.CurrentLoacte != LOCATE.invalid)
            {
                cmbLanguageSelect.SelectedIndex = LocateSystem.Instance.CovertLocateInfoToIndex(controller.CurrentLoacte);

                tpGraphic.Text  = "ui_graphic".ToUILocalizedString();
                tpResource.Text = "ui_resource".ToUILocalizedString();
                tpAudio.Text    = "ui_audio".ToUILocalizedString();
                tpGame.Text     = "ui_game".ToUILocalizedString();

                lblRenderSys.Text = "ui_rendersystem".ToUILocalizedString();
                lblCOO.Text       = "ui_click_on_options".ToUILocalizedString();
                lblLang.Text      = "ui_language".ToUILocalizedString();

                chkEnableSound.Text = "ui_enable_sound".ToUILocalizedString();
                chkEnableMusic.Text = "ui_enable_music".ToUILocalizedString();

                groupFileSystem.Text = "ui_filesystem".ToUILocalizedString();
                groupZip.Text        = "ui_zip".ToUILocalizedString();
                gbLocalization.Text  = "ui_localization".ToUILocalizedString();
                gbRenderOpt.Text     = "ui_render_options".ToUILocalizedString();
                gbMusicSound.Text    = "ui_music_sound".ToUILocalizedString();
                gbAdvanced.Text      = "ui_advanced_options".ToUILocalizedString();

                btnAddFileSystemResourceLoc.Text    = "ui_add".ToUILocalizedString();
                btnModifyFileSystemResourceLoc.Text = "ui_modify".ToUILocalizedString();
                btnDeleteFileSystemResourceLoc.Text = "ui_delete".ToUILocalizedString();
                btnAddZipResourceLoc.Text           = "ui_add".ToUILocalizedString();
                btnModifyZipResourceLoc.Text        = "ui_modify".ToUILocalizedString();
                btnDeleteZipResourceLoc.Text        = "ui_delete".ToUILocalizedString();
                btnOK.Text     = "ui_ok".ToUILocalizedString();
                btnCancel.Text = "ui_cancel".ToUILocalizedString();

                chkEnableEditMode.Text  = "ui_is_enable_edit_mode".ToUILocalizedString();
                chkEnableCheatMode.Text = "ui_is_enable_cheat_mode".ToUILocalizedString();
            }
        }