1
0

CCVars.Accessibility.cs 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// Chat window opacity slider, controlling the alpha of the chat window background.
  7. /// Goes from to 0 (completely transparent) to 1 (completely opaque)
  8. /// </summary>
  9. public static readonly CVarDef<float> ChatWindowOpacity =
  10. CVarDef.Create("accessibility.chat_window_transparency", 0.85f, CVar.CLIENTONLY | CVar.ARCHIVE);
  11. /// <summary>
  12. /// Toggle for visual effects that may potentially cause motion sickness.
  13. /// Where reasonable, effects affected by this CVar should use an alternate effect.
  14. /// Please do not use this CVar as a bandaid for effects that could otherwise be made accessible without issue.
  15. /// </summary>
  16. public static readonly CVarDef<bool> ReducedMotion =
  17. CVarDef.Create("accessibility.reduced_motion", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  18. public static readonly CVarDef<bool> ChatEnableColorName =
  19. CVarDef.Create("accessibility.enable_color_name",
  20. true,
  21. CVar.CLIENTONLY | CVar.ARCHIVE,
  22. "Toggles displaying names with individual colors.");
  23. /// <summary>
  24. /// Screen shake intensity slider, controlling the intensity of the CameraRecoilSystem.
  25. /// Goes from 0 (no recoil at all) to 1 (regular amounts of recoil)
  26. /// </summary>
  27. public static readonly CVarDef<float> ScreenShakeIntensity =
  28. CVarDef.Create("accessibility.screen_shake_intensity", 1f, CVar.CLIENTONLY | CVar.ARCHIVE);
  29. /// <summary>
  30. /// A generic toggle for various visual effects that are color sensitive.
  31. /// As of 2/16/24, only applies to progress bar colors.
  32. /// </summary>
  33. public static readonly CVarDef<bool> AccessibilityColorblindFriendly =
  34. CVarDef.Create("accessibility.colorblind_friendly", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  35. /// <summary>
  36. /// Speech bubble text opacity slider, controlling the alpha of speech bubble's text.
  37. /// Goes from to 0 (completely transparent) to 1 (completely opaque)
  38. /// </summary>
  39. public static readonly CVarDef<float> SpeechBubbleTextOpacity =
  40. CVarDef.Create("accessibility.speech_bubble_text_opacity", 1f, CVar.CLIENTONLY | CVar.ARCHIVE);
  41. /// <summary>
  42. /// Speech bubble speaker opacity slider, controlling the alpha of the speaker's name in a speech bubble.
  43. /// Goes from to 0 (completely transparent) to 1 (completely opaque)
  44. /// </summary>
  45. public static readonly CVarDef<float> SpeechBubbleSpeakerOpacity =
  46. CVarDef.Create("accessibility.speech_bubble_speaker_opacity", 1f, CVar.CLIENTONLY | CVar.ARCHIVE);
  47. /// <summary>
  48. /// Speech bubble background opacity slider, controlling the alpha of the speech bubble's background.
  49. /// Goes from to 0 (completely transparent) to 1 (completely opaque)
  50. /// </summary>
  51. public static readonly CVarDef<float> SpeechBubbleBackgroundOpacity =
  52. CVarDef.Create("accessibility.speech_bubble_background_opacity", 0.75f, CVar.CLIENTONLY | CVar.ARCHIVE);
  53. /// <summary>
  54. /// If enabled, censors character nudity by forcing clothes markings on characters, selected by the client.
  55. /// Both this and AccessibilityServerCensorNudity must be false to display nudity on the client.
  56. /// </summary>
  57. public static readonly CVarDef<bool> AccessibilityClientCensorNudity =
  58. CVarDef.Create("accessibility.censor_nudity", false, CVar.CLIENTONLY | CVar.ARCHIVE);
  59. /// <summary>
  60. /// If enabled, censors character nudity by forcing clothes markings on characters, selected by the server.
  61. /// Both this and AccessibilityClientCensorNudity must be false to display nudity on the client.
  62. /// </summary>
  63. public static readonly CVarDef<bool> AccessibilityServerCensorNudity =
  64. CVarDef.Create("accessibility.server_censor_nudity", false, CVar.ARCHIVE | CVar.REPLICATED | CVar.SERVER);
  65. }