From 8c4410e75c739726da5e45e88a37c5cef2c7b8c5 Mon Sep 17 00:00:00 2001 From: Infi Date: Sun, 10 Aug 2025 03:01:39 +0200 Subject: [PATCH] - Add glamour notifications chat type --- ChatTwo/ChatTwo.csproj | 2 +- ChatTwo/Code/ChatCode.cs | 1 + ChatTwo/Code/ChatType.cs | 3 +-- ChatTwo/Code/ChatTypeExt.cs | 3 +++ ChatTwo/Resources/Language.Designer.cs | 14 +++++++++++--- ChatTwo/Resources/Language.resx | 3 +++ ChatTwo/Util/TabsUtil.cs | 1 + 7 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index c17cbe6..0f1e01f 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -1,6 +1,6 @@ - 1.31.0 + 1.31.1 net9.0-windows enable enable diff --git a/ChatTwo/Code/ChatCode.cs b/ChatTwo/Code/ChatCode.cs index 3606d82..59cdf4f 100755 --- a/ChatTwo/Code/ChatCode.cs +++ b/ChatTwo/Code/ChatCode.cs @@ -61,6 +61,7 @@ internal class ChatCode ChatType.LoseDebuff => ChatType.GainDebuff, ChatType.System => ChatType.System, ChatType.Alarm => ChatType.System, + ChatType.GlamourNotifications => ChatType.System, ChatType.RetainerSale => ChatType.System, ChatType.PeriodicRecruitmentNotification => ChatType.System, ChatType.Sign => ChatType.System, diff --git a/ChatTwo/Code/ChatType.cs b/ChatTwo/Code/ChatType.cs index f484afd..18cca11 100755 --- a/ChatTwo/Code/ChatType.cs +++ b/ChatTwo/Code/ChatType.cs @@ -1,5 +1,3 @@ -using Dalamud.Game.Config; - namespace ChatTwo.Code; [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32")] @@ -41,6 +39,7 @@ public enum ChatType : ushort GainDebuff = 47, LoseBuff = 48, LoseDebuff = 49, + GlamourNotifications = 54, Alarm = 55, Echo = 56, System = 57, diff --git a/ChatTwo/Code/ChatTypeExt.cs b/ChatTwo/Code/ChatTypeExt.cs index 8037705..615f64a 100755 --- a/ChatTwo/Code/ChatTypeExt.cs +++ b/ChatTwo/Code/ChatTypeExt.cs @@ -87,6 +87,7 @@ internal static class ChatTypeExt ChatType.Orchestrion, ChatType.MessageBook, ChatType.Alarm, + ChatType.GlamourNotifications, }), // Note: ExtraChat linkshells are handled separately in the tab settings // UI. @@ -131,6 +132,7 @@ internal static class ChatTypeExt ChatType.LoseBuff => Language.ChatType_LoseBuff, ChatType.LoseDebuff => Language.ChatType_LoseDebuff, ChatType.Alarm => Language.ChatType_Alarm, + ChatType.GlamourNotifications => Language.ChatType_Glamour, ChatType.Echo => Language.ChatType_Echo, ChatType.System => Language.ChatType_System, ChatType.BattleSystem => Language.ChatType_BattleSystem, @@ -258,6 +260,7 @@ internal static class ChatTypeExt case ChatType.PeriodicRecruitmentNotification: case ChatType.Orchestrion: case ChatType.Alarm: + case ChatType.GlamourNotifications: case ChatType.RetainerSale: case ChatType.Sign: case ChatType.MessageBook: diff --git a/ChatTwo/Resources/Language.Designer.cs b/ChatTwo/Resources/Language.Designer.cs index b3ebd9f..cebe6dc 100755 --- a/ChatTwo/Resources/Language.Designer.cs +++ b/ChatTwo/Resources/Language.Designer.cs @@ -572,6 +572,15 @@ namespace ChatTwo.Resources { } } + /// + /// Looks up a localized string similar to Glamour Notifications. + /// + internal static string ChatType_Glamour { + get { + return ResourceManager.GetString("ChatType_Glamour", resourceCulture); + } + } + /// /// Looks up a localized string similar to Free Company (GM). /// @@ -2076,7 +2085,7 @@ namespace ChatTwo.Resources { } /// - /// Looks up a localized string similar to Don't collapse messages if they link to different things with the same text. + /// Looks up a localized string similar to Don't collapse messages if they link to different things with the same text.. /// internal static string Options_CollapseDuplicateMsgUniqueLink_Description { get { @@ -2085,7 +2094,7 @@ namespace ChatTwo.Resources { } /// - /// Looks up a localized string similar to Keep unique links seperate + /// Looks up a localized string similar to Keep unique links seperate. /// internal static string Options_CollapseDuplicateMsgUniqueLink_Name { get { @@ -3885,4 +3894,3 @@ namespace ChatTwo.Resources { } } } - diff --git a/ChatTwo/Resources/Language.resx b/ChatTwo/Resources/Language.resx index e41cc51..fdaf26c 100644 --- a/ChatTwo/Resources/Language.resx +++ b/ChatTwo/Resources/Language.resx @@ -841,6 +841,9 @@ Alarm Notifications + + Glamour Notifications + Echo diff --git a/ChatTwo/Util/TabsUtil.cs b/ChatTwo/Util/TabsUtil.cs index 833955f..dda54c1 100755 --- a/ChatTwo/Util/TabsUtil.cs +++ b/ChatTwo/Util/TabsUtil.cs @@ -75,6 +75,7 @@ internal static class TabsUtil [ChatType.Orchestrion] = ChatSourceExt.All, [ChatType.MessageBook] = ChatSourceExt.All, [ChatType.Alarm] = ChatSourceExt.All, + [ChatType.GlamourNotifications] = ChatSourceExt.All, }, };