CatStation/Content.Client/Communications/UI/Widgets/AlertLevelControls.xaml
eoineoineoin 7c19a7d1de
Improve UX and visuals of communications console (#41899)
* Implment mockup of comms console UI

* Fix broadcast broken by 31823

* Separate announce/broadcast functionality

* Tweak resizing behaviour; make window wider by default

* Split up comms console into different widgets

Makes each section of the UI easier to understand
Apply some cleanup, renames, make consistent with style guide, etc.

* Polishing, todos, missing pieces

* Consolidate button border images. Allow more accent colours with geometric_panel_border

* Resolve some TODOs, small polish

* Fix warning

* Revert modification to StripeBack

Old texture relied on two stripe colours, had to replicate with only styles.
Split out a new version with tweakable modulation

* Make UI more boring

* Some element shuffling, style changing

* Remove some leftover changes

* Remove more leftovers

* Fix warnings

* Feedback; remove unused bits, dependencies, formatting, highlight
2026-08-14 18:38:21 +00:00

22 lines
1 KiB
XML

<BoxContainer xmlns="https://spacestation14.io"
Orientation="Vertical">
<!-- Info about the current alert level -->
<BoxContainer HorizontalAlignment="Center">
<Label StyleClasses="StatusFieldTitle" Margin="0 0 9 0"
Text="{Loc 'comms-console-alert-current-level-header'}" />
<Label Name="CurrentAlertLevelLabel" Margin="9 0 0 0"/>
</BoxContainer>
<Label Name="CurrentAlertLevelFlavorLabel" Align="Center" />
<!-- Controls for changing the alert level -->
<BoxContainer Margin="9 12 9 6">
<OptionButton Name="AlertLevelSelector" StyleClasses="OpenRight"
ToolTip="{Loc 'comms-console-menu-alert-level-button-tooltip'}"
HorizontalExpand="True" SizeFlagsStretchRatio="4" />
<Button Name="ConfirmAlertLevelButton" StyleClasses="OpenLeft"
HorizontalExpand="True" SizeFlagsStretchRatio="1"
Text="{Loc 'comms-console-confirm-alert-level-button'}"
Disabled="True" />
</BoxContainer>
</BoxContainer>