# Conflicts: # .github/CODEOWNERS # Content.Client/Options/UI/Tabs/AccessibilityTab.xaml # Content.Client/UserInterface/Systems/Chat/Widgets/ChatBox.xaml.cs # Content.Server/Access/Systems/AgentIDCardSystem.cs # Content.Server/Clothing/Systems/ChameleonClothingSystem.cs # Content.Server/Entry/IgnoredComponents.cs # Content.Shared/Access/Systems/SharedIdCardSystem.cs # Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs # Content.Shared/Inventory/InventorySystem.Relay.cs # Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.ChamberMagazine.cs # Resources/Locale/en-US/_strings/atmos/atmos-pipe-layers.ftl # Resources/Locale/en-US/_strings/chat/highlights.ftl # Resources/Locale/en-US/_strings/implant/chameleon-controller.ftl # Resources/Locale/en-US/_strings/prototypes/roles/antags.ftl # Resources/Locale/en-US/_strings/reagents/absinthe.ftl # Resources/Prototypes/Entities/Clothing/OuterClothing/vests.yml # Resources/Prototypes/Entities/Objects/Weapons/Guns/SMGs/smgs.yml # Resources/Prototypes/Entities/Structures/Wallmounts/air_alarm.yml # Resources/Prototypes/Entities/Structures/Wallmounts/mirror.yml # Resources/Prototypes/Entities/Structures/cryogenic_sleep_unit.yml # Resources/Prototypes/Recipes/Lathes/categories.yml # Resources/Prototypes/Roles/Jobs/CentComm/cburn.yml # Resources/Prototypes/Roles/Jobs/CentComm/official.yml # Resources/Prototypes/Roles/Jobs/Civilian/chaplain.yml # Resources/Prototypes/Roles/Jobs/Civilian/lawyer.yml # Resources/Prototypes/Roles/Jobs/Command/head_of_personnel.yml # Resources/Prototypes/Roles/Jobs/Engineering/chief_engineer.yml # Resources/Prototypes/Roles/Jobs/Medical/chief_medical_officer.yml # Resources/Prototypes/Roles/Jobs/Medical/paramedic.yml # Resources/Prototypes/Roles/Jobs/Science/research_director.yml # Resources/Prototypes/Roles/Jobs/Security/head_of_security.yml # Resources/Prototypes/Roles/Jobs/Security/security_cadet.yml # Resources/Prototypes/Roles/Jobs/Security/security_officer.yml # Resources/Prototypes/Roles/Jobs/Security/warden.yml # Resources/Textures/Structures/Doors/secret_door.rsi/assembly.png # Resources/Textures/Structures/Doors/secret_door.rsi/closed.png # Resources/Textures/Structures/Doors/secret_door.rsi/closing.png # Resources/Textures/Structures/Doors/secret_door.rsi/meta.json # Resources/Textures/Structures/Doors/secret_door.rsi/open.png # Resources/Textures/Structures/Doors/secret_door.rsi/opening.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm0.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm1.png # Resources/Textures/Structures/Wallmounts/air_monitors.rsi/alarm2.png # Resources/migration.yml
86 lines
4.1 KiB
C#
86 lines
4.1 KiB
C#
using Robust.Shared.Configuration;
|
|
|
|
namespace Content.Shared.CCVar;
|
|
|
|
public sealed partial class CCVars
|
|
{
|
|
/// <summary>
|
|
/// Chat rate limit values are accounted in periods of this size (seconds).
|
|
/// After the period has passed, the count resets.
|
|
/// </summary>
|
|
/// <seealso cref="ChatRateLimitCount"/>
|
|
public static readonly CVarDef<float> ChatRateLimitPeriod =
|
|
CVarDef.Create("chat.rate_limit_period", 2f, CVar.SERVERONLY);
|
|
|
|
/// <summary>
|
|
/// How many chat messages are allowed in a single rate limit period.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// The total rate limit throughput per second is effectively
|
|
/// <see cref="ChatRateLimitCount"/> divided by <see cref="ChatRateLimitCount"/>.
|
|
/// </remarks>
|
|
/// <seealso cref="ChatRateLimitPeriod"/>
|
|
public static readonly CVarDef<int> ChatRateLimitCount =
|
|
CVarDef.Create("chat.rate_limit_count", 10, CVar.SERVERONLY);
|
|
|
|
/// <summary>
|
|
/// Minimum delay (in seconds) between notifying admins about chat message rate limit violations.
|
|
/// A negative value disables admin announcements.
|
|
/// </summary>
|
|
public static readonly CVarDef<int> ChatRateLimitAnnounceAdminsDelay =
|
|
CVarDef.Create("chat.rate_limit_announce_admins_delay", 15, CVar.SERVERONLY);
|
|
|
|
public static readonly CVarDef<int> ChatMaxMessageLength =
|
|
CVarDef.Create("chat.max_message_length", 1000, CVar.SERVER | CVar.REPLICATED);
|
|
|
|
public static readonly CVarDef<int> ChatMaxAnnouncementLength =
|
|
CVarDef.Create("chat.max_announcement_length", 512, CVar.SERVER | CVar.REPLICATED); // Sunrise-edit
|
|
|
|
public static readonly CVarDef<bool> ChatSanitizerEnabled =
|
|
CVarDef.Create("chat.chat_sanitizer_enabled", true, CVar.SERVERONLY);
|
|
|
|
public static readonly CVarDef<bool> ChatShowTypingIndicator =
|
|
CVarDef.Create("chat.show_typing_indicator", true, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
|
|
|
|
public static readonly CVarDef<bool> ChatEnableFancyBubbles =
|
|
CVarDef.Create("chat.enable_fancy_bubbles",
|
|
true,
|
|
CVar.CLIENTONLY | CVar.ARCHIVE,
|
|
"Toggles displaying fancy speech bubbles, which display the speaking character's name.");
|
|
|
|
public static readonly CVarDef<bool> ChatFancyNameBackground =
|
|
CVarDef.Create("chat.fancy_name_background",
|
|
false,
|
|
CVar.CLIENTONLY | CVar.ARCHIVE,
|
|
"Toggles displaying a background under the speaking character's name.");
|
|
|
|
/// <summary>
|
|
/// A message broadcast to each player that joins the lobby.
|
|
/// May be changed by admins ingame through use of the "set-motd" command.
|
|
/// In this case the new value, if not empty, is broadcast to all connected players and saved between rounds.
|
|
/// May be requested by any player through use of the "get-motd" command.
|
|
/// </summary>
|
|
public static readonly CVarDef<string> MOTD =
|
|
CVarDef.Create("chat.motd",
|
|
"",
|
|
CVar.SERVER | CVar.SERVERONLY | CVar.ARCHIVE,
|
|
"A message broadcast to each player that joins the lobby.");
|
|
|
|
/// <summary>
|
|
/// A string containing a list of newline-separated words to be highlighted in the chat.
|
|
/// </summary>
|
|
public static readonly CVarDef<string> ChatHighlights =
|
|
CVarDef.Create("chat.highlights", "", CVar.CLIENTONLY | CVar.ARCHIVE, "A list of newline-separated words to be highlighted in the chat.");
|
|
|
|
/// <summary>
|
|
/// An option to toggle the automatic filling of the highlights with the character's info, if available.
|
|
/// </summary>
|
|
public static readonly CVarDef<bool> ChatAutoFillHighlights =
|
|
CVarDef.Create("chat.auto_fill_highlights", false, CVar.CLIENTONLY | CVar.ARCHIVE, "Toggles automatically filling the highlights with the character's information.");
|
|
|
|
/// <summary>
|
|
/// The color in which the highlights will be displayed.
|
|
/// </summary>
|
|
public static readonly CVarDef<string> ChatHighlightsColor =
|
|
CVarDef.Create("chat.highlights_color", "#17FFC1FF", CVar.CLIENTONLY | CVar.ARCHIVE, "The color in which the highlights will be displayed.");
|
|
}
|