* Adding sorting to chem master * Chem Master can now sort based on following categories - Alphabetical - Quantity - Time Added to Machine * Sorting is disabled by default and persist in the machine for everyone * Removed some pointless code from Chem Master's UI * Changed None and Time Added's text to reflect what they do better * Minor adjustments to the code requested by maintainers
134 lines
7.6 KiB
XML
134 lines
7.6 KiB
XML
<controls:FancyWindow xmlns="https://spacestation14.io"
|
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
|
MinSize="620 670"
|
|
Title="{Loc 'chem-master-bound-user-interface-title'}">
|
|
<TabContainer Name="Tabs" Margin="5 5 7 5">
|
|
<BoxContainer Orientation="Vertical" HorizontalExpand="True" Margin="5" SeparationOverride="10">
|
|
<!-- Input container info -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-container-label'}" />
|
|
<Control HorizontalExpand="True" />
|
|
<Button MinSize="80 0" Name="InputEjectButton" Access="Public" Text="{Loc 'chem-master-window-eject-button'}" />
|
|
</BoxContainer>
|
|
|
|
<PanelContainer VerticalExpand="True" MinSize="0 200">
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E" />
|
|
</PanelContainer.PanelOverride>
|
|
|
|
<ScrollContainer HorizontalExpand="True" MinSize="0 200">
|
|
<!-- Initially empty, when server sends state data this will have container contents and fill volume.-->
|
|
<BoxContainer Name="InputContainerInfo" Orientation="Vertical" Margin="4" HorizontalExpand="True">
|
|
<Label Text="{Loc 'chem-master-window-no-container-loaded-text'}" />
|
|
</BoxContainer>
|
|
</ScrollContainer>
|
|
</PanelContainer>
|
|
|
|
<!-- Padding -->
|
|
<Control MinSize="0 10" />
|
|
|
|
<!-- Buffer -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-buffer-text'}" />
|
|
<Control HorizontalExpand="True" />
|
|
<Button MinSize="80 0" Name="BufferTransferButton" Access="Public" Text="{Loc 'chem-master-window-transfer-button'}" ToggleMode="True" StyleClasses="OpenRight" />
|
|
<Button MinSize="80 0" Name="BufferSortButton" Access="Public" Text="{Loc 'chem-master-window-sort-type-none'}" StyleClasses="OpenBoth" />
|
|
<Button MinSize="80 0" Name="BufferDiscardButton" Access="Public" Text="{Loc 'chem-master-window-discard-button'}" ToggleMode="True" StyleClasses="OpenLeft" />
|
|
</BoxContainer>
|
|
|
|
<!-- Buffer info -->
|
|
<PanelContainer VerticalExpand="True" MinSize="0 200">
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E" />
|
|
</PanelContainer.PanelOverride>
|
|
|
|
<ScrollContainer HorizontalExpand="True" MinSize="0 200">
|
|
<!-- Buffer reagent list -->
|
|
<BoxContainer Name="BufferInfo" Orientation="Vertical" Margin="4" HorizontalExpand="True">
|
|
<Label Text="{Loc 'chem-master-window-buffer-empty-text'}" />
|
|
</BoxContainer>
|
|
</ScrollContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
|
|
<BoxContainer Orientation="Vertical" HorizontalExpand="True" Margin="5" SeparationOverride="10">
|
|
<!-- Output container info -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-container-label'}" />
|
|
<Control HorizontalExpand="True" />
|
|
<Button MinSize="80 0" Name="OutputEjectButton" Access="Public" Text="{Loc 'chem-master-window-eject-button'}" />
|
|
</BoxContainer>
|
|
|
|
<PanelContainer VerticalExpand="True" MinSize="0 200">
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E" />
|
|
</PanelContainer.PanelOverride>
|
|
|
|
<ScrollContainer HorizontalExpand="True" MinSize="0 200">
|
|
<!-- Initially empty, when server sends state data this will have container contents and fill volume.-->
|
|
<BoxContainer Name="OutputContainerInfo" Orientation="Vertical" Margin="4" HorizontalExpand="True">
|
|
<Label Text="{Loc 'chem-master-window-no-container-loaded-text'}" />
|
|
</BoxContainer>
|
|
</ScrollContainer>
|
|
</PanelContainer>
|
|
|
|
<!-- Padding -->
|
|
<Control MinSize="0 10" />
|
|
|
|
<!-- Packaging -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-packaging-text'}" />
|
|
<Control HorizontalExpand="True"/>
|
|
<Label Text="{Loc 'chem-master-window-buffer-label'}" />
|
|
<Label Name="BufferCurrentVolume" StyleClasses="LabelSecondaryColor" />
|
|
</BoxContainer>
|
|
|
|
<!-- Wrap the packaging info-->
|
|
<PanelContainer>
|
|
<PanelContainer.PanelOverride>
|
|
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E" />
|
|
</PanelContainer.PanelOverride>
|
|
|
|
<!-- Packaging Info -->
|
|
<BoxContainer Orientation="Vertical" Margin="4" HorizontalExpand="True" VerticalExpand="True" SeparationOverride="5">
|
|
<!-- Label for output -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-current-text-label'}" />
|
|
<Control HorizontalExpand="True" MinSize="50 0"/>
|
|
<LineEdit Name="LabelLineEdit" SetWidth="455"/>
|
|
</BoxContainer>
|
|
|
|
<!-- Pills Type Buttons -->
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-pill-type-label'}"/>
|
|
<Control HorizontalExpand="True" MinSize="50 0"/>
|
|
<GridContainer Name="Grid" Columns="10">
|
|
<!-- Pills type buttons are generated in the code -->
|
|
</GridContainer>
|
|
</BoxContainer>
|
|
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-pills-label'}" />
|
|
<Control HorizontalExpand="True" MinSize="50 0" />
|
|
<Label Text="{Loc 'chem-master-window-pills-number-label'}" Margin="5 0 0 0" StyleClasses="LabelSecondaryColor" />
|
|
<SpinBox MinSize="100 0" Name="PillNumber" Access="Public" Value="0" />
|
|
<Label Text="{Loc 'chem-master-window-dose-label'}" Margin="5 0 0 0" StyleClasses="LabelSecondaryColor" />
|
|
<SpinBox MinSize="100 0" Name="PillDosage" Access="Public" Value="1" />
|
|
<Button MinSize="80 0" Name="CreatePillButton" Access="Public" Text="{Loc 'chem-master-window-create-button'}" />
|
|
</BoxContainer>
|
|
|
|
<BoxContainer Orientation="Horizontal">
|
|
<Label Text="{Loc 'chem-master-window-bottles-label'}" />
|
|
<Control HorizontalExpand="True" MinSize="50 0" />
|
|
<Label Text="{Loc 'chem-master-window-dose-label'}" Margin="5 0 0 0" StyleClasses="LabelSecondaryColor" />
|
|
<SpinBox MinSize="100 0" Name="BottleDosage" Access="Public" Value="0" />
|
|
<Button MinSize="80 0" Name="CreateBottleButton" Access="Public" Text="{Loc 'chem-master-window-create-button'}" />
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
</TabContainer>
|
|
</controls:FancyWindow>
|