CCVars.Tips.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Robust.Shared.Configuration;
  2. namespace Content.Shared.CCVar;
  3. public sealed partial class CCVars
  4. {
  5. /// <summary>
  6. /// Whether tips being shown is enabled at all.
  7. /// </summary>
  8. public static readonly CVarDef<bool> TipsEnabled =
  9. CVarDef.Create("tips.enabled", true);
  10. /// <summary>
  11. /// The dataset prototype to use when selecting a random tip.
  12. /// </summary>
  13. public static readonly CVarDef<string> TipsDataset =
  14. CVarDef.Create("tips.dataset", "Tips");
  15. /// <summary>
  16. /// The number of seconds between each tip being displayed when the round is not actively going
  17. /// (i.e. postround or lobby)
  18. /// </summary>
  19. public static readonly CVarDef<float> TipFrequencyOutOfRound =
  20. CVarDef.Create("tips.out_of_game_frequency", 60f * 1.5f);
  21. /// <summary>
  22. /// The number of seconds between each tip being displayed when the round is actively going
  23. /// </summary>
  24. public static readonly CVarDef<float> TipFrequencyInRound =
  25. CVarDef.Create("tips.in_game_frequency", 60f * 60);
  26. public static readonly CVarDef<string> LoginTipsDataset =
  27. CVarDef.Create("tips.login_dataset", "Tips");
  28. /// <summary>
  29. /// The chance for Tippy to replace a normal tip message.
  30. /// </summary>
  31. public static readonly CVarDef<float> TipsTippyChance =
  32. CVarDef.Create("tips.tippy_chance", 0.01f);
  33. }