-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix_ifrit
- Loading branch information
Showing
27 changed files
with
16,318 additions
and
11,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<tabs:DeltaTab xmlns="https://spacestation14.io" | ||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls" | ||
xmlns:tabs="clr-namespace:Content.Client.DeltaV.Options.UI.Tabs" | ||
xmlns:xNamespace="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:s="clr-namespace:Content.Client.Stylesheets"> | ||
<BoxContainer Orientation="Vertical"> | ||
<BoxContainer Orientation="Vertical" Margin="8 8 8 8" VerticalExpand="True"> | ||
<Label Text="{Loc 'ui-options-general-forknotice'}" | ||
FontColorOverride="{xNamespace:Static s:StyleNano.ConcerningOrangeFore}" | ||
StyleClasses="LabelKeyText"/> | ||
<Label Text="{Loc 'ui-options-general-accessibility'}" | ||
FontColorOverride="{xNamespace:Static s:StyleNano.NanoGold}" | ||
StyleClasses="LabelKeyText"/> | ||
<CheckBox Name="DisableFiltersCheckBox" Text="{Loc 'ui-options-no-filters'}" /> | ||
</BoxContainer> | ||
<controls:StripeBack HasBottomEdge="False" HasMargins="False"> | ||
<Button Name="ApplyButton" | ||
Text="{Loc 'ui-options-apply'}" | ||
TextAlign="Center" | ||
HorizontalAlignment="Right" /> | ||
</controls:StripeBack> | ||
</BoxContainer> | ||
</tabs:DeltaTab> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using Content.Shared.DeltaV.CCVars; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
using Robust.Shared.Configuration; | ||
|
||
namespace Content.Client.DeltaV.Options.UI.Tabs; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class DeltaTab : Control | ||
{ | ||
[Dependency] private readonly IConfigurationManager _cfg = default!; | ||
|
||
public DeltaTab() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
IoCManager.InjectDependencies(this); | ||
|
||
DisableFiltersCheckBox.OnToggled += OnCheckBoxToggled; | ||
DisableFiltersCheckBox.Pressed = _cfg.GetCVar(DCCVars.NoVisionFilters); | ||
|
||
ApplyButton.OnPressed += OnApplyButtonPressed; | ||
UpdateApplyButton(); | ||
} | ||
|
||
private void OnCheckBoxToggled(BaseButton.ButtonToggledEventArgs args) | ||
{ | ||
UpdateApplyButton(); | ||
} | ||
|
||
private void OnApplyButtonPressed(BaseButton.ButtonEventArgs args) | ||
{ | ||
_cfg.SetCVar(DCCVars.NoVisionFilters, DisableFiltersCheckBox.Pressed); | ||
|
||
_cfg.SaveToFile(); | ||
UpdateApplyButton(); | ||
} | ||
|
||
private void UpdateApplyButton() | ||
{ | ||
var isNoVisionFiltersSame = DisableFiltersCheckBox.Pressed == _cfg.GetCVar(DCCVars.NoVisionFilters); | ||
|
||
ApplyButton.Disabled = isNoVisionFiltersSame; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- files: ["heartbeat_fast.ogg"] | ||
license: "CC0-1.0" | ||
copyright: "Taken from greyseraphim via freesound.org" | ||
source: "https://freesound.org/people/greyseraphim/sounds/21409/" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.