- Add glamour notifications chat type

This commit is contained in:
Infi
2025-08-10 03:01:39 +02:00
parent efddaf30ad
commit 8c4410e75c
7 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
<Project Sdk="Dalamud.NET.Sdk/13.0.0"> <Project Sdk="Dalamud.NET.Sdk/13.0.0">
<PropertyGroup> <PropertyGroup>
<Version>1.31.0</Version> <Version>1.31.1</Version>
<TargetFramework>net9.0-windows</TargetFramework> <TargetFramework>net9.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
+1
View File
@@ -61,6 +61,7 @@ internal class ChatCode
ChatType.LoseDebuff => ChatType.GainDebuff, ChatType.LoseDebuff => ChatType.GainDebuff,
ChatType.System => ChatType.System, ChatType.System => ChatType.System,
ChatType.Alarm => ChatType.System, ChatType.Alarm => ChatType.System,
ChatType.GlamourNotifications => ChatType.System,
ChatType.RetainerSale => ChatType.System, ChatType.RetainerSale => ChatType.System,
ChatType.PeriodicRecruitmentNotification => ChatType.System, ChatType.PeriodicRecruitmentNotification => ChatType.System,
ChatType.Sign => ChatType.System, ChatType.Sign => ChatType.System,
+1 -2
View File
@@ -1,5 +1,3 @@
using Dalamud.Game.Config;
namespace ChatTwo.Code; namespace ChatTwo.Code;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1028:Enum Storage should be Int32")]
@@ -41,6 +39,7 @@ public enum ChatType : ushort
GainDebuff = 47, GainDebuff = 47,
LoseBuff = 48, LoseBuff = 48,
LoseDebuff = 49, LoseDebuff = 49,
GlamourNotifications = 54,
Alarm = 55, Alarm = 55,
Echo = 56, Echo = 56,
System = 57, System = 57,
+3
View File
@@ -87,6 +87,7 @@ internal static class ChatTypeExt
ChatType.Orchestrion, ChatType.Orchestrion,
ChatType.MessageBook, ChatType.MessageBook,
ChatType.Alarm, ChatType.Alarm,
ChatType.GlamourNotifications,
}), }),
// Note: ExtraChat linkshells are handled separately in the tab settings // Note: ExtraChat linkshells are handled separately in the tab settings
// UI. // UI.
@@ -131,6 +132,7 @@ internal static class ChatTypeExt
ChatType.LoseBuff => Language.ChatType_LoseBuff, ChatType.LoseBuff => Language.ChatType_LoseBuff,
ChatType.LoseDebuff => Language.ChatType_LoseDebuff, ChatType.LoseDebuff => Language.ChatType_LoseDebuff,
ChatType.Alarm => Language.ChatType_Alarm, ChatType.Alarm => Language.ChatType_Alarm,
ChatType.GlamourNotifications => Language.ChatType_Glamour,
ChatType.Echo => Language.ChatType_Echo, ChatType.Echo => Language.ChatType_Echo,
ChatType.System => Language.ChatType_System, ChatType.System => Language.ChatType_System,
ChatType.BattleSystem => Language.ChatType_BattleSystem, ChatType.BattleSystem => Language.ChatType_BattleSystem,
@@ -258,6 +260,7 @@ internal static class ChatTypeExt
case ChatType.PeriodicRecruitmentNotification: case ChatType.PeriodicRecruitmentNotification:
case ChatType.Orchestrion: case ChatType.Orchestrion:
case ChatType.Alarm: case ChatType.Alarm:
case ChatType.GlamourNotifications:
case ChatType.RetainerSale: case ChatType.RetainerSale:
case ChatType.Sign: case ChatType.Sign:
case ChatType.MessageBook: case ChatType.MessageBook:
+11 -3
View File
@@ -572,6 +572,15 @@ namespace ChatTwo.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Glamour Notifications.
/// </summary>
internal static string ChatType_Glamour {
get {
return ResourceManager.GetString("ChatType_Glamour", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Free Company (GM). /// Looks up a localized string similar to Free Company (GM).
/// </summary> /// </summary>
@@ -2076,7 +2085,7 @@ namespace ChatTwo.Resources {
} }
/// <summary> /// <summary>
/// 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&apos;t collapse messages if they link to different things with the same text..
/// </summary> /// </summary>
internal static string Options_CollapseDuplicateMsgUniqueLink_Description { internal static string Options_CollapseDuplicateMsgUniqueLink_Description {
get { get {
@@ -2085,7 +2094,7 @@ namespace ChatTwo.Resources {
} }
/// <summary> /// <summary>
/// Looks up a localized string similar to Keep unique links seperate /// Looks up a localized string similar to Keep unique links seperate.
/// </summary> /// </summary>
internal static string Options_CollapseDuplicateMsgUniqueLink_Name { internal static string Options_CollapseDuplicateMsgUniqueLink_Name {
get { get {
@@ -3885,4 +3894,3 @@ namespace ChatTwo.Resources {
} }
} }
} }
+3
View File
@@ -841,6 +841,9 @@
<data name="ChatType_Alarm"> <data name="ChatType_Alarm">
<value>Alarm Notifications</value> <value>Alarm Notifications</value>
</data> </data>
<data name="ChatType_Glamour">
<value>Glamour Notifications</value>
</data>
<data name="ChatType_Echo"> <data name="ChatType_Echo">
<value>Echo</value> <value>Echo</value>
</data> </data>
+1
View File
@@ -75,6 +75,7 @@ internal static class TabsUtil
[ChatType.Orchestrion] = ChatSourceExt.All, [ChatType.Orchestrion] = ChatSourceExt.All,
[ChatType.MessageBook] = ChatSourceExt.All, [ChatType.MessageBook] = ChatSourceExt.All,
[ChatType.Alarm] = ChatSourceExt.All, [ChatType.Alarm] = ChatSourceExt.All,
[ChatType.GlamourNotifications] = ChatSourceExt.All,
}, },
}; };