Сообщения в ПДА 2 (#583)

* add: AdminLog

* tweak: clean up

* fix: Changeling -> Network

* add: сортировка сообщений

* fix: ТексТ
This commit is contained in:
Spatison
2024-08-08 13:20:06 +03:00
committed by GitHub
parent abf435b11d
commit cced3cc98b
19 changed files with 195 additions and 136 deletions

View File

@@ -80,23 +80,26 @@ public enum ChatChannel : uint
/// </summary>
AdminChat = 1 << 13,
//WD EDIT START
/// <summary>
/// Changeling
/// </summary>
Changeling = 1 << 14,
//WD EDIT
Cult = 1 << 15,
Network = 1 << 16,
//WD EDIT END
/// <summary>
/// Unspecified.
/// </summary>
Unspecified = 1 << 16,
Unspecified = 1 << 17,
/// <summary>
/// Channels considered to be IC.
/// </summary>
IC = Local | Whisper | Radio | Dead | Emotes | Damage | Visual | Notifications | Cult | Changeling,
IC = Local | Whisper | Radio | Dead | Emotes | Damage | Visual | Notifications | Cult | Changeling | Network,
AdminRelated = Admin | AdminAlert | AdminChat,
}
}

View File

@@ -15,8 +15,11 @@ public static class ChatChannelExtensions
ChatChannel.AdminAlert => Color.Red,
ChatChannel.AdminChat => Color.HotPink,
ChatChannel.Whisper => Color.DarkGray,
// WD EDIT START
ChatChannel.Cult => Color.DarkRed,
ChatChannel.Changeling => Color.Purple,
ChatChannel.Cult => Color.DarkRed, // WD EDIT
ChatChannel.Network => Color.White,
// WD EDIT END
_ => Color.LightGray
};
}

View File

@@ -46,15 +46,19 @@
/// </summary>
Dead = ChatChannel.Dead,
// WD EDIT START
Cult = ChatChannel.Cult,
Changeling = ChatChannel.Changeling,
Network = ChatChannel.Network,
// WD EDIT END
/// <summary>
/// Admin chat
/// </summary>
Admin = ChatChannel.AdminChat,
Changeling = ChatChannel.Changeling,
Console = ChatChannel.Unspecified
}
}