Refactor OptionsMenu to XAML UI (#4299)

This commit is contained in:
Visne
2021-07-20 21:36:28 +02:00
committed by GitHub
parent fcafa8f439
commit 370ae45b5a
13 changed files with 918 additions and 1099 deletions

View File

@@ -0,0 +1,22 @@
<Control xmlns="https://spacestation14.io"
xmlns:hudUi="clr-namespace:Content.Client.HUD.UI">
<BoxContainer Orientation="Vertical">
<ScrollContainer VerticalExpand="True">
<BoxContainer Name="KeybindsContainer" Orientation="Vertical" Margin="8 8 8 8">
<!-- Keybind buttons are added here in the C# code -->
</BoxContainer>
</ScrollContainer>
<hudUi:StripeBack HasBottomEdge="False" HasMargins="False">
<BoxContainer Orientation="Horizontal">
<Control MinSize="8 0" />
<Label Text="{Loc 'ui-options-binds-explanation'}" StyleClasses="LabelSubText" />
<Button Name="ResetAllButton"
Text="{Loc 'ui-options-binds-reset-all'}"
HorizontalExpand="True"
HorizontalAlignment="Right" />
</BoxContainer>
</hudUi:StripeBack>
</BoxContainer>
</Control>