From 6647e5bd37958a0bd1756baa904c31631d3724af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= Date: Sat, 18 Feb 2023 16:27:22 +0800 Subject: [PATCH] Add OpenChat Ad --- Source/GrasscutterTools/Forms/FormMain.resx | 3 - .../Pages/PageAbout.Designer.cs | 10 + Source/GrasscutterTools/Pages/PageAbout.cs | 8 + .../Pages/PageAbout.en-US.resx | 3 + Source/GrasscutterTools/Pages/PageAbout.resx | 213 ++++++++++-------- .../Pages/PageAbout.ru-RU.resx | 3 + .../Pages/PageAbout.zh-TW.resx | 3 + 7 files changed, 150 insertions(+), 93 deletions(-) diff --git a/Source/GrasscutterTools/Forms/FormMain.resx b/Source/GrasscutterTools/Forms/FormMain.resx index 4dc844d..c5183a1 100644 --- a/Source/GrasscutterTools/Forms/FormMain.resx +++ b/Source/GrasscutterTools/Forms/FormMain.resx @@ -714,7 +714,4 @@ True - - zh-TW - \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageAbout.Designer.cs b/Source/GrasscutterTools/Pages/PageAbout.Designer.cs index b723389..7de9b35 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.Designer.cs +++ b/Source/GrasscutterTools/Pages/PageAbout.Designer.cs @@ -32,6 +32,7 @@ this.GrasscutterToolsSupport = new System.Windows.Forms.PictureBox(); this.LnkGithub = new System.Windows.Forms.LinkLabel(); this.LblSupportDescription = new System.Windows.Forms.Label(); + this.LnkOpenChat = new System.Windows.Forms.LinkLabel(); ((System.ComponentModel.ISupportInitialize)(this.GrasscutterToolsSupport)).BeginInit(); this.SuspendLayout(); // @@ -54,10 +55,18 @@ resources.ApplyResources(this.LblSupportDescription, "LblSupportDescription"); this.LblSupportDescription.Name = "LblSupportDescription"; // + // LnkOpenChat + // + resources.ApplyResources(this.LnkOpenChat, "LnkOpenChat"); + this.LnkOpenChat.Name = "LnkOpenChat"; + this.LnkOpenChat.TabStop = true; + this.LnkOpenChat.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LnkOpenChat_LinkClicked); + // // PageAbout // resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.LnkOpenChat); this.Controls.Add(this.GrasscutterToolsSupport); this.Controls.Add(this.LnkGithub); this.Controls.Add(this.LblSupportDescription); @@ -73,5 +82,6 @@ private System.Windows.Forms.PictureBox GrasscutterToolsSupport; private System.Windows.Forms.LinkLabel LnkGithub; private System.Windows.Forms.Label LblSupportDescription; + private System.Windows.Forms.LinkLabel LnkOpenChat; } } diff --git a/Source/GrasscutterTools/Pages/PageAbout.cs b/Source/GrasscutterTools/Pages/PageAbout.cs index be4543f..42053fa 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.cs +++ b/Source/GrasscutterTools/Pages/PageAbout.cs @@ -37,5 +37,13 @@ namespace GrasscutterTools.Pages { UIUtil.OpenURL("https://github.com/jie65535/GrasscutterCommandGenerator"); } + + /// + /// 点击查看服务器聊天插件时触发 + /// + private void LnkOpenChat_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) + { + UIUtil.OpenURL("https://github.com/jie65535/gc-openchat-plugin"); + } } } \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageAbout.en-US.resx b/Source/GrasscutterTools/Pages/PageAbout.en-US.resx index a503bee..faf3a51 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.en-US.resx +++ b/Source/GrasscutterTools/Pages/PageAbout.en-US.resx @@ -130,4 +130,7 @@ If there is a problem with the command generation, or there is a new feature request, you can file an issue on Github. + + Click to view server chat plugin + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageAbout.resx b/Source/GrasscutterTools/Pages/PageAbout.resx index 466ea6e..ed457bb 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.resx +++ b/Source/GrasscutterTools/Pages/PageAbout.resx @@ -117,89 +117,21 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Bottom, Right - - - NoControl - - - - 498, 86 - - - 280, 280 - - - 140, 140 - - - Zoom - - - - 8 - - - GrasscutterToolsSupport - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - + 0 + + 1 + + + $this + + Bottom, Left - - True - - - NoControl - - - 8, 209 - - - 46, 17 - - - 1 - - - Github - - - LnkGithub - - - System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 1 - - - True - - - NoControl - - - 8, 12 - - - 334, 136 - - - 0 + + Bottom 割草机工具箱 @@ -211,28 +143,129 @@ 欢迎加入内测Q群: 457427536 (需要回答正确答案) + + $this + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + MiddleCenter + + + NoControl + + + 7, 17 + + + 498, 86 + + + $this + + + + True + + + 1 + + + NoControl + + + PageAbout + + + 334, 136 + + + System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 198, 207 + + + Bottom, Right + + + $this + + + GrasscutterTools.Pages.BasePage, GrasscutterTools, Version=1.8.1.0, Culture=neutral, PublicKeyToken=de2b1c089621e923 + + + LnkOpenChat + LblSupportDescription + + LnkGithub + + + Github + + + 250, 20 + + + Zoom + + + 9 + + + 140, 140 + + + 8 + + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 280, 280 + + + True + + + 3 + + + 点击查看服务器聊天插件 + + + 8, 12 + + + 0 + + + 8, 209 + + + 46, 17 + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - $this + + NoControl - + + GrasscutterToolsSupport + + 2 True - - 7, 17 - - - PageAbout - - - GrasscutterTools.Pages.BasePage, GrasscutterTools, Version=1.7.4.0, Culture=neutral, PublicKeyToken=de2b1c089621e923 - + + ru-RU + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageAbout.ru-RU.resx b/Source/GrasscutterTools/Pages/PageAbout.ru-RU.resx index ac2778b..3085068 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.ru-RU.resx +++ b/Source/GrasscutterTools/Pages/PageAbout.ru-RU.resx @@ -135,4 +135,7 @@ + + [OpenChat] Плагин серверного чата + \ No newline at end of file diff --git a/Source/GrasscutterTools/Pages/PageAbout.zh-TW.resx b/Source/GrasscutterTools/Pages/PageAbout.zh-TW.resx index fc898be..ef843b7 100644 --- a/Source/GrasscutterTools/Pages/PageAbout.zh-TW.resx +++ b/Source/GrasscutterTools/Pages/PageAbout.zh-TW.resx @@ -130,4 +130,7 @@ 指令生成有問題,或者有新的功能請求,都可以來Github提出 + + 點擊查看伺服器聊天插件 + \ No newline at end of file