Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> Co-authored-by: Hans Larsson <hanandlia@gmail.com> Co-authored-by: Tobias Berger <toby@tobot.dev>
32 lines
870 B
C#
32 lines
870 B
C#
using Content.Client.Options.UI;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client.Options.UI;
|
|
|
|
/// <summary>
|
|
/// Standard UI control used for color sliders in the options menu. Intended for use with <see cref="OptionsTabControlRow"/>.
|
|
/// </summary>
|
|
/// <seealso cref="OptionsTabControlRow.AddOptionColorSlider"/>
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class OptionColorSlider : Control
|
|
{
|
|
/// <summary>
|
|
/// The text describing what this slider affects.
|
|
/// </summary>
|
|
public string? Title
|
|
{
|
|
get => TitleLabel.Text;
|
|
set => TitleLabel.Text = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The example text showing the current color of the slider.
|
|
/// </summary>
|
|
public string? Example
|
|
{
|
|
get => ExampleLabel.Text;
|
|
set => ExampleLabel.Text = value;
|
|
}
|
|
}
|