PowerChargeWindow.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <controls:FancyWindow xmlns="https://spacestation14.io"
  2. xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
  3. MinSize="270 130"
  4. SetSize="360 180">
  5. <BoxContainer Margin="4 0" Orientation="Horizontal">
  6. <BoxContainer Orientation="Vertical" HorizontalExpand="True">
  7. <GridContainer Margin="2 0 0 0" Columns="2">
  8. <!-- Power -->
  9. <Label Text="{Loc 'power-charge-window-power'}" HorizontalExpand="True" StyleClasses="StatusFieldTitle" />
  10. <BoxContainer Orientation="Horizontal" MinWidth="120">
  11. <Button Name="OnButton" Text="{Loc 'power-charge-window-power-on'}" StyleClasses="OpenRight" />
  12. <Button Name="OffButton" Text="{Loc 'power-charge-window-power-off'}" StyleClasses="OpenLeft" />
  13. </BoxContainer>
  14. <Control /> <!-- Empty control to act as a spacer in the grid. -->
  15. <Label Name="PowerLabel" Text="0 / 0 W" />
  16. <!-- Status -->
  17. <Label Text="{Loc 'power-charge-window-status'}" StyleClasses="StatusFieldTitle" />
  18. <Label Name="StatusLabel" Text="{Loc 'power-charge-window-status-fully-charged'}" />
  19. <!-- ETA -->
  20. <Label Text="{Loc 'power-charge-window-eta'}" StyleClasses="StatusFieldTitle" />
  21. <Label Name="EtaLabel" Text="N/A" />
  22. <!-- Charge -->
  23. <Label Text="{Loc 'power-charge-window-charge'}" StyleClasses="StatusFieldTitle" />
  24. <ProgressBar Name="ChargeBar" MaxValue="255">
  25. <Label Name="ChargeText" Margin="4 0" Text="0 %" />
  26. </ProgressBar>
  27. </GridContainer>
  28. </BoxContainer>
  29. <PanelContainer Margin="12 0 0 0" StyleClasses="Inset" VerticalAlignment="Center">
  30. <SpriteView Name="EntityView" SetSize="96 96" OverrideDirection="South" />
  31. </PanelContainer>
  32. </BoxContainer>
  33. </controls:FancyWindow>