* Facelift Microwave UI Includes new background light in UI, Uses predictive input, UI now properly disables buttons when microwave is active * Microwave now shows Elapsed time * Fixed bad formatting * Added new term for "BottomMargin" * Change yellow color * Update StyleNano.cs just spacing fixed * Cook time countdown now detached from server Instead of the server constantly sending out messages for the cook countdown, it is now predicted client side using TimeSpan * Update MicrowaveMenu.xaml forgot to re-add item space
114 lines
5.6 KiB
XML
114 lines
5.6 KiB
XML
<controls:FancyWindow
|
|
xmlns="https://spacestation14.io"
|
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
|
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
|
xmlns:style="clr-namespace:Content.Client.Stylesheets"
|
|
Title="{Loc 'microwave-menu-title'}"
|
|
MinWidth="512"
|
|
MinSize="512 256">
|
|
<BoxContainer Orientation="Vertical">
|
|
<BoxContainer Orientation="Horizontal" >
|
|
<PanelContainer
|
|
Name="IngredientsPanel"
|
|
Access="Public"
|
|
MinSize="300 128"
|
|
Margin="5 5">
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E" />
|
|
</PanelContainer.PanelOverride>
|
|
<ItemList
|
|
Name="IngredientsList"
|
|
Access="Public"
|
|
Margin="5 5"
|
|
VerticalExpand="True"
|
|
HorizontalExpand="True"
|
|
StyleClasses="transparentBackgroundItemList"
|
|
SelectMode="Button"
|
|
SizeFlagsStretchRatio="3"
|
|
ItemSeparation="5"
|
|
MinSize="100 128">
|
|
<!-- Ingredients are added here by code -->
|
|
</ItemList>
|
|
</PanelContainer>
|
|
<BoxContainer
|
|
Orientation="Vertical"
|
|
MinWidth="170"
|
|
Margin="10 10"
|
|
VerticalExpand="True"
|
|
HorizontalExpand="True">
|
|
<PanelContainer
|
|
VerticalExpand="True"
|
|
HorizontalExpand="True">
|
|
<PanelContainer
|
|
VerticalExpand="True"
|
|
ModulateSelfOverride="#FF0000"
|
|
MinSize="100 128">
|
|
<BoxContainer Orientation="Vertical">
|
|
<Label
|
|
Name="CookTimeInfoLabel"
|
|
Access="Public"
|
|
Align="Center"
|
|
Modulate="#FFFFFF"
|
|
VAlign="Center" />
|
|
<BoxContainer Orientation="Vertical">
|
|
<Button
|
|
Name="InstantCookButton"
|
|
Access="Public"
|
|
Text="{Loc 'microwave-menu-instant-button'}"
|
|
StyleClasses="OpenLeft"
|
|
ToggleMode="True"
|
|
Margin="0 0 2 0"
|
|
TextAlign="Center" />
|
|
<GridContainer
|
|
Name="CookTimeButtonVbox"
|
|
HSeparationOverride="1"
|
|
VSeparationOverride="1"
|
|
HorizontalExpand="True"
|
|
Columns="3"
|
|
Margin="0"
|
|
Access="Public">
|
|
<!-- Cook time buttons are added here by code -->
|
|
</GridContainer>
|
|
<BoxContainer
|
|
Orientation="Vertical"
|
|
Align="Center"
|
|
SizeFlagsStretchRatio="3">
|
|
<Control MinSize="0 15" />
|
|
<Button
|
|
Name="StartButton"
|
|
Access="Public"
|
|
Text="{Loc 'microwave-menu-start-button'}"
|
|
StyleClasses="ButtonColorGreen"
|
|
TextAlign="Center" />
|
|
<Button
|
|
Name="EjectButton"
|
|
Access="Public"
|
|
Text="{Loc 'microwave-menu-eject-all-text'}"
|
|
ToolTip="{Loc 'microwave-menu-eject-all-tooltip'}"
|
|
StyleClasses="ButtonColorRed"
|
|
TextAlign="Center" />
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
<!-- Footer -->
|
|
<BoxContainer Orientation="Vertical">
|
|
<PanelContainer StyleClasses="LowDivider" />
|
|
<BoxContainer Orientation="Horizontal" Margin="10 2 5 0" VerticalAlignment="Bottom">
|
|
<Label Text="{Loc 'microwave-menu-footer-flavor-left'}" StyleClasses="WindowFooterText" />
|
|
<Label Text="{Loc 'microwave-menu-footer-flavor-right'}" StyleClasses="WindowFooterText"
|
|
HorizontalAlignment="Right" HorizontalExpand="True" Margin="0 0 5 0" />
|
|
<TextureRect StyleClasses="NTLogoDark" Stretch="KeepAspectCentered" VerticalAlignment="Center" HorizontalAlignment="Right" SetSize="19 19"/>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
<PanelContainer Name="DisableCookingPanelOverlay" MouseFilter="Stop">
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E66" />
|
|
</PanelContainer.PanelOverride>
|
|
</PanelContainer>
|
|
</controls:FancyWindow>
|