2024-06-22 06:11:14 +02:00
|
|
|
using Content.Shared.CCVar;
|
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
using Robust.Client.UserInterface;
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Options.UI.Tabs;
|
|
|
|
|
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
public sealed partial class AccessibilityTab : Control
|
|
|
|
|
{
|
|
|
|
|
public AccessibilityTab()
|
|
|
|
|
{
|
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
|
|
|
|
|
|
Control.AddOptionCheckBox(CCVars.ChatEnableColorName, EnableColorNameCheckBox);
|
|
|
|
|
Control.AddOptionCheckBox(CCVars.AccessibilityColorblindFriendly, ColorblindFriendlyCheckBox);
|
|
|
|
|
Control.AddOptionCheckBox(CCVars.ReducedMotion, ReducedMotionCheckBox);
|
|
|
|
|
Control.AddOptionPercentSlider(CCVars.ScreenShakeIntensity, ScreenShakeIntensitySlider);
|
2025-02-25 11:00:12 -05:00
|
|
|
Control.AddOptionPercentSlider(CCVars.ChatWindowOpacity, ChatWindowOpacitySlider);
|
|
|
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleTextOpacity, SpeechBubbleTextOpacitySlider);
|
|
|
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleSpeakerOpacity, SpeechBubbleSpeakerOpacitySlider);
|
|
|
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleBackgroundOpacity, SpeechBubbleBackgroundOpacitySlider);
|
2025-06-04 12:12:37 +02:00
|
|
|
Control.AddOptionCheckBox(CCVars.ChatAutoFillHighlights, AutoFillHighlightsCheckBox);
|
|
|
|
|
Control.AddOptionColorSlider(CCVars.ChatHighlightsColor, HighlightsColorSlider);
|
2024-06-22 06:11:14 +02:00
|
|
|
|
2025-03-05 10:14:01 +01:00
|
|
|
Control.AddOptionCheckBox(CCVars.AccessibilityClientCensorNudity, CensorNudityCheckBox);
|
|
|
|
|
|
2024-06-22 06:11:14 +02:00
|
|
|
Control.Initialize();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|