From 3b8d4e9657ae3a15add41d51f96f4eb230e6f7cc Mon Sep 17 00:00:00 2001 From: RainbowMage Date: Sat, 13 Dec 2014 18:47:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=82=B9=E3=83=86=E3=83=A0=E3=81=AE?= =?UTF-8?q?=E8=A8=80=E8=AA=9E=E3=81=AB=E5=90=88=E3=82=8F=E3=81=9B=E3=81=A6?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=82=AB=E3=83=A9=E3=82=A4=E3=82=BA=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F=EF=BC=88?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E3=81=A8=E6=97=A5=E6=9C=AC=E8=AA=9E=E3=81=AE?= =?UTF-8?q?=E3=81=BF=EF=BC=89=20Add=20function=20to=20switch=20UI=20langua?= =?UTF-8?q?ge=20according=20to=20system=20UI=20language=20(English/Japanes?= =?UTF-8?q?e)=20=E3=81=9D=E3=82=8C=E3=81=AB=E5=BF=9C=E3=81=98=E3=81=A6?= =?UTF-8?q?=E3=82=AB=E3=82=B9=E3=82=BF=E3=83=A0=E3=83=AA=E3=82=BE=E3=83=AB?= =?UTF-8?q?=E3=83=90=E3=82=92=E5=A4=89=E6=9B=B4=EF=BC=88OverlayPlugin.reso?= =?UTF-8?q?urces.dll=20=E3=82=92=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=81=BE?= =?UTF-8?q?=E3=81=9B=E3=82=8B=E5=BF=85=E8=A6=81=E3=81=8C=E3=81=82=E3=82=8B?= =?UTF-8?q?=E3=81=9F=E3=82=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OverlayPlugin/ControlPanel.Designer.cs | 593 ++++------- OverlayPlugin/ControlPanel.cs | 13 +- OverlayPlugin/ControlPanel.ja-JP.resx | 174 +++ OverlayPlugin/ControlPanel.resx | 1359 ++++++++++++++++++++++++ OverlayPlugin/Localization.cs | 114 ++ OverlayPlugin/OverlayBase.cs | 1 + OverlayPlugin/OverlayPlugin.csproj | 4 + OverlayPlugin/PluginMain.cs | 130 +-- 8 files changed, 1909 insertions(+), 479 deletions(-) create mode 100644 OverlayPlugin/ControlPanel.ja-JP.resx create mode 100644 OverlayPlugin/Localization.cs diff --git a/OverlayPlugin/ControlPanel.Designer.cs b/OverlayPlugin/ControlPanel.Designer.cs index e06582d83..2926a60e6 100644 --- a/OverlayPlugin/ControlPanel.Designer.cs +++ b/OverlayPlugin/ControlPanel.Designer.cs @@ -29,8 +29,13 @@ protected override void Dispose(bool disposing) private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ControlPanel)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.label13 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.textMiniParseSortKey = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); @@ -40,19 +45,19 @@ private void InitializeComponent() this.checkMiniParseVisible = new System.Windows.Forms.CheckBox(); this.checkMiniParseClickthru = new System.Windows.Forms.CheckBox(); this.panel1 = new System.Windows.Forms.Panel(); - this.buttonMiniParseCopyActXiv = new System.Windows.Forms.Button(); + this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.buttonMiniParseReloadBrowser = new System.Windows.Forms.Button(); + this.buttonMiniParseCopyActXiv = new System.Windows.Forms.Button(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.textMiniParseUrl = new System.Windows.Forms.TextBox(); this.buttonMiniParseSelectFile = new System.Windows.Forms.Button(); this.comboMiniParseSortType = new System.Windows.Forms.ComboBox(); - this.contextMenuLogList = new System.Windows.Forms.ContextMenuStrip(this.components); - this.menuLogCopy = new System.Windows.Forms.ToolStripMenuItem(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); + this.nudMiniParseMaxFrameRate = new System.Windows.Forms.NumericUpDown(); this.tabPage2 = new System.Windows.Forms.TabPage(); - this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); + this.label12 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.nudSpellTimerMaxFrameRate = new System.Windows.Forms.NumericUpDown(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.label10 = new System.Windows.Forms.Label(); @@ -65,47 +70,41 @@ private void InitializeComponent() this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); this.textSpellTimerUrl = new System.Windows.Forms.TextBox(); this.buttonSpellTimerSelectFile = new System.Windows.Forms.Button(); - this.label6 = new System.Windows.Forms.Label(); - this.nudMiniParseMaxFrameRate = new System.Windows.Forms.NumericUpDown(); - this.label7 = new System.Windows.Forms.Label(); - this.nudSpellTimerMaxFrameRate = new System.Windows.Forms.NumericUpDown(); - this.label12 = new System.Windows.Forms.Label(); - this.label13 = new System.Windows.Forms.Label(); this.listViewLog = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.contextMenuLogList = new System.Windows.Forms.ContextMenuStrip(this.components); + this.menuCopyLogAll = new System.Windows.Forms.ToolStripMenuItem(); + this.menuLogCopy = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator(); this.menuFollowLatestLog = new System.Windows.Forms.ToolStripMenuItem(); - this.menuClearLog = new System.Windows.Forms.ToolStripMenuItem(); - this.menuCopyLogAll = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator(); + this.menuClearLog = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); + this.tabControl1.SuspendLayout(); + this.tabPage1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.panel1.SuspendLayout(); + this.tableLayoutPanel3.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); - this.contextMenuLogList.SuspendLayout(); - this.tabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.nudMiniParseMaxFrameRate)).BeginInit(); this.tabPage2.SuspendLayout(); - this.tableLayoutPanel3.SuspendLayout(); this.tableLayoutPanel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.nudSpellTimerMaxFrameRate)).BeginInit(); this.panel2.SuspendLayout(); this.tableLayoutPanel5.SuspendLayout(); this.tableLayoutPanel6.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudMiniParseMaxFrameRate)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudSpellTimerMaxFrameRate)).BeginInit(); + this.contextMenuLogList.SuspendLayout(); this.SuspendLayout(); // // splitContainer1 // - this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer1.Location = new System.Drawing.Point(0, 0); + resources.ApplyResources(this.splitContainer1, "splitContainer1"); this.splitContainer1.Name = "splitContainer1"; - this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer1.Panel1 // @@ -114,15 +113,25 @@ private void InitializeComponent() // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.listViewLog); - this.splitContainer1.Size = new System.Drawing.Size(602, 412); - this.splitContainer1.SplitterDistance = 276; - this.splitContainer1.TabIndex = 0; + // + // tabControl1 + // + this.tabControl1.Controls.Add(this.tabPage1); + this.tabControl1.Controls.Add(this.tabPage2); + resources.ApplyResources(this.tabControl1, "tabControl1"); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + // + // tabPage1 + // + this.tabPage1.Controls.Add(this.tableLayoutPanel1); + resources.ApplyResources(this.tabPage1, "tabPage1"); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.UseVisualStyleBackColor = true; // // tableLayoutPanel1 // - this.tableLayoutPanel1.ColumnCount = 2; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 155F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1"); this.tableLayoutPanel1.Controls.Add(this.label13, 1, 6); this.tableLayoutPanel1.Controls.Add(this.label6, 0, 5); this.tableLayoutPanel1.Controls.Add(this.label5, 0, 4); @@ -137,260 +146,148 @@ private void InitializeComponent() this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 1, 2); this.tableLayoutPanel1.Controls.Add(this.comboMiniParseSortType, 1, 4); this.tableLayoutPanel1.Controls.Add(this.nudMiniParseMaxFrameRate, 1, 5); - this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; - this.tableLayoutPanel1.RowCount = 9; - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 57F)); - this.tableLayoutPanel1.Size = new System.Drawing.Size(588, 244); - this.tableLayoutPanel1.TabIndex = 0; + // + // label13 + // + resources.ApplyResources(this.label13, "label13"); + this.label13.Name = "label13"; + // + // label6 + // + resources.ApplyResources(this.label6, "label6"); + this.label6.Name = "label6"; // // label5 // - this.label5.AutoSize = true; - this.label5.Dock = System.Windows.Forms.DockStyle.Fill; - this.label5.Location = new System.Drawing.Point(3, 88); + resources.ApplyResources(this.label5, "label5"); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(149, 22); - this.label5.TabIndex = 10; - this.label5.Text = "ソートタイプ"; - this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textMiniParseSortKey // - this.textMiniParseSortKey.Dock = System.Windows.Forms.DockStyle.Fill; - this.textMiniParseSortKey.Location = new System.Drawing.Point(156, 67); - this.textMiniParseSortKey.Margin = new System.Windows.Forms.Padding(1); + resources.ApplyResources(this.textMiniParseSortKey, "textMiniParseSortKey"); this.textMiniParseSortKey.Name = "textMiniParseSortKey"; - this.textMiniParseSortKey.Size = new System.Drawing.Size(431, 19); - this.textMiniParseSortKey.TabIndex = 9; this.textMiniParseSortKey.TextChanged += new System.EventHandler(this.textSortKey_TextChanged); // // label4 // - this.label4.AutoSize = true; - this.label4.Dock = System.Windows.Forms.DockStyle.Fill; - this.label4.Location = new System.Drawing.Point(3, 66); + resources.ApplyResources(this.label4, "label4"); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(149, 22); - this.label4.TabIndex = 8; - this.label4.Text = "ソートキー"; - this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label2 // - this.label2.AutoSize = true; - this.label2.Dock = System.Windows.Forms.DockStyle.Fill; - this.label2.Location = new System.Drawing.Point(3, 22); + resources.ApplyResources(this.label2, "label2"); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(149, 22); - this.label2.TabIndex = 0; - this.label2.Text = "クリックを透過させる"; - this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label3 // - this.label3.AutoSize = true; - this.label3.Dock = System.Windows.Forms.DockStyle.Fill; - this.label3.Location = new System.Drawing.Point(3, 0); + resources.ApplyResources(this.label3, "label3"); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(149, 22); - this.label3.TabIndex = 0; - this.label3.Text = "オーバーレイを表示する"; - this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label1 // - this.label1.AutoSize = true; - this.label1.Dock = System.Windows.Forms.DockStyle.Fill; - this.label1.Location = new System.Drawing.Point(3, 44); + resources.ApplyResources(this.label1, "label1"); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(149, 22); - this.label1.TabIndex = 0; - this.label1.Text = "表示するURL"; - this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // checkMiniParseVisible // - this.checkMiniParseVisible.AutoSize = true; - this.checkMiniParseVisible.Dock = System.Windows.Forms.DockStyle.Fill; - this.checkMiniParseVisible.Location = new System.Drawing.Point(158, 3); + resources.ApplyResources(this.checkMiniParseVisible, "checkMiniParseVisible"); this.checkMiniParseVisible.Name = "checkMiniParseVisible"; - this.checkMiniParseVisible.Size = new System.Drawing.Size(427, 16); - this.checkMiniParseVisible.TabIndex = 1; this.checkMiniParseVisible.UseVisualStyleBackColor = true; this.checkMiniParseVisible.CheckedChanged += new System.EventHandler(this.checkWindowVisible_CheckedChanged); // // checkMiniParseClickthru // - this.checkMiniParseClickthru.AutoSize = true; - this.checkMiniParseClickthru.Dock = System.Windows.Forms.DockStyle.Fill; - this.checkMiniParseClickthru.Location = new System.Drawing.Point(158, 25); + resources.ApplyResources(this.checkMiniParseClickthru, "checkMiniParseClickthru"); this.checkMiniParseClickthru.Name = "checkMiniParseClickthru"; - this.checkMiniParseClickthru.Size = new System.Drawing.Size(427, 16); - this.checkMiniParseClickthru.TabIndex = 2; this.checkMiniParseClickthru.UseVisualStyleBackColor = true; this.checkMiniParseClickthru.CheckedChanged += new System.EventHandler(this.checkMouseClickthru_CheckedChanged); // // panel1 // this.panel1.Controls.Add(this.tableLayoutPanel3); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(158, 190); + resources.ApplyResources(this.panel1, "panel1"); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(427, 51); - this.panel1.TabIndex = 4; // - // buttonMiniParseCopyActXiv + // tableLayoutPanel3 // - this.buttonMiniParseCopyActXiv.Dock = System.Windows.Forms.DockStyle.Fill; - this.buttonMiniParseCopyActXiv.Location = new System.Drawing.Point(3, 3); - this.buttonMiniParseCopyActXiv.Name = "buttonMiniParseCopyActXiv"; - this.buttonMiniParseCopyActXiv.Size = new System.Drawing.Size(207, 45); - this.buttonMiniParseCopyActXiv.TabIndex = 1; - this.buttonMiniParseCopyActXiv.Text = "ActXivをクリップボードにコピー"; - this.buttonMiniParseCopyActXiv.UseVisualStyleBackColor = true; - this.buttonMiniParseCopyActXiv.Click += new System.EventHandler(this.buttonCopyActXiv_Click); + resources.ApplyResources(this.tableLayoutPanel3, "tableLayoutPanel3"); + this.tableLayoutPanel3.Controls.Add(this.buttonMiniParseReloadBrowser, 1, 0); + this.tableLayoutPanel3.Controls.Add(this.buttonMiniParseCopyActXiv, 0, 0); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; // // buttonMiniParseReloadBrowser // - this.buttonMiniParseReloadBrowser.Dock = System.Windows.Forms.DockStyle.Fill; - this.buttonMiniParseReloadBrowser.Location = new System.Drawing.Point(216, 3); + resources.ApplyResources(this.buttonMiniParseReloadBrowser, "buttonMiniParseReloadBrowser"); this.buttonMiniParseReloadBrowser.Name = "buttonMiniParseReloadBrowser"; - this.buttonMiniParseReloadBrowser.Size = new System.Drawing.Size(208, 45); - this.buttonMiniParseReloadBrowser.TabIndex = 0; - this.buttonMiniParseReloadBrowser.Text = "ブラウザの表示をリロード"; this.buttonMiniParseReloadBrowser.UseVisualStyleBackColor = true; this.buttonMiniParseReloadBrowser.Click += new System.EventHandler(this.buttonReloadBrowser_Click); // + // buttonMiniParseCopyActXiv + // + resources.ApplyResources(this.buttonMiniParseCopyActXiv, "buttonMiniParseCopyActXiv"); + this.buttonMiniParseCopyActXiv.Name = "buttonMiniParseCopyActXiv"; + this.buttonMiniParseCopyActXiv.UseVisualStyleBackColor = true; + this.buttonMiniParseCopyActXiv.Click += new System.EventHandler(this.buttonCopyActXiv_Click); + // // tableLayoutPanel2 // - this.tableLayoutPanel2.ColumnCount = 2; - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 37F)); + resources.ApplyResources(this.tableLayoutPanel2, "tableLayoutPanel2"); this.tableLayoutPanel2.Controls.Add(this.textMiniParseUrl, 0, 0); this.tableLayoutPanel2.Controls.Add(this.buttonMiniParseSelectFile, 1, 0); - this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel2.Location = new System.Drawing.Point(156, 45); - this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(1); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; - this.tableLayoutPanel2.RowCount = 1; - this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel2.Size = new System.Drawing.Size(431, 20); - this.tableLayoutPanel2.TabIndex = 5; // // textMiniParseUrl // - this.textMiniParseUrl.Dock = System.Windows.Forms.DockStyle.Fill; - this.textMiniParseUrl.Location = new System.Drawing.Point(0, 0); - this.textMiniParseUrl.Margin = new System.Windows.Forms.Padding(0); + resources.ApplyResources(this.textMiniParseUrl, "textMiniParseUrl"); this.textMiniParseUrl.Name = "textMiniParseUrl"; - this.textMiniParseUrl.Size = new System.Drawing.Size(394, 19); - this.textMiniParseUrl.TabIndex = 3; this.textMiniParseUrl.TextChanged += new System.EventHandler(this.textUrl_TextChanged); // // buttonMiniParseSelectFile // - this.buttonMiniParseSelectFile.Location = new System.Drawing.Point(394, 0); - this.buttonMiniParseSelectFile.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1); + resources.ApplyResources(this.buttonMiniParseSelectFile, "buttonMiniParseSelectFile"); this.buttonMiniParseSelectFile.Name = "buttonMiniParseSelectFile"; - this.buttonMiniParseSelectFile.Size = new System.Drawing.Size(37, 19); - this.buttonMiniParseSelectFile.TabIndex = 4; - this.buttonMiniParseSelectFile.Text = "..."; this.buttonMiniParseSelectFile.UseVisualStyleBackColor = true; this.buttonMiniParseSelectFile.Click += new System.EventHandler(this.buttonSelectFile_Click); // // comboMiniParseSortType // - this.comboMiniParseSortType.Dock = System.Windows.Forms.DockStyle.Fill; + resources.ApplyResources(this.comboMiniParseSortType, "comboMiniParseSortType"); this.comboMiniParseSortType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMiniParseSortType.FormattingEnabled = true; - this.comboMiniParseSortType.Location = new System.Drawing.Point(156, 89); - this.comboMiniParseSortType.Margin = new System.Windows.Forms.Padding(1); this.comboMiniParseSortType.Name = "comboMiniParseSortType"; - this.comboMiniParseSortType.Size = new System.Drawing.Size(431, 20); - this.comboMiniParseSortType.TabIndex = 11; - // - // contextMenuLogList - // - this.contextMenuLogList.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.menuCopyLogAll, - this.menuLogCopy, - this.toolStripMenuItem1, - this.menuFollowLatestLog, - this.toolStripMenuItem2, - this.menuClearLog}); - this.contextMenuLogList.Name = "contextMenuLogList"; - this.contextMenuLogList.Size = new System.Drawing.Size(181, 104); - // - // menuLogCopy - // - this.menuLogCopy.Name = "menuLogCopy"; - this.menuLogCopy.Size = new System.Drawing.Size(180, 22); - this.menuLogCopy.Text = "選択した項目をコピー"; - this.menuLogCopy.Click += new System.EventHandler(this.menuLogCopy_Click); - // - // tabControl1 - // - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(602, 276); - this.tabControl1.TabIndex = 2; // - // tabPage1 + // nudMiniParseMaxFrameRate // - this.tabPage1.Controls.Add(this.tableLayoutPanel1); - this.tabPage1.Location = new System.Drawing.Point(4, 22); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(594, 250); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "ミニパース"; - this.tabPage1.UseVisualStyleBackColor = true; + resources.ApplyResources(this.nudMiniParseMaxFrameRate, "nudMiniParseMaxFrameRate"); + this.nudMiniParseMaxFrameRate.Maximum = new decimal(new int[] { + 60, + 0, + 0, + 0}); + this.nudMiniParseMaxFrameRate.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudMiniParseMaxFrameRate.Name = "nudMiniParseMaxFrameRate"; + this.nudMiniParseMaxFrameRate.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudMiniParseMaxFrameRate.ValueChanged += new System.EventHandler(this.nudMiniParseMaxFrameRate_ValueChanged); // // tabPage2 // this.tabPage2.Controls.Add(this.tableLayoutPanel4); - this.tabPage2.Location = new System.Drawing.Point(4, 22); + resources.ApplyResources(this.tabPage2, "tabPage2"); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(594, 250); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "スペルタイマー"; this.tabPage2.UseVisualStyleBackColor = true; // - // tableLayoutPanel3 - // - this.tableLayoutPanel3.ColumnCount = 2; - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel3.Controls.Add(this.buttonMiniParseReloadBrowser, 1, 0); - this.tableLayoutPanel3.Controls.Add(this.buttonMiniParseCopyActXiv, 0, 0); - this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); - this.tableLayoutPanel3.Name = "tableLayoutPanel3"; - this.tableLayoutPanel3.RowCount = 1; - this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel3.Size = new System.Drawing.Size(427, 51); - this.tableLayoutPanel3.TabIndex = 0; - // // tableLayoutPanel4 // - this.tableLayoutPanel4.ColumnCount = 2; - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 155F)); - this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4"); this.tableLayoutPanel4.Controls.Add(this.label12, 1, 4); this.tableLayoutPanel4.Controls.Add(this.label7, 0, 3); this.tableLayoutPanel4.Controls.Add(this.nudSpellTimerMaxFrameRate, 1, 3); @@ -401,253 +298,115 @@ private void InitializeComponent() this.tableLayoutPanel4.Controls.Add(this.checkSpellTimerClickThru, 1, 1); this.tableLayoutPanel4.Controls.Add(this.panel2, 1, 7); this.tableLayoutPanel4.Controls.Add(this.tableLayoutPanel6, 1, 2); - this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel4.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel4.Name = "tableLayoutPanel4"; - this.tableLayoutPanel4.RowCount = 8; - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 57F)); - this.tableLayoutPanel4.Size = new System.Drawing.Size(588, 244); - this.tableLayoutPanel4.TabIndex = 1; + // + // label12 + // + resources.ApplyResources(this.label12, "label12"); + this.label12.Name = "label12"; + // + // label7 + // + resources.ApplyResources(this.label7, "label7"); + this.label7.Name = "label7"; + // + // nudSpellTimerMaxFrameRate + // + resources.ApplyResources(this.nudSpellTimerMaxFrameRate, "nudSpellTimerMaxFrameRate"); + this.nudSpellTimerMaxFrameRate.Maximum = new decimal(new int[] { + 60, + 0, + 0, + 0}); + this.nudSpellTimerMaxFrameRate.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudSpellTimerMaxFrameRate.Name = "nudSpellTimerMaxFrameRate"; + this.nudSpellTimerMaxFrameRate.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.nudSpellTimerMaxFrameRate.ValueChanged += new System.EventHandler(this.nudSpellTimerMaxFrameRate_ValueChanged); // // label8 // - this.label8.AutoSize = true; - this.label8.Dock = System.Windows.Forms.DockStyle.Fill; - this.label8.Location = new System.Drawing.Point(3, 22); + resources.ApplyResources(this.label8, "label8"); this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(149, 22); - this.label8.TabIndex = 0; - this.label8.Text = "クリックを透過させる"; - this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label9 // - this.label9.AutoSize = true; - this.label9.Dock = System.Windows.Forms.DockStyle.Fill; - this.label9.Location = new System.Drawing.Point(3, 0); + resources.ApplyResources(this.label9, "label9"); this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(149, 22); - this.label9.TabIndex = 0; - this.label9.Text = "オーバーレイを表示する"; - this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label10 // - this.label10.AutoSize = true; - this.label10.Dock = System.Windows.Forms.DockStyle.Fill; - this.label10.Location = new System.Drawing.Point(3, 44); + resources.ApplyResources(this.label10, "label10"); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(149, 22); - this.label10.TabIndex = 0; - this.label10.Text = "表示するURL"; - this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // checkSpellTimerVisible // - this.checkSpellTimerVisible.AutoSize = true; - this.checkSpellTimerVisible.Dock = System.Windows.Forms.DockStyle.Fill; - this.checkSpellTimerVisible.Location = new System.Drawing.Point(158, 3); + resources.ApplyResources(this.checkSpellTimerVisible, "checkSpellTimerVisible"); this.checkSpellTimerVisible.Name = "checkSpellTimerVisible"; - this.checkSpellTimerVisible.Size = new System.Drawing.Size(427, 16); - this.checkSpellTimerVisible.TabIndex = 1; this.checkSpellTimerVisible.UseVisualStyleBackColor = true; this.checkSpellTimerVisible.CheckedChanged += new System.EventHandler(this.checkSpellTimerVisible_CheckedChanged); // // checkSpellTimerClickThru // - this.checkSpellTimerClickThru.AutoSize = true; - this.checkSpellTimerClickThru.Dock = System.Windows.Forms.DockStyle.Fill; - this.checkSpellTimerClickThru.Location = new System.Drawing.Point(158, 25); + resources.ApplyResources(this.checkSpellTimerClickThru, "checkSpellTimerClickThru"); this.checkSpellTimerClickThru.Name = "checkSpellTimerClickThru"; - this.checkSpellTimerClickThru.Size = new System.Drawing.Size(427, 16); - this.checkSpellTimerClickThru.TabIndex = 2; this.checkSpellTimerClickThru.UseVisualStyleBackColor = true; this.checkSpellTimerClickThru.CheckedChanged += new System.EventHandler(this.checkSpellTimerClickThru_CheckedChanged); // // panel2 // this.panel2.Controls.Add(this.tableLayoutPanel5); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(158, 190); + resources.ApplyResources(this.panel2, "panel2"); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(427, 51); - this.panel2.TabIndex = 4; // // tableLayoutPanel5 // - this.tableLayoutPanel5.ColumnCount = 2; - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + resources.ApplyResources(this.tableLayoutPanel5, "tableLayoutPanel5"); this.tableLayoutPanel5.Controls.Add(this.buttonSpellTimerReloadBrowser, 1, 0); this.tableLayoutPanel5.Controls.Add(this.buttonSpellTimerCopyActXiv, 0, 0); - this.tableLayoutPanel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel5.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel5.Name = "tableLayoutPanel5"; - this.tableLayoutPanel5.RowCount = 1; - this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel5.Size = new System.Drawing.Size(427, 51); - this.tableLayoutPanel5.TabIndex = 0; // // buttonSpellTimerReloadBrowser // - this.buttonSpellTimerReloadBrowser.Dock = System.Windows.Forms.DockStyle.Fill; - this.buttonSpellTimerReloadBrowser.Location = new System.Drawing.Point(216, 3); + resources.ApplyResources(this.buttonSpellTimerReloadBrowser, "buttonSpellTimerReloadBrowser"); this.buttonSpellTimerReloadBrowser.Name = "buttonSpellTimerReloadBrowser"; - this.buttonSpellTimerReloadBrowser.Size = new System.Drawing.Size(208, 45); - this.buttonSpellTimerReloadBrowser.TabIndex = 0; - this.buttonSpellTimerReloadBrowser.Text = "ブラウザの表示をリロード"; this.buttonSpellTimerReloadBrowser.UseVisualStyleBackColor = true; this.buttonSpellTimerReloadBrowser.Click += new System.EventHandler(this.buttonSpellTimerReloadBrowser_Click); // // buttonSpellTimerCopyActXiv // - this.buttonSpellTimerCopyActXiv.Dock = System.Windows.Forms.DockStyle.Fill; - this.buttonSpellTimerCopyActXiv.Location = new System.Drawing.Point(3, 3); + resources.ApplyResources(this.buttonSpellTimerCopyActXiv, "buttonSpellTimerCopyActXiv"); this.buttonSpellTimerCopyActXiv.Name = "buttonSpellTimerCopyActXiv"; - this.buttonSpellTimerCopyActXiv.Size = new System.Drawing.Size(207, 45); - this.buttonSpellTimerCopyActXiv.TabIndex = 1; - this.buttonSpellTimerCopyActXiv.Text = "ActXivをクリップボードにコピー"; this.buttonSpellTimerCopyActXiv.UseVisualStyleBackColor = true; this.buttonSpellTimerCopyActXiv.Click += new System.EventHandler(this.buttonSpellTimerCopyActXiv_Click); // // tableLayoutPanel6 // - this.tableLayoutPanel6.ColumnCount = 2; - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 37F)); + resources.ApplyResources(this.tableLayoutPanel6, "tableLayoutPanel6"); this.tableLayoutPanel6.Controls.Add(this.textSpellTimerUrl, 0, 0); this.tableLayoutPanel6.Controls.Add(this.buttonSpellTimerSelectFile, 1, 0); - this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel6.Location = new System.Drawing.Point(156, 45); - this.tableLayoutPanel6.Margin = new System.Windows.Forms.Padding(1); this.tableLayoutPanel6.Name = "tableLayoutPanel6"; - this.tableLayoutPanel6.RowCount = 1; - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel6.Size = new System.Drawing.Size(431, 20); - this.tableLayoutPanel6.TabIndex = 5; // // textSpellTimerUrl // - this.textSpellTimerUrl.Dock = System.Windows.Forms.DockStyle.Fill; - this.textSpellTimerUrl.Location = new System.Drawing.Point(0, 0); - this.textSpellTimerUrl.Margin = new System.Windows.Forms.Padding(0); + resources.ApplyResources(this.textSpellTimerUrl, "textSpellTimerUrl"); this.textSpellTimerUrl.Name = "textSpellTimerUrl"; - this.textSpellTimerUrl.Size = new System.Drawing.Size(394, 19); - this.textSpellTimerUrl.TabIndex = 3; this.textSpellTimerUrl.TextChanged += new System.EventHandler(this.textSpellTimerUrl_TextChanged); // // buttonSpellTimerSelectFile // - this.buttonSpellTimerSelectFile.Location = new System.Drawing.Point(394, 0); - this.buttonSpellTimerSelectFile.Margin = new System.Windows.Forms.Padding(0, 0, 0, 1); + resources.ApplyResources(this.buttonSpellTimerSelectFile, "buttonSpellTimerSelectFile"); this.buttonSpellTimerSelectFile.Name = "buttonSpellTimerSelectFile"; - this.buttonSpellTimerSelectFile.Size = new System.Drawing.Size(37, 19); - this.buttonSpellTimerSelectFile.TabIndex = 4; - this.buttonSpellTimerSelectFile.Text = "..."; this.buttonSpellTimerSelectFile.UseVisualStyleBackColor = true; this.buttonSpellTimerSelectFile.Click += new System.EventHandler(this.buttonSpellTimerSelectFile_Click); // - // label6 - // - this.label6.AutoSize = true; - this.label6.Dock = System.Windows.Forms.DockStyle.Fill; - this.label6.Location = new System.Drawing.Point(3, 110); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(149, 22); - this.label6.TabIndex = 12; - this.label6.Text = "最大フレームレート"; - this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // nudMiniParseMaxFrameRate - // - this.nudMiniParseMaxFrameRate.Dock = System.Windows.Forms.DockStyle.Fill; - this.nudMiniParseMaxFrameRate.Location = new System.Drawing.Point(156, 111); - this.nudMiniParseMaxFrameRate.Margin = new System.Windows.Forms.Padding(1); - this.nudMiniParseMaxFrameRate.Maximum = new decimal(new int[] { - 60, - 0, - 0, - 0}); - this.nudMiniParseMaxFrameRate.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudMiniParseMaxFrameRate.Name = "nudMiniParseMaxFrameRate"; - this.nudMiniParseMaxFrameRate.Size = new System.Drawing.Size(431, 19); - this.nudMiniParseMaxFrameRate.TabIndex = 13; - this.nudMiniParseMaxFrameRate.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudMiniParseMaxFrameRate.ValueChanged += new System.EventHandler(this.nudMiniParseMaxFrameRate_ValueChanged); - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Dock = System.Windows.Forms.DockStyle.Fill; - this.label7.Location = new System.Drawing.Point(3, 66); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(149, 22); - this.label7.TabIndex = 14; - this.label7.Text = "最大フレームレート"; - this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // nudSpellTimerMaxFrameRate - // - this.nudSpellTimerMaxFrameRate.Dock = System.Windows.Forms.DockStyle.Fill; - this.nudSpellTimerMaxFrameRate.Location = new System.Drawing.Point(156, 67); - this.nudSpellTimerMaxFrameRate.Margin = new System.Windows.Forms.Padding(1); - this.nudSpellTimerMaxFrameRate.Maximum = new decimal(new int[] { - 60, - 0, - 0, - 0}); - this.nudSpellTimerMaxFrameRate.Minimum = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudSpellTimerMaxFrameRate.Name = "nudSpellTimerMaxFrameRate"; - this.nudSpellTimerMaxFrameRate.Size = new System.Drawing.Size(431, 19); - this.nudSpellTimerMaxFrameRate.TabIndex = 15; - this.nudSpellTimerMaxFrameRate.Value = new decimal(new int[] { - 1, - 0, - 0, - 0}); - this.nudSpellTimerMaxFrameRate.ValueChanged += new System.EventHandler(this.nudSpellTimerMaxFrameRate_ValueChanged); - // - // label12 - // - this.label12.AutoSize = true; - this.label12.Dock = System.Windows.Forms.DockStyle.Fill; - this.label12.Location = new System.Drawing.Point(158, 88); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(427, 22); - this.label12.TabIndex = 17; - this.label12.Text = "※最大フレームレートの変更を有効にするためには再起動が必要です"; - this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // - // label13 - // - this.label13.AutoSize = true; - this.label13.Dock = System.Windows.Forms.DockStyle.Fill; - this.label13.Location = new System.Drawing.Point(158, 132); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(427, 22); - this.label13.TabIndex = 19; - this.label13.Text = "※最大フレームレートの変更を有効にするためには再起動が必要です"; - this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // // listViewLog // this.listViewLog.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { @@ -655,14 +414,11 @@ private void InitializeComponent() this.columnHeader2, this.columnHeader3}); this.listViewLog.ContextMenuStrip = this.contextMenuLogList; - this.listViewLog.Dock = System.Windows.Forms.DockStyle.Fill; + resources.ApplyResources(this.listViewLog, "listViewLog"); this.listViewLog.FullRowSelect = true; this.listViewLog.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; this.listViewLog.HideSelection = false; - this.listViewLog.Location = new System.Drawing.Point(0, 0); this.listViewLog.Name = "listViewLog"; - this.listViewLog.Size = new System.Drawing.Size(602, 132); - this.listViewLog.TabIndex = 0; this.listViewLog.UseCompatibleStateImageBehavior = false; this.listViewLog.View = System.Windows.Forms.View.Details; this.listViewLog.VirtualMode = true; @@ -670,79 +426,92 @@ private void InitializeComponent() // // columnHeader1 // - this.columnHeader1.Text = "Time"; + resources.ApplyResources(this.columnHeader1, "columnHeader1"); // // columnHeader2 // - this.columnHeader2.Text = "Level"; + resources.ApplyResources(this.columnHeader2, "columnHeader2"); // // columnHeader3 // - this.columnHeader3.Text = "Message"; - this.columnHeader3.Width = 451; + resources.ApplyResources(this.columnHeader3, "columnHeader3"); + // + // contextMenuLogList + // + this.contextMenuLogList.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.menuCopyLogAll, + this.menuLogCopy, + this.toolStripMenuItem1, + this.menuFollowLatestLog, + this.toolStripMenuItem2, + this.menuClearLog}); + this.contextMenuLogList.Name = "contextMenuLogList"; + resources.ApplyResources(this.contextMenuLogList, "contextMenuLogList"); + // + // menuCopyLogAll + // + this.menuCopyLogAll.Name = "menuCopyLogAll"; + resources.ApplyResources(this.menuCopyLogAll, "menuCopyLogAll"); + this.menuCopyLogAll.Click += new System.EventHandler(this.menuCopyLogAll_Click); + // + // menuLogCopy + // + this.menuLogCopy.Name = "menuLogCopy"; + resources.ApplyResources(this.menuLogCopy, "menuLogCopy"); + this.menuLogCopy.Click += new System.EventHandler(this.menuLogCopy_Click); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; - this.toolStripMenuItem1.Size = new System.Drawing.Size(177, 6); + resources.ApplyResources(this.toolStripMenuItem1, "toolStripMenuItem1"); // // menuFollowLatestLog // this.menuFollowLatestLog.CheckOnClick = true; this.menuFollowLatestLog.Name = "menuFollowLatestLog"; - this.menuFollowLatestLog.Size = new System.Drawing.Size(180, 22); - this.menuFollowLatestLog.Text = "常に最新のログを追跡"; + resources.ApplyResources(this.menuFollowLatestLog, "menuFollowLatestLog"); this.menuFollowLatestLog.Click += new System.EventHandler(this.menuFollowLatestLog_Click); // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + resources.ApplyResources(this.toolStripMenuItem2, "toolStripMenuItem2"); + // // menuClearLog // this.menuClearLog.Name = "menuClearLog"; - this.menuClearLog.Size = new System.Drawing.Size(180, 22); - this.menuClearLog.Text = "ログをクリア"; + resources.ApplyResources(this.menuClearLog, "menuClearLog"); this.menuClearLog.Click += new System.EventHandler(this.menuClearLog_Click); // - // menuCopyLogAll - // - this.menuCopyLogAll.Name = "menuCopyLogAll"; - this.menuCopyLogAll.Size = new System.Drawing.Size(180, 22); - this.menuCopyLogAll.Text = "全てのログをコピー"; - this.menuCopyLogAll.Click += new System.EventHandler(this.menuCopyLogAll_Click); - // - // toolStripMenuItem2 - // - this.toolStripMenuItem2.Name = "toolStripMenuItem2"; - this.toolStripMenuItem2.Size = new System.Drawing.Size(177, 6); - // // ControlPanel // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Transparent; this.Controls.Add(this.splitContainer1); this.Name = "ControlPanel"; - this.Size = new System.Drawing.Size(602, 412); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); + this.tabControl1.ResumeLayout(false); + this.tabPage1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.panel1.ResumeLayout(false); + this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.PerformLayout(); - this.contextMenuLogList.ResumeLayout(false); - this.tabControl1.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.nudMiniParseMaxFrameRate)).EndInit(); this.tabPage2.ResumeLayout(false); - this.tableLayoutPanel3.ResumeLayout(false); this.tableLayoutPanel4.ResumeLayout(false); this.tableLayoutPanel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.nudSpellTimerMaxFrameRate)).EndInit(); this.panel2.ResumeLayout(false); this.tableLayoutPanel5.ResumeLayout(false); this.tableLayoutPanel6.ResumeLayout(false); this.tableLayoutPanel6.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.nudMiniParseMaxFrameRate)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.nudSpellTimerMaxFrameRate)).EndInit(); + this.contextMenuLogList.ResumeLayout(false); this.ResumeLayout(false); } diff --git a/OverlayPlugin/ControlPanel.cs b/OverlayPlugin/ControlPanel.cs index e8f3fd2f4..77e7c1de7 100644 --- a/OverlayPlugin/ControlPanel.cs +++ b/OverlayPlugin/ControlPanel.cs @@ -7,6 +7,8 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Globalization; +using System.Threading; namespace RainbowMage.OverlayPlugin { @@ -17,11 +19,11 @@ public partial class ControlPanel : UserControl static readonly List> sortTypeDict = new List>() { - new KeyValuePair("ソートしない", MiniParseSortType.None), - new KeyValuePair("文字列 - 昇順", MiniParseSortType.StringAscending), - new KeyValuePair("文字列 - 降順", MiniParseSortType.StringDescending), - new KeyValuePair("数値 - 昇順", MiniParseSortType.NumericAscending), - new KeyValuePair("数値 - 降順", MiniParseSortType.NumericDescending) + new KeyValuePair(Localization.GetText(TextItem.DoNotSort), MiniParseSortType.None), + new KeyValuePair(Localization.GetText(TextItem.SortStringAscending), MiniParseSortType.StringAscending), + new KeyValuePair(Localization.GetText(TextItem.SortStringDescending), MiniParseSortType.StringDescending), + new KeyValuePair(Localization.GetText(TextItem.SortNumberAscending), MiniParseSortType.NumericAscending), + new KeyValuePair(Localization.GetText(TextItem.SortNumberDescending), MiniParseSortType.NumericDescending) }; public ControlPanel(PluginMain pluginMain, PluginConfig config) @@ -51,7 +53,6 @@ public ControlPanel(PluginMain pluginMain, PluginConfig config) }; } - private void SetupMiniParseTab() { this.checkMiniParseVisible.Checked = config.MiniParseOverlay.IsVisible; diff --git a/OverlayPlugin/ControlPanel.ja-JP.resx b/OverlayPlugin/ControlPanel.ja-JP.resx new file mode 100644 index 000000000..36aa46730 --- /dev/null +++ b/OverlayPlugin/ControlPanel.ja-JP.resx @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ※最大フレームレートの変更を有効にするためにはプラグインの再起動が必要です + + + 最大フレームレート + + + ソートタイプ + + + ソートキー + + + クリックを透過させる + + + オーバーレイを表示する + + + 表示するURL + + + オーバーレイの表示をリロード + + + ActXiv変数をクリップボードにコピー + + + ミニパース + + + ※最大フレームレートの変更を有効にするためにはプラグインの再起動が必要です + + + 最大フレームレート + + + クリックを透過させる + + + オーバーレイを表示する + + + 表示するURL + + + オーバーレイの表示をリロード + + + ActXiv変数をクリップボードにコピー + + + スペルタイマー + + \ No newline at end of file diff --git a/OverlayPlugin/ControlPanel.resx b/OverlayPlugin/ControlPanel.resx index 5267bce0c..423f97bd0 100644 --- a/OverlayPlugin/ControlPanel.resx +++ b/OverlayPlugin/ControlPanel.resx @@ -117,7 +117,1366 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fill + + + + 0, 0 + + + Horizontal + + + + 2 + + + True + + + Fill + + + 158, 132 + + + 427, 22 + + + 19 + + + ※You need to restart this plugin to apply this framerate setting. + + + MiddleLeft + + + label13 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 0 + + + True + + + Fill + + + 3, 110 + + + 149, 22 + + + 12 + + + Max. framerate + + + MiddleLeft + + + label6 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 1 + + + True + + + Fill + + + 3, 88 + + + 149, 22 + + + 10 + + + Sort type + + + MiddleLeft + + + label5 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 2 + + + Fill + + + 156, 67 + + + 1, 1, 1, 1 + + + 431, 19 + + + 9 + + + textMiniParseSortKey + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 3 + + + True + + + Fill + + + 3, 66 + + + 149, 22 + + + 8 + + + Sort key + + + MiddleLeft + + + label4 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 4 + + + True + + + Fill + + + 3, 22 + + + 149, 22 + + + 0 + + + Enable clickthru + + + MiddleLeft + + + label2 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 5 + + + True + + + Fill + + + 3, 0 + + + 149, 22 + + + 0 + + + Show overlay + + + MiddleLeft + + + label3 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 6 + + + True + + + Fill + + + 3, 44 + + + 149, 22 + + + 0 + + + URL + + + MiddleLeft + + + label1 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 7 + + + True + + + Fill + + + 158, 3 + + + 427, 16 + + + 1 + + + checkMiniParseVisible + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 8 + + + True + + + Fill + + + 158, 25 + + + 427, 16 + + + 2 + + + checkMiniParseClickthru + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 9 + + + 2 + + + Fill + + + 216, 3 + + + 208, 45 + + + 0 + + + Reload overlay + + + buttonMiniParseReloadBrowser + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 0 + + + Fill + + + 3, 3 + + + 207, 45 + + + 1 + + + Copy the update variable to clipboard + + + buttonMiniParseCopyActXiv + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel3 + + + 1 + + + Fill + + + 0, 0 + + + 1 + + + 427, 51 + + + 0 + + + tableLayoutPanel3 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel1 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="buttonMiniParseReloadBrowser" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="buttonMiniParseCopyActXiv" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,50,Percent,50" /><Rows Styles="Percent,50" /></TableLayoutSettings> + + + Fill + + + 158, 190 + + + 427, 51 + + + 4 + + + panel1 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 10 + + + 2 + + + Fill + + + 0, 0 + + + 0, 0, 0, 0 + + + 394, 19 + + + 3 + + + textMiniParseUrl + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 0 + + + 394, 0 + + + 0, 0, 0, 1 + + + 37, 19 + + + 4 + + + ... + + + buttonMiniParseSelectFile + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel2 + + + 1 + + + Fill + + + 156, 45 + + + 1, 1, 1, 1 + + + 1 + + + 431, 20 + + + 5 + + + tableLayoutPanel2 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 11 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="textMiniParseUrl" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="buttonMiniParseSelectFile" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,37" /><Rows Styles="Percent,100" /></TableLayoutSettings> + + + Fill + + + 156, 89 + + + 1, 1, 1, 1 + + + 431, 20 + + + 11 + + + comboMiniParseSortType + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 12 + + + Fill + + + 156, 111 + + + 1, 1, 1, 1 + + + 431, 19 + + + 13 + + + nudMiniParseMaxFrameRate + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel1 + + + 13 + + + Fill + + + 3, 3 + + + 9 + + + 588, 244 + + + 0 + + + tableLayoutPanel1 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabPage1 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label13" Row="6" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label6" Row="5" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label5" Row="4" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="textMiniParseSortKey" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label4" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label2" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label3" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label1" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="checkMiniParseVisible" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="checkMiniParseClickthru" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="panel1" Row="8" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="tableLayoutPanel2" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="comboMiniParseSortType" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="nudMiniParseMaxFrameRate" Row="5" RowSpan="1" Column="1" ColumnSpan="1" /></Controls><Columns Styles="Absolute,155,Percent,100" /><Rows Styles="Absolute,22,Absolute,22,Absolute,22,Absolute,22,Absolute,22,Absolute,22,Absolute,22,Percent,100,Absolute,57" /></TableLayoutSettings> + + + 4, 22 + + + 3, 3, 3, 3 + + + 594, 250 + + + 0 + + + Mini parse + + + tabPage1 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabControl1 + + + 0 + + + 2 + + + True + + + Fill + + + 158, 88 + + + 427, 22 + + + 17 + + + ※You need to restart this plugin to apply this framerate setting. + + + MiddleLeft + + + label12 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 0 + + + True + + + Fill + + + 3, 66 + + + 149, 22 + + + 14 + + + Max. framerate + + + MiddleLeft + + + label7 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 1 + + + Fill + + + 156, 67 + + + 1, 1, 1, 1 + + + 431, 19 + + + 15 + + + nudSpellTimerMaxFrameRate + + + System.Windows.Forms.NumericUpDown, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 2 + + + True + + + Fill + + + 3, 22 + + + 149, 22 + + + 0 + + + Enable clickthru + + + MiddleLeft + + + label8 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 3 + + + True + + + Fill + + + 3, 0 + + + 149, 22 + + + 0 + + + Show overlay + + + MiddleLeft + + + label9 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 4 + + + True + + + Fill + + + 3, 44 + + + 149, 22 + + + 0 + + + URL + + + MiddleLeft + + + label10 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 5 + + + True + + + Fill + + + 158, 3 + + + 427, 16 + + + 1 + + + checkSpellTimerVisible + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 6 + + + True + + + Fill + + + 158, 25 + + + 427, 16 + + + 2 + + + checkSpellTimerClickThru + + + System.Windows.Forms.CheckBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 7 + + + 2 + + + Fill + + + 216, 3 + + + 208, 45 + + + 0 + + + Reload overlay + + + buttonSpellTimerReloadBrowser + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 0 + + + Fill + + + 3, 3 + + + 207, 45 + + + 1 + + + Copy the update variable to clipboard + + + buttonSpellTimerCopyActXiv + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel5 + + + 1 + + + Fill + + + 0, 0 + + + 1 + + + 427, 51 + + + 0 + + + tableLayoutPanel5 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + panel2 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="buttonSpellTimerReloadBrowser" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="buttonSpellTimerCopyActXiv" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /></Controls><Columns Styles="Percent,50,Percent,50" /><Rows Styles="Percent,50" /></TableLayoutSettings> + + + Fill + + + 158, 190 + + + 427, 51 + + + 4 + + + panel2 + + + System.Windows.Forms.Panel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 8 + + + 2 + + + Fill + + + 0, 0 + + + 0, 0, 0, 0 + + + 394, 19 + + + 3 + + + textSpellTimerUrl + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel6 + + + 0 + + + 394, 0 + + + 0, 0, 0, 1 + + + 37, 19 + + + 4 + + + ... + + + buttonSpellTimerSelectFile + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel6 + + + 1 + + + Fill + + + 156, 45 + + + 1, 1, 1, 1 + + + 1 + + + 431, 20 + + + 5 + + + tableLayoutPanel6 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tableLayoutPanel4 + + + 9 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="textSpellTimerUrl" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="buttonSpellTimerSelectFile" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /></Controls><Columns Styles="Percent,100,Absolute,37" /><Rows Styles="Percent,100" /></TableLayoutSettings> + + + Fill + + + 3, 3 + + + 8 + + + 588, 244 + + + 1 + + + tableLayoutPanel4 + + + System.Windows.Forms.TableLayoutPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabPage2 + + + 0 + + + <?xml version="1.0" encoding="utf-16"?><TableLayoutSettings><Controls><Control Name="label12" Row="4" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label7" Row="3" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="nudSpellTimerMaxFrameRate" Row="3" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="label8" Row="1" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label9" Row="0" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="label10" Row="2" RowSpan="1" Column="0" ColumnSpan="1" /><Control Name="checkSpellTimerVisible" Row="0" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="checkSpellTimerClickThru" Row="1" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="panel2" Row="7" RowSpan="1" Column="1" ColumnSpan="1" /><Control Name="tableLayoutPanel6" Row="2" RowSpan="1" Column="1" ColumnSpan="1" /></Controls><Columns Styles="Absolute,155,Percent,100" /><Rows Styles="Absolute,22,Absolute,22,Absolute,22,Absolute,22,Absolute,22,Absolute,22,Percent,100,Absolute,57" /></TableLayoutSettings> + + + 4, 22 + + + 3, 3, 3, 3 + + + 594, 250 + + + 1 + + + Spell timer + + + tabPage2 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabControl1 + + + 1 + + + Fill + + + 0, 0 + + + 602, 276 + + + 2 + + + tabControl1 + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + splitContainer1.Panel1 + + + 0 + + + splitContainer1.Panel1 + + + System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + splitContainer1 + + + 0 + + + Time + + + Level + + + Message + + + 451 + 17, 17 + + 182, 22 + + + Copy all logs + + + 182, 22 + + + Copy selected logs + + + 179, 6 + + + 182, 22 + + + Follow latest log + + + 179, 6 + + + 182, 22 + + + Clear logs + + + 183, 104 + + + contextMenuLogList + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fill + + + 0, 0 + + + 602, 132 + + + 0 + + + listViewLog + + + System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + splitContainer1.Panel2 + + + 0 + + + splitContainer1.Panel2 + + + System.Windows.Forms.SplitterPanel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + splitContainer1 + + + 1 + + + 602, 412 + + + 276 + + + 0 + + + splitContainer1 + + + System.Windows.Forms.SplitContainer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 1 + + + True + + + 6, 12 + + + 602, 412 + + + columnHeader1 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + columnHeader2 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + columnHeader3 + + + System.Windows.Forms.ColumnHeader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + menuCopyLogAll + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + menuLogCopy + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + toolStripMenuItem1 + + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + menuFollowLatestLog + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + toolStripMenuItem2 + + + System.Windows.Forms.ToolStripSeparator, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + menuClearLog + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ControlPanel + + + System.Windows.Forms.UserControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + \ No newline at end of file diff --git a/OverlayPlugin/Localization.cs b/OverlayPlugin/Localization.cs new file mode 100644 index 000000000..e4038a576 --- /dev/null +++ b/OverlayPlugin/Localization.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace RainbowMage.OverlayPlugin +{ + enum TextItem + { + ErrorTitle, + RequiredAssemblyFileNotFound, + RequiredAssemblyFileCannotRead, + RequiredAssemblyFileBlocked, + RequiredAssemblyFileException, + DoNotSort, + SortStringAscending, + SortStringDescending, + SortNumberAscending, + SortNumberDescending + } + + static class Localization + { + private static LocalizationDict dict; + + static Localization() + { + dict = new LocalizationDict(); + + dict[TextItem.ErrorTitle, ""] = "Error"; + dict[TextItem.ErrorTitle, "ja"] = "エラー"; + dict[TextItem.RequiredAssemblyFileNotFound, ""] = "Required assembly file {0} was not found."; + dict[TextItem.RequiredAssemblyFileNotFound, "ja"] = "アセンブリ {0} が存在しません。"; + dict[TextItem.RequiredAssemblyFileCannotRead, ""] = "Could not load required assembly file {0}."; + dict[TextItem.RequiredAssemblyFileCannotRead, "ja"] = "アセンブリ {0} は存在しますが、読み込めません。"; + dict[TextItem.RequiredAssemblyFileBlocked, ""] = "Could not load required assembly file {0} due to security reasons. It seems the file has blocked or placed on the untrusted zone (such as network drive)."; + dict[TextItem.RequiredAssemblyFileBlocked, "ja"] = "セキュリティ上の問題からアセンブリ {0} を読み込めません。アセンブリがネットワーク上にあるか、またはブロックされている可能性があります。"; + dict[TextItem.RequiredAssemblyFileException, ""] = "Exception occured when loading required assembly file {0}:\n{1}"; + dict[TextItem.RequiredAssemblyFileException, "ja"] = "アセンブリ {0}の読み込み時に例外が発生しました:\n{1}"; + + dict[TextItem.DoNotSort, ""] = "Do not sort"; + dict[TextItem.DoNotSort, "ja"] = "ソートしない"; + dict[TextItem.SortStringAscending, ""] = "String - Ascending"; + dict[TextItem.SortStringAscending, "ja"] = "文字列 - 昇順"; + dict[TextItem.SortStringDescending, ""] = "String - Descending"; + dict[TextItem.SortStringDescending, "ja"] = "文字列 - 降順"; + dict[TextItem.SortNumberAscending, ""] = "Number - Ascending"; + dict[TextItem.SortNumberAscending, "ja"] = "数値 - 昇順"; + dict[TextItem.SortNumberDescending, ""] = "Number - Descending"; + dict[TextItem.SortNumberDescending, "ja"] = "数値 - 降順"; + + } + + public static string GetText(TextItem item) + { + return dict[item, GetCurrentLocale()]; + } + + private static string GetCurrentLocale() + { + var culture = System.Globalization.CultureInfo.CurrentUICulture; + return culture.TwoLetterISOLanguageName.ToLower(); + } + } + + class LocalizationDict + { + IDictionary> dict; + + public LocalizationDict() + { + this.dict = new Dictionary>(); + } + + public string this[TextItem item, string locale] + { + get + { + if (dict.ContainsKey(item)) + { + if (dict[item].ContainsKey(locale)) + { + return dict[item][locale]; + } + else if (dict[item].ContainsKey("")) + { + return dict[item][""]; + } + else + { + throw new KeyNotFoundException(); + } + } + throw new KeyNotFoundException(); + } + set + { + if (!dict.ContainsKey(item)) + { + dict.Add(item, new Dictionary()); + } + if (!dict[item].ContainsKey(locale)) + { + dict[item].Add(locale, value); + } + else + { + dict[item][locale] = value; + } + } + } + } +} \ No newline at end of file diff --git a/OverlayPlugin/OverlayBase.cs b/OverlayPlugin/OverlayBase.cs index ed453a861..7737b9523 100644 --- a/OverlayPlugin/OverlayBase.cs +++ b/OverlayPlugin/OverlayBase.cs @@ -56,6 +56,7 @@ protected virtual void InitializeOverlay() { this.Overlay.Location = this.Config.Position; } + this.Overlay.Text = this.Name; this.Overlay.Size = this.Config.Size; this.Overlay.IsClickThru = this.Config.IsClickThru; this.Overlay.Renderer.BrowserError += (o, e) => diff --git a/OverlayPlugin/OverlayPlugin.csproj b/OverlayPlugin/OverlayPlugin.csproj index a452a5b63..c3464d8d1 100644 --- a/OverlayPlugin/OverlayPlugin.csproj +++ b/OverlayPlugin/OverlayPlugin.csproj @@ -80,6 +80,7 @@ + @@ -97,6 +98,9 @@ + + ControlPanel.cs + ControlPanel.cs diff --git a/OverlayPlugin/PluginMain.cs b/OverlayPlugin/PluginMain.cs index 5b20e10cd..9000d5743 100644 --- a/OverlayPlugin/PluginMain.cs +++ b/OverlayPlugin/PluginMain.cs @@ -10,6 +10,8 @@ using System.IO; using System.ComponentModel; using System.Diagnostics; +using System.Threading; +using System.Text.RegularExpressions; namespace RainbowMage.OverlayPlugin { @@ -40,9 +42,9 @@ public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) this.label = pluginStatusText; #if DEBUG - Log(LogLevel.Debug, "##################################"); - Log(LogLevel.Debug, " DEBUG BUILD"); - Log(LogLevel.Debug, "##################################"); + Log(LogLevel.Warning, "##################################"); + Log(LogLevel.Warning, " DEBUG BUILD"); + Log(LogLevel.Warning, "##################################"); #endif this.pluginDirectory = GetPluginDirectory(); Log(LogLevel.Info, "InitPlugin: PluginDirectory = {0}", this.pluginDirectory); @@ -81,6 +83,7 @@ public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) catch (Exception e) { Log(LogLevel.Error, "InitPlugin: {0}", e.ToString()); + MessageBox.Show(e.ToString()); throw; } @@ -99,80 +102,82 @@ public void DeInitPlugin() this.label.Text = "Finalized."; } - static readonly Dictionary assemblyTable = new Dictionary - { - { "HtmlRenderer,", "HtmlRenderer.dll" }, - { "Xilium.CefGlue,", "Xilium.CefGlue.dll" } - }; + static readonly Regex assemblyNameParser = new Regex( + @"(?.+?), Version=(?.+?), Culture=(?.+?), PublicKeyToken=(?.+)", + RegexOptions.Compiled); private Assembly CustomAssemblyResolve(object sender, ResolveEventArgs e) { Log(LogLevel.Debug, "AssemblyResolve: Resolving assembly for '{0}'...", e.Name); - Assembly result = null; - foreach (var pair in assemblyTable) + var asmPath = ""; + var match = assemblyNameParser.Match(e.Name); + if (match.Success) { - if (e.Name.StartsWith(pair.Key)) + var asmFileName = match.Groups["name"].Value + ".dll"; + if (match.Groups["culture"].Value == "neutral") + { + asmPath = Path.Combine(pluginDirectory, asmFileName); + } + else { - string asmPath = ""; - try - { - asmPath = Path.Combine(pluginDirectory, pair.Value); - result = Assembly.LoadFile(asmPath); - Log(LogLevel.Debug, "AssemblyResolve: => Found assembly in {0}.", asmPath); - break; - } - catch (FileNotFoundException ex) - { - var message = string.Format( - "必要なアセンブリ {0} が存在しません。", - asmPath - ); - Log(LogLevel.Error, "AssemblyResolve: => {0}", message); - Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); - MessageBox.Show(message, "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - catch (FileLoadException ex) - { - var message = string.Format( - "必要なアセンブリ {0} は存在しますが、読み込めません。", - asmPath - ); - Log(LogLevel.Error, "AssemblyResolve: => {0}", message); - Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); - MessageBox.Show(message, "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - catch (NotSupportedException ex) - { - var message = string.Format( - "アセンブリ {0} がネットワーク上にあるか、またはブロックされている可能性があります。", - asmPath - ); - Log(LogLevel.Error, "AssemblyResolve: => {0}", message); - Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); - MessageBox.Show(message, "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); - } - catch (Exception ex) - { - var message = string.Format( - "アセンブリ {0}の読み込み時に例外が発生しました。\n{0}", - asmPath - ); - Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); - MessageBox.Show(message, "エラー", MessageBoxButtons.OK, MessageBoxIcon.Error); - } + asmPath = Path.Combine(pluginDirectory, match.Groups["culture"].Value, asmFileName); } } + else + { + asmPath = Path.Combine(pluginDirectory, e.Name + ".dll"); + } - if (result == null) + if (File.Exists(asmPath)) { - Log(LogLevel.Debug, "AssemblyResolve: => Not found in plugin directory."); + return LoadAssembly(asmPath); } - return result; + Log(LogLevel.Debug, "AssemblyResolve: => Not found in plugin directory."); + return null; } + private Assembly LoadAssembly(string path) + { + try + { + var result = Assembly.LoadFile(path); + Log(LogLevel.Debug, "AssemblyResolve: => Found assembly in {0}.", path); + return result; + } + catch (FileLoadException ex) + { + var message = string.Format( + Localization.GetText(TextItem.RequiredAssemblyFileCannotRead), + path + ); + Log(LogLevel.Error, "AssemblyResolve: => {0}", message); + Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); + MessageBox.Show(message, Localization.GetText(TextItem.ErrorTitle), MessageBoxButtons.OK, MessageBoxIcon.Error); + } + catch (NotSupportedException ex) + { + var message = string.Format( + Localization.GetText(TextItem.RequiredAssemblyFileBlocked), + path + ); + Log(LogLevel.Error, "AssemblyResolve: => {0}", message); + Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); + MessageBox.Show(message, Localization.GetText(TextItem.ErrorTitle), MessageBoxButtons.OK, MessageBoxIcon.Error); + } + catch (Exception ex) + { + var message = string.Format( + Localization.GetText(TextItem.RequiredAssemblyFileException), + path + ); + Log(LogLevel.Error, "AssemblyResolve: => {0}", ex); + MessageBox.Show(message, Localization.GetText(TextItem.ErrorTitle), MessageBoxButtons.OK, MessageBoxIcon.Error); + } + return null; + } void oFormActMain_KeyDown(object sender, KeyEventArgs e) { @@ -265,6 +270,9 @@ internal void Log(LogLevel level, string message) return; } #endif +#if DEBUG + System.Diagnostics.Trace.WriteLine(string.Format("{0}: {1}: {2}", level, DateTime.Now, message)); +#endif this.Logs.Add(new LogEntry(level, DateTime.Now, message)); }