Core/Chat: Update ChatNotify enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/c6fd88bf3044de44ac01fe9583a3be4142d1e1d9)
This commit is contained in:
@@ -45,8 +45,9 @@ namespace Framework.Constants
|
|||||||
NotInLfgNotice = 0x21, //+ "[%S] You Must Be Queued In Looking For Group Before Joining This Channel."; -- The User Must Be In The Looking For Group System To Join Lfg Chat Channels.
|
NotInLfgNotice = 0x21, //+ "[%S] You Must Be Queued In Looking For Group Before Joining This Channel."; -- The User Must Be In The Looking For Group System To Join Lfg Chat Channels.
|
||||||
VoiceOnNotice = 0x22, //+ "[%S] Channel Voice Enabled By %S.";
|
VoiceOnNotice = 0x22, //+ "[%S] Channel Voice Enabled By %S.";
|
||||||
VoiceOffNotice = 0x23, //+ "[%S] Channel Voice Disabled By %S.";
|
VoiceOffNotice = 0x23, //+ "[%S] Channel Voice Disabled By %S.";
|
||||||
TrialRestricted = 0x24,
|
VoiceOnNoAnnounceNotice = 0x24, // same as CHAT_VOICE_ON_NOTICE but no chat mode change announcement
|
||||||
NotAllowedInChannel = 0x25
|
TrialRestricted = 0x25, //+ "[%s] Free Trial accounts cannot send messages to this channel. |cffffd000|Hstorecategory:gametime|h[Click To Upgrade]|h|r"
|
||||||
|
NotAllowedInChannel = 0x26 //+ "That operation is not permitted in this channel."
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum ChannelFlags
|
public enum ChannelFlags
|
||||||
|
|||||||
@@ -677,19 +677,21 @@ namespace Game.Chat
|
|||||||
|
|
||||||
struct VoiceOnAppend : IChannelAppender
|
struct VoiceOnAppend : IChannelAppender
|
||||||
{
|
{
|
||||||
public VoiceOnAppend(ObjectGuid guid)
|
ChatNotify notificationType;
|
||||||
|
ObjectGuid _guid;
|
||||||
|
|
||||||
|
public VoiceOnAppend(ObjectGuid guid, bool announce = true)
|
||||||
{
|
{
|
||||||
_guid = guid;
|
_guid = guid;
|
||||||
|
notificationType = announce ? ChatNotify.VoiceOnNotice : ChatNotify.VoiceOnNoAnnounceNotice;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChatNotify GetNotificationType() => ChatNotify.VoiceOnNotice;
|
public ChatNotify GetNotificationType() => notificationType;
|
||||||
|
|
||||||
public void Append(ChannelNotify data)
|
public void Append(ChannelNotify data)
|
||||||
{
|
{
|
||||||
data.SenderGuid = _guid;
|
data.SenderGuid = _guid;
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectGuid _guid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct VoiceOffAppend : IChannelAppender
|
struct VoiceOffAppend : IChannelAppender
|
||||||
|
|||||||
Reference in New Issue
Block a user