1
0

AtmosAlarmEntryContainer.xaml 5.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <BoxContainer xmlns="https://spacestation14.io"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
  4. xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
  5. Orientation="Vertical" HorizontalExpand ="True" Margin="0 0 0 3">
  6. <!-- Device selection button -->
  7. <Button Name="FocusButton" HorizontalExpand="True" SetHeight="32" Margin="12 0 0 0" StyleClasses="OpenBoth" Access="Public">
  8. <BoxContainer HorizontalExpand="True" VerticalExpand="True" Orientation="Horizontal">
  9. <!-- Alarm state -->
  10. <TextureRect Stretch="Keep" HorizontalAlignment="Left" Margin="-20 -2 0 0" ModulateSelfOverride="#25252a" TexturePath="/Textures/Interface/AtmosMonitoring/status_bg.png">
  11. <BoxContainer VerticalExpand="True" HorizontalExpand="True" Orientation="Horizontal" Margin="8 0">
  12. <TextureRect Name="ArrowTexture" VerticalAlignment="Center" SetSize="12 12" Stretch="KeepAspectCentered" Margin="3 0" TexturePath="/Textures/Interface/Nano/triangle_right.png"></TextureRect>
  13. <Label Name="AlarmStateLabel" HorizontalExpand="True" HorizontalAlignment="Center" FontColorOverride="#5A5A5A" Text="{Loc 'atmos-alerts-window-invalid-state'}"></Label>
  14. </BoxContainer>
  15. </TextureRect>
  16. <!-- Alarm name -->
  17. <Label Name="AlarmNameLabel" Text="???" HorizontalExpand="True" HorizontalAlignment="Center" Margin="5 0"></Label>
  18. </BoxContainer>
  19. </Button>
  20. <!-- Panel that appears on selecting the device -->
  21. <PanelContainer Name="FocusContainer" HorizontalExpand="True" Margin="1 -1 1 0" ReservesSpace="False" Visible="False" Access="Public">
  22. <PanelContainer.PanelOverride>
  23. <gfx:StyleBoxFlat BackgroundColor="#25252a"/>
  24. </PanelContainer.PanelOverride>
  25. <BoxContainer HorizontalExpand="True" VerticalExpand="True" Orientation="Vertical">
  26. <!-- Atmosphere status -->
  27. <Control>
  28. <!-- Main container for displaying atmospheric data -->
  29. <BoxContainer Name="MainDataContainer" HorizontalExpand="True" VerticalExpand="True" Orientation="Vertical" ReservesSpace="False" Visible="False">
  30. <BoxContainer HorizontalExpand="True" Orientation="Horizontal">
  31. <Label Name="TemperatureHeaderLabel" Text="{Loc 'atmos-alerts-window-temperature-label'}" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#a9a9a9" Margin="0 2 0 0" SetHeight="24"></Label>
  32. <Label Name="PressureHeaderLabel" Text="{Loc 'atmos-alerts-window-pressure-label'}" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#a9a9a9" Margin="0 2 0 0" SetHeight="24"></Label>
  33. <Label Name="OxygenationHeaderLabel" Text="{Loc 'atmos-alerts-window-oxygenation-label'}" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#a9a9a9" Margin="0 2 0 0" SetHeight="24"></Label>
  34. </BoxContainer>
  35. <PanelContainer HorizontalExpand="True">
  36. <PanelContainer.PanelOverride>
  37. <gfx:StyleBoxFlat BackgroundColor="#202023"/>
  38. </PanelContainer.PanelOverride>
  39. <BoxContainer HorizontalExpand="True" Orientation="Horizontal">
  40. <Label Name="TemperatureLabel" Text="???" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#5A5A5A" Margin="0 2 0 0" SetHeight="24"></Label>
  41. <Label Name="PressureLabel" Text="???" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#5A5A5A" Margin="0 2 0 0" SetHeight="24"></Label>
  42. <Label Name="OxygenationLabel" Text="???" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#5A5A5A" Margin="0 2 0 0" SetHeight="24"></Label>
  43. </BoxContainer>
  44. </PanelContainer>
  45. <BoxContainer HorizontalExpand="True" Orientation="Horizontal">
  46. <Label Name="GasesHeaderLabel" Text="{Loc 'atmos-alerts-window-other-gases-label'}" HorizontalAlignment="Center" HorizontalExpand="True" FontColorOverride="#a9a9a9" Margin="0 4 0 0" SetHeight="24"></Label>
  47. </BoxContainer>
  48. <PanelContainer HorizontalExpand="True">
  49. <PanelContainer.PanelOverride>
  50. <gfx:StyleBoxFlat BackgroundColor="#202023"/>
  51. </PanelContainer.PanelOverride>
  52. <!-- Gas entries added via C# code -->
  53. <GridContainer Name="GasGridContainer" HorizontalExpand="True" Columns = "4"></GridContainer>
  54. </PanelContainer>
  55. </BoxContainer>
  56. <!-- If the alarm is inactive, this is label is displayed instead -->
  57. <Label Name="NoDataLabel" Text="{Loc 'atmos-alerts-window-no-data-available'}" HorizontalAlignment="Center" Margin="0 15" FontColorOverride="#a9a9a9" ReservesSpace="False" Visible="False"></Label>
  58. <!-- Silencing progress bar -->
  59. <controls:StripeBack Name="SilenceAlarmProgressBar" ReservesSpace="False" Visible="False" Access="Public">
  60. <PanelContainer>
  61. <Label Text="{Loc 'atmos-alerts-window-alerts-being-silenced'}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5 5 5 5"/>
  62. </PanelContainer>
  63. </controls:StripeBack>
  64. </Control>
  65. <!-- Check box for silencing this alarm -->
  66. <CheckBox Name="SilenceCheckBox" Text="{Loc 'atmos-alerts-window-silence-alerts'}" HorizontalAlignment="Left" Margin="5 5 5 5" Access="Public"></CheckBox>
  67. </BoxContainer>
  68. </PanelContainer>
  69. </BoxContainer>