* fix workbench icons * workbench search * fix 1 * UI finalize * fix material localization * restore shard sprite * Update sewing_table.yml
70 lines
3.5 KiB
XML
70 lines
3.5 KiB
XML
<DefaultWindow xmlns="https://spacestation14.io"
|
|
xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
|
|
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
|
|
Title="{Loc 'cp14-workbench-ui-title'}"
|
|
SetSize="700 500"
|
|
MinSize="700 300">
|
|
<BoxContainer Orientation="Horizontal">
|
|
<!-- Main -->
|
|
<BoxContainer HorizontalExpand="True" VerticalExpand="True" Orientation="Horizontal">
|
|
<!-- Product list (left side UI) -->
|
|
<BoxContainer SizeFlagsStretchRatio="0.5" HorizontalExpand="True" Orientation="Vertical" Margin="0 0 10 0">
|
|
<!-- Search Bar -->
|
|
<LineEdit Name="SearchBar" Margin="4" PlaceHolder="Search" HorizontalExpand="True" />
|
|
<!-- Crafts container -->
|
|
<ScrollContainer HorizontalExpand="True" VerticalExpand="True" MinSize="0 200">
|
|
<BoxContainer Name="CraftsContainer" Orientation="Vertical" HorizontalExpand="True" />
|
|
</ScrollContainer>
|
|
</BoxContainer>
|
|
|
|
<!-- Craft view (right side UI) -->
|
|
<BoxContainer SizeFlagsStretchRatio="0.5" Orientation="Vertical" HorizontalExpand="True"
|
|
VerticalExpand="True">
|
|
<PanelContainer HorizontalExpand="True" VerticalExpand="True">
|
|
<!-- Background -->
|
|
<PanelContainer.PanelOverride>
|
|
<graphics:StyleBoxFlat BackgroundColor="#41332f" />
|
|
</PanelContainer.PanelOverride>
|
|
|
|
<!-- Content -->
|
|
<BoxContainer HorizontalExpand="True" VerticalExpand="True" Orientation="Vertical">
|
|
<!-- Item info -->
|
|
<!-- icon -->
|
|
<EntityPrototypeView Name="ItemView"
|
|
Scale="2,2"
|
|
Margin="0,0,4,0"
|
|
MinSize="64 64"
|
|
MaxSize="64 64"
|
|
HorizontalAlignment="Left" />
|
|
|
|
<!-- name & description -->
|
|
<BoxContainer Margin="5 0 0 0" HorizontalExpand="True" VerticalExpand="True"
|
|
Orientation="Vertical">
|
|
<RichTextLabel Name="ItemName" Margin="5" />
|
|
<RichTextLabel Name="ItemDescription" Margin="5" />
|
|
</BoxContainer>
|
|
|
|
<controls:HLine Color="#404040" Thickness="2" Margin="0 5" />
|
|
|
|
<!-- Required title -->
|
|
<Label Margin="5 0 0 0" Text="{Loc 'cp14-workbench-recipe-list'}" />
|
|
|
|
<!-- Craft requirements content -->
|
|
<!-- Added by code -->
|
|
<BoxContainer
|
|
Margin="5 0 0 0"
|
|
Name="ItemRequirements"
|
|
Orientation="Vertical" VerticalExpand="True"
|
|
HorizontalExpand="True" />
|
|
|
|
<controls:HLine Color="#404040" Thickness="5" Margin="0 5" />
|
|
|
|
<!-- Craft button -->
|
|
<Button Name="CraftButton" Text="{Loc 'cp14-workbench-craft'}" />
|
|
</BoxContainer>
|
|
</PanelContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</BoxContainer>
|
|
</DefaultWindow>
|