HolopadWindow.xaml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <controls:FancyWindow xmlns="https://spacestation14.io"
  2. xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
  3. xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
  4. Resizable="False"
  5. MaxSize="400 800"
  6. MinSize="400 150">
  7. <BoxContainer Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True">
  8. <BoxContainer Name="ControlsLockOutContainer" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True" ReservesSpace="False" Visible="False">
  9. <!-- Header text -->
  10. <controls:StripeBack>
  11. <PanelContainer>
  12. <RichTextLabel Name="EmergencyBroadcastText" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10 10 10 10" ReservesSpace="False"/>
  13. </PanelContainer>
  14. </controls:StripeBack>
  15. <Label Text="{Loc 'holopad-window-controls-locked-out'}" HorizontalAlignment="Center" Margin="10 5 10 0" ReservesSpace="False"/>
  16. <RichTextLabel Name="LockOutIdText" HorizontalAlignment="Center" Margin="10 5 10 0" ReservesSpace="False"/>
  17. <Label Name="LockOutCountDownText" Text="{Loc 'holopad-window-controls-unlock-countdown'}" HorizontalAlignment="Center" Margin="10 15 10 10" ReservesSpace="False"/>
  18. </BoxContainer>
  19. <BoxContainer Name="ControlsContainer" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True" ReservesSpace="False">
  20. <!-- Active call controls (either this or the call placement controls will be active) -->
  21. <BoxContainer Name="ActiveCallControlsContainer" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True" ReservesSpace="False">
  22. <!-- Header text -->
  23. <BoxContainer MinHeight="60" Orientation="Vertical" VerticalAlignment="Center">
  24. <Label Name="CallStatusText" Margin="10 5 10 0" ReservesSpace="False"/>
  25. <BoxContainer Name="CallerIdContainer" Orientation="Vertical" ReservesSpace="False">
  26. <RichTextLabel Name="CallerIdText" HorizontalAlignment="Center" Margin="0 0 0 0"/>
  27. <Label Text="{Loc 'holopad-window-relay-label'}" Margin="10 10 10 0" ReservesSpace="False"/>
  28. <RichTextLabel Name="HolopadIdText" HorizontalAlignment="Center" Margin="0 0 0 10"/>
  29. </BoxContainer>
  30. </BoxContainer>
  31. <!-- Controls (the answer call button is absent when the phone is not ringing) -->
  32. <GridContainer Columns="2" ReservesSpace="False">
  33. <Control HorizontalExpand="True" Margin="10 0 2 5">
  34. <Button Name="AnswerCallButton" Text="{Loc 'holopad-window-answer-call'}" StyleClasses="OpenRight" Margin="0 0 0 5" Disabled="True"/>
  35. </Control>
  36. <Control HorizontalExpand="True" Margin="2 0 10 5">
  37. <Button Name="EndCallButton" Text="{Loc 'holopad-window-end-call'}" StyleClasses="OpenLeft" Margin="0 0 0 5" Disabled="True"/>
  38. </Control>
  39. </GridContainer>
  40. </BoxContainer>
  41. <!-- Call placement controls (either this or the active call controls will be active) -->
  42. <BoxContainer Name="CallPlacementControlsContainer" Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True" ReservesSpace="False">
  43. <controls:StripeBack>
  44. <PanelContainer>
  45. <BoxContainer Orientation="Vertical">
  46. <RichTextLabel Name="SubtitleText" HorizontalAlignment="Center" Margin="0 5 0 0"/>
  47. <RichTextLabel Name="OptionsText" HorizontalAlignment="Center" Margin="0 0 0 5"/>
  48. </BoxContainer>
  49. </PanelContainer>
  50. </controls:StripeBack>
  51. <!-- Request the station AI or activate the holopad projector (only one of these should be active at a time) -->
  52. <BoxContainer Name="RequestStationAiContainer" Orientation="Vertical" ReservesSpace="False" Visible="False">
  53. <Button Name="RequestStationAiButton" Text="{Loc 'holopad-window-request-station-ai'}" Margin="10 5 10 5" Disabled="False"/>
  54. </BoxContainer>
  55. <BoxContainer Name="ActivateProjectorContainer" Orientation="Vertical" ReservesSpace="False" Visible="False">
  56. <Button Name="ActivateProjectorButton" Text="{Loc 'holopad-window-activate-projector'}" Margin="10 5 10 5" Disabled="False"/>
  57. </BoxContainer>
  58. <!-- List of contactable holopads (the list is created in C#) -->
  59. <BoxContainer Name="HolopadContactListContainer" Orientation="Vertical" Margin="10 0 10 5" ReservesSpace="False" Visible="False">
  60. <PanelContainer Name="HolopadContactListHeaderPanel">
  61. <Label Text="{Loc 'holopad-window-select-contact-from-list'}" HorizontalAlignment="Center" Margin="0 3 0 3"/>
  62. </PanelContainer>
  63. <PanelContainer Name="HolopadContactListPanel">
  64. <BoxContainer Orientation="Vertical">
  65. <!-- Contact filter -->
  66. <LineEdit Name="SearchLineEdit" HorizontalExpand="True" Margin="4, 4, 4, 0"
  67. PlaceHolder="{Loc holopad-window-filter-line-placeholder}" />
  68. <ScrollContainer HorizontalExpand="True" VerticalExpand="True" Margin="8, 8, 8, 8" MinHeight="256">
  69. <!-- If there is no data yet, this will be displayed -->
  70. <BoxContainer Name="FetchingAvailableHolopadsContainer" HorizontalAlignment="Center" HorizontalExpand="True" VerticalExpand="True" ReservesSpace="False">
  71. <Label Text="{Loc 'holopad-window-fetching-contacts-list'}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  72. </BoxContainer>
  73. <!-- Container for the contacts -->
  74. <BoxContainer Name="ContactsList" Orientation="Vertical" HorizontalExpand="True" VerticalExpand="True" Margin="10 0 10 0"/>
  75. </ScrollContainer>
  76. </BoxContainer>
  77. </PanelContainer>
  78. </BoxContainer>
  79. <!-- Button to start an emergency broadcast (the user requires a certain level of access to interact with it) -->
  80. <BoxContainer Name="StartBroadcastContainer" Orientation="Vertical" ReservesSpace="False" Visible="False">
  81. <Button Name="StartBroadcastButton" Text="{Loc 'holopad-window-emergency-broadcast'}" Margin="10 0 10 5" Disabled="False" ReservesSpace="False"/>
  82. </BoxContainer>
  83. </BoxContainer>
  84. </BoxContainer>
  85. <!-- Footer -->
  86. <BoxContainer Orientation="Vertical">
  87. <PanelContainer StyleClasses="LowDivider" />
  88. <BoxContainer Orientation="Horizontal" Margin="10 2 5 0" VerticalAlignment="Bottom">
  89. <Label Text="{Loc 'holopad-window-flavor-left'}" StyleClasses="WindowFooterText" />
  90. <Label Text="{Loc 'holopad-window-flavor-right'}" StyleClasses="WindowFooterText"
  91. HorizontalAlignment="Right" HorizontalExpand="True" Margin="0 0 5 0" />
  92. <TextureRect StyleClasses="NTLogoDark" Stretch="KeepAspectCentered"
  93. VerticalAlignment="Center" HorizontalAlignment="Right" SetSize="19 19"/>
  94. </BoxContainer>
  95. </BoxContainer>
  96. </BoxContainer>
  97. </controls:FancyWindow>