]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add chat.max_announcement_length cvar (#23571)
authorKot <1192090+koteq@users.noreply.github.com>
Sun, 21 Jan 2024 09:14:01 +0000 (13:14 +0400)
committerGitHub <noreply@github.com>
Sun, 21 Jan 2024 09:14:01 +0000 (20:14 +1100)
commit8c5898b0065cd2cf196c0383bc99c57c0f11795b
tree08dfdda6ffbd4ca8a8d13343b8860876911f6048
parenta2d5d74b46060d330e5aa14e166692f32dcce7a9
Add chat.max_announcement_length cvar (#23571)

* Add announce message length to UI and make a cvar for it

* Update comm console server-side trim to use the cvar

* Rely on the new OnTextChanged event

Because OnKeyBindUp only works for keys that have binds

* Add a similar indicator to nukies' war declaration UI

* Remove message length indicators for now cuz it requires the engine update

* Rename cvar slightly

* Refactor duplicated code to a helper method

* Remove message trimming from *Window class as it's better to live in the BoundUserInterface where the other message handling happens

* Rename to chat.max_announcement_length
Content.Client/Communications/UI/CommunicationsConsoleBoundUserInterface.cs
Content.Client/Communications/UI/CommunicationsConsoleMenu.xaml.cs
Content.Client/NukeOps/WarDeclaratorBoundUserInterface.cs
Content.Client/NukeOps/WarDeclaratorWindow.xaml.cs
Content.Server/Communications/CommunicationsConsoleSystem.cs
Content.Server/NukeOps/WarDeclaratorComponent.cs
Content.Server/NukeOps/WarDeclaratorSystem.cs
Content.Shared/CCVar/CCVars.cs
Content.Shared/Chat/SharedChatSystem.cs