Rewrite the options menu (#28389)
* Basic attempt at rewriting how the options menu works, move accessibility settings into their own tab. * Audio tab uses the new options system. * Rewrite Misc tab * Clean up heading styling * Rewrite options tab and other minor cleanup all over the place. * Documentation comments and minor cleanup. --------- Co-authored-by: AJCM <AJCM@tutanota.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
committed by
GitHub
parent
e0a6604d06
commit
07fe1a6b5a
22
Content.Client/Options/UI/OptionSlider.xaml.cs
Normal file
22
Content.Client/Options/UI/OptionSlider.xaml.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface;
|
||||
|
||||
namespace Content.Client.Options.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Standard UI control used for sliders in the options menu. Intended for use with <see cref="OptionsTabControlRow"/>.
|
||||
/// </summary>
|
||||
/// <seealso cref="OptionsTabControlRow.AddOptionSlider"/>
|
||||
/// <seealso cref="OptionsTabControlRow.AddOptionPercentSlider"/>
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class OptionSlider : Control
|
||||
{
|
||||
/// <summary>
|
||||
/// The text describing what this slider controls.
|
||||
/// </summary>
|
||||
public string? Title
|
||||
{
|
||||
get => NameLabel.Text;
|
||||
set => NameLabel.Text = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user