mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* somewhat functional yes * some cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * review * missed one * why not params… * review 2 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
33 lines
973 B
C#
33 lines
973 B
C#
using Content.Shared._DV.CCVars;
|
|
using Content.Shared._DV.Tips;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client._DV.Options.UI.Tabs;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class DeltaTab : Control
|
|
{
|
|
[Dependency] private readonly IEntityNetworkManager _entNet = default!;
|
|
|
|
public DeltaTab()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
IoCManager.InjectDependencies(this);
|
|
|
|
Control.AddOptionCheckBox(DCCVars.NoVisionFilters, DisableFiltersCheckBox);
|
|
Control.AddOptionCheckBox(DCCVars.DisableGlimmerShader, DisableGlimmerEffectCheckBox);
|
|
Control.AddOptionCheckBox(DCCVars.DisableTips, DisableTipsCheckBox);
|
|
|
|
ResetTipsButton.OnPressed += _ => OnResetTipsPressed();
|
|
|
|
Control.Initialize();
|
|
}
|
|
|
|
private void OnResetTipsPressed()
|
|
{
|
|
_entNet.SendSystemNetworkMessage(new ResetAllSeenTipsRequest());
|
|
}
|
|
}
|