mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-11-05 02:24:01 +03:00
* adds typing preview bubble * allow wip preview to be returned to and it displays correctly * Rename * dont need * cleanup/recomment * cleanup * add accessibility toggle * seperates out duplicate bubble stuff into BaseBubble * fix spacing issue from unnecessary changes * add partial * add TODO * add preview bubble opacity slider * carry over changes from #45883 * add missing using
52 lines
2.7 KiB
C#
52 lines
2.7 KiB
C#
using Content.Shared.CCVar;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
using Robust.Shared.Configuration;
|
|
|
|
namespace Content.Client.Options.UI.Tabs;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class AccessibilityTab : Control
|
|
{
|
|
[Dependency] private IConfigurationManager _cfgManager = default!;
|
|
|
|
public AccessibilityTab()
|
|
{
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
Control.AddOptionCheckBox(CCVars.ChatEnableColorName, EnableColorNameCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.AccessibilityColorblindFriendly, ColorblindFriendlyCheckBox);
|
|
|
|
Control.AddOptionCheckBox(CCVars.ReducedMotion, ReducedMotionCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableAiStatic, DisableAiStaticCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableBlurryVision, DisableBlurryVisionCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableDrunkOverlay, DisableDrunkOverlayCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableFlashEffect, DisableFlashEffectCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableHeatDistortion, DisableHeatDistortionCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableNightVisionNoise, DisableNightVisionNoiseCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableRainbowOverlay, DisableRainbowOverlayCheckBox);
|
|
Control.AddOptionCheckBox(CCVars.DisableSinguloWarp, DisableSinguloWarpCheckBox);
|
|
|
|
Control.AddOptionPercentSlider(CCVars.ScreenShakeIntensity, ScreenShakeIntensitySlider);
|
|
Control.AddOptionPercentSlider(CCVars.ChatWindowOpacity, ChatWindowOpacitySlider);
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleTextOpacity, SpeechBubbleTextOpacitySlider);
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleSpeakerOpacity, SpeechBubbleSpeakerOpacitySlider);
|
|
Control.AddOptionPercentSlider(CCVars.SpeechBubbleBackgroundOpacity, SpeechBubbleBackgroundOpacitySlider);
|
|
Control.AddOptionCheckBox(CCVars.ChatTypingPreviewEnabled, EnableChatTypingPreview);
|
|
Control.AddOptionPercentSlider(CCVars.PreviewBubbleBackgroundOpacity, PreviewBubbleBackgroundOpacitySlider);
|
|
|
|
Control.AddOptionPercentSlider(CCVars.VacuumOverlayIntensity, VacuumOverlayIntensityOpacitySlider);
|
|
Control.AddOptionCheckBox(CCVars.ChatAutoFillHighlights, AutoFillHighlightsCheckBox);
|
|
Control.AddOptionColorSlider(CCVars.ChatHighlightsColor, HighlightsColorSlider);
|
|
|
|
Control.AddOptionCheckBox(CCVars.AccessibilityClientCensorNudity, CensorNudityCheckBox);
|
|
|
|
VacuumOverlayIntensityOpacitySlider.Visible = _cfgManager.GetCVar(CCVars.VacuumOverlay);
|
|
|
|
Control.Initialize();
|
|
}
|
|
}
|
|
|