From 3477a49ae425d6938c2d9d6122982db53089d305 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Thu, 19 Aug 2021 15:55:25 +0000 Subject: [PATCH 1/4] Add user guide to GUI help menu --- GUI/Main/Main.Designer.cs | 10 ++++++++++ GUI/Main/Main.cs | 5 +++++ GUI/Main/Main.resx | 1 + 3 files changed, 16 insertions(+) diff --git a/GUI/Main/Main.Designer.cs b/GUI/Main/Main.Designer.cs index 17e51b02fe..9fcc69a0d9 100644 --- a/GUI/Main/Main.Designer.cs +++ b/GUI/Main/Main.Designer.cs @@ -49,6 +49,7 @@ private void InitializeComponent() this.GameCommandlineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.compatibleGameVersionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.userGuideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportClientIssueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportMetadataIssueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -262,6 +263,7 @@ private void InitializeComponent() // helpToolStripMenuItem // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.userGuideToolStripMenuItem, this.reportClientIssueToolStripMenuItem, this.reportMetadataIssueToolStripMenuItem, this.aboutToolStripMenuItem}); @@ -269,6 +271,13 @@ private void InitializeComponent() this.helpToolStripMenuItem.Size = new System.Drawing.Size(61, 29); resources.ApplyResources(this.helpToolStripMenuItem, "helpToolStripMenuItem"); // + // userGuideToolStripMenuItem + // + this.userGuideToolStripMenuItem.Name = "userGuideToolStripMenuItem"; + this.userGuideToolStripMenuItem.Size = new System.Drawing.Size(230, 30); + this.userGuideToolStripMenuItem.Click += new System.EventHandler(this.userGuideToolStripMenuItem_Click); + resources.ApplyResources(this.userGuideToolStripMenuItem, "userGuideToolStripMenuItem"); + // // reportClientIssueToolStripMenuItem // this.reportClientIssueToolStripMenuItem.Name = "reportClientIssueToolStripMenuItem"; @@ -725,6 +734,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem GameCommandlineToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem compatibleGameVersionsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem userGuideToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem reportClientIssueToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem reportMetadataIssueToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; diff --git a/GUI/Main/Main.cs b/GUI/Main/Main.cs index 41545ab380..d95bea65cc 100644 --- a/GUI/Main/Main.cs +++ b/GUI/Main/Main.cs @@ -675,6 +675,11 @@ private void MainTabControl_OnSelectedIndexChanged(object sender, EventArgs e) } } + private void userGuideToolStripMenuItem_Click(object sender, EventArgs e) + { + Utilities.ProcessStartURL("https://github.com/KSP-CKAN/CKAN/wiki/User-guide"); + } + private void reportClientIssueToolStripMenuItem_Click(object sender, EventArgs e) { Utilities.ProcessStartURL("https://github.com/KSP-CKAN/CKAN/issues/new/choose"); diff --git a/GUI/Main/Main.resx b/GUI/Main/Main.resx index 9954b27540..97e6422dc1 100644 --- a/GUI/Main/Main.resx +++ b/GUI/Main/Main.resx @@ -150,6 +150,7 @@ Game command-line Compatible game versions Help + User guide Report an issue with the CKAN client Report an issue with mod metadata About From 67f71871b31f6823ed2932638ef455955592871b Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Thu, 19 Aug 2021 18:10:05 +0000 Subject: [PATCH 2/4] French translation --- GUI/Localization/fr-FR/Main.fr-FR.resx | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/Localization/fr-FR/Main.fr-FR.resx b/GUI/Localization/fr-FR/Main.fr-FR.resx index 12a03677f6..7255aab5a7 100644 --- a/GUI/Localization/fr-FR/Main.fr-FR.resx +++ b/GUI/Localization/fr-FR/Main.fr-FR.resx @@ -150,6 +150,7 @@ Ligne de commande du jeu Versions de jeu compatibles Aide + Guide d'utilisation Signaler un problème avec le client CKAN Signaler un problème avec les métadonnées de mod À propos From bd04894cf7ef88f3602505fbe3fee9850ef2011f Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Fri, 17 Sep 2021 00:16:26 +0000 Subject: [PATCH 3/4] Discord link --- GUI/Main/Main.Designer.cs | 10 ++++++++++ GUI/Main/Main.cs | 5 +++++ GUI/Main/Main.resx | 1 + 3 files changed, 16 insertions(+) diff --git a/GUI/Main/Main.Designer.cs b/GUI/Main/Main.Designer.cs index 9fcc69a0d9..5bf71f7a43 100644 --- a/GUI/Main/Main.Designer.cs +++ b/GUI/Main/Main.Designer.cs @@ -50,6 +50,7 @@ private void InitializeComponent() this.compatibleGameVersionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.userGuideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.discordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportClientIssueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.reportMetadataIssueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -264,6 +265,7 @@ private void InitializeComponent() // this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.userGuideToolStripMenuItem, + this.discordToolStripMenuItem, this.reportClientIssueToolStripMenuItem, this.reportMetadataIssueToolStripMenuItem, this.aboutToolStripMenuItem}); @@ -278,6 +280,13 @@ private void InitializeComponent() this.userGuideToolStripMenuItem.Click += new System.EventHandler(this.userGuideToolStripMenuItem_Click); resources.ApplyResources(this.userGuideToolStripMenuItem, "userGuideToolStripMenuItem"); // + // discordToolStripMenuItem + // + this.discordToolStripMenuItem.Name = "discordToolStripMenuItem"; + this.discordToolStripMenuItem.Size = new System.Drawing.Size(230, 30); + this.discordToolStripMenuItem.Click += new System.EventHandler(this.discordToolStripMenuItem_Click); + resources.ApplyResources(this.discordToolStripMenuItem, "discordToolStripMenuItem"); + // // reportClientIssueToolStripMenuItem // this.reportClientIssueToolStripMenuItem.Name = "reportClientIssueToolStripMenuItem"; @@ -735,6 +744,7 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem compatibleGameVersionsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem userGuideToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem discordToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem reportClientIssueToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem reportMetadataIssueToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; diff --git a/GUI/Main/Main.cs b/GUI/Main/Main.cs index d95bea65cc..68575a4b38 100644 --- a/GUI/Main/Main.cs +++ b/GUI/Main/Main.cs @@ -680,6 +680,11 @@ private void userGuideToolStripMenuItem_Click(object sender, EventArgs e) Utilities.ProcessStartURL("https://github.com/KSP-CKAN/CKAN/wiki/User-guide"); } + private void discordToolStripMenuItem_Click(object sender, EventArgs e) + { + Utilities.ProcessStartURL("https://discord.gg/Mb4nXQD"); + } + private void reportClientIssueToolStripMenuItem_Click(object sender, EventArgs e) { Utilities.ProcessStartURL("https://github.com/KSP-CKAN/CKAN/issues/new/choose"); diff --git a/GUI/Main/Main.resx b/GUI/Main/Main.resx index 97e6422dc1..8f2cb700d9 100644 --- a/GUI/Main/Main.resx +++ b/GUI/Main/Main.resx @@ -151,6 +151,7 @@ Compatible game versions Help User guide + Discord Report an issue with the CKAN client Report an issue with mod metadata About From 7bb07a60d9a6c1a28eadd50bc3d0384537661212 Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Fri, 17 Sep 2021 15:38:44 +0200 Subject: [PATCH 4/4] German translation for user guide link --- GUI/Localization/de-DE/Main.de-DE.resx | 1 + 1 file changed, 1 insertion(+) diff --git a/GUI/Localization/de-DE/Main.de-DE.resx b/GUI/Localization/de-DE/Main.de-DE.resx index b217b607fd..6d075448d1 100644 --- a/GUI/Localization/de-DE/Main.de-DE.resx +++ b/GUI/Localization/de-DE/Main.de-DE.resx @@ -178,6 +178,7 @@ Spielstart-Befehlszeile Kompatible Spielversionen Hilfe + Benutzerhandbuch Fehler mit dem CKAN Client melden Fehler mit Mod-Metadaten melden Über