OptionSlider.xaml.cs 667 B

12345678910111213141516171819202122
  1. using Robust.Client.AutoGenerated;
  2. using Robust.Client.UserInterface;
  3. namespace Content.Client.Options.UI;
  4. /// <summary>
  5. /// Standard UI control used for sliders in the options menu. Intended for use with <see cref="OptionsTabControlRow"/>.
  6. /// </summary>
  7. /// <seealso cref="OptionsTabControlRow.AddOptionSlider"/>
  8. /// <seealso cref="OptionsTabControlRow.AddOptionPercentSlider"/>
  9. [GenerateTypedNameReferences]
  10. public sealed partial class OptionSlider : Control
  11. {
  12. /// <summary>
  13. /// The text describing what this slider controls.
  14. /// </summary>
  15. public string? Title
  16. {
  17. get => NameLabel.Text;
  18. set => NameLabel.Text = value;
  19. }
  20. }