CCVars.Interface.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// The sound played when clicking a UI button
  7. /// </summary>
  8. public static readonly CVarDef<string> UIClickSound =
  9. CVarDef.Create("interface.click_sound", "/Audio/UserInterface/click.ogg", CVar.REPLICATED);
  10. /// <summary>
  11. /// The sound played when the mouse hovers over a clickable UI element
  12. /// </summary>
  13. public static readonly CVarDef<string> UIHoverSound =
  14. CVarDef.Create("interface.hover_sound", "/Audio/UserInterface/hover.ogg", CVar.REPLICATED);
  15. /// <summary>
  16. /// The layout style of the UI
  17. /// </summary>
  18. public static readonly CVarDef<string> UILayout =
  19. CVarDef.Create("ui.layout", "Default", CVar.CLIENTONLY | CVar.ARCHIVE);
  20. /// <summary>
  21. /// The dimensions for the chat window in Default UI mode
  22. /// </summary>
  23. public static readonly CVarDef<string> DefaultScreenChatSize =
  24. CVarDef.Create("ui.default_chat_size", "", CVar.CLIENTONLY | CVar.ARCHIVE);
  25. /// <summary>
  26. /// The width of the chat panel in Separated UI mode
  27. /// </summary>
  28. public static readonly CVarDef<string> SeparatedScreenChatSize =
  29. CVarDef.Create("ui.separated_chat_size", "0.6,0", CVar.CLIENTONLY | CVar.ARCHIVE);
  30. public static readonly CVarDef<bool> OutlineEnabled =
  31. CVarDef.Create("outline.enabled", true, CVar.CLIENTONLY);
  32. /// <summary>
  33. /// If true, the admin overlay will be displayed in the old style (showing only "ANTAG")
  34. /// </summary>
  35. public static readonly CVarDef<bool> AdminOverlayClassic =
  36. CVarDef.Create("ui.admin_overlay_classic", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  37. /// <summary>
  38. /// If true, the admin overlay will display the total time of the players
  39. /// </summary>
  40. public static readonly CVarDef<bool> AdminOverlayPlaytime =
  41. CVarDef.Create("ui.admin_overlay_playtime", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  42. /// <summary>
  43. /// If true, the admin overlay will display the players starting position.
  44. /// </summary>
  45. public static readonly CVarDef<bool> AdminOverlayStartingJob =
  46. CVarDef.Create("ui.admin_overlay_starting_job", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  47. }