6
StarHorizon_Public/Content.Client/_NF/Research/UI/FancyTechnologyInfoPanel.xaml
2026-01-13 18:31:02 +02:00

96 lines
4.2 KiB
XML

<Control xmlns="https://spacestation14.io"
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client"
xmlns:customControls="clr-namespace:Content.Client.Administration.UI.CustomControls;assembly=Content.Client"
Margin="5"
MinWidth="350"
VerticalExpand="True"
HorizontalExpand="True">
<BoxContainer Orientation="Vertical"
VerticalExpand="True"
HorizontalExpand="True">
<BoxContainer
Name="InfoContainer"
Orientation="Vertical"
HorizontalExpand="True"
Margin="5 5 5 0"
SizeFlagsStretchRatio="3">
<BoxContainer Orientation="Horizontal"
HorizontalExpand="True">
<BoxContainer Orientation="Horizontal"
HorizontalExpand="True"
SizeFlagsStretchRatio="1">
<TextureRect Name="DisciplineTexture"
TextureScale="7 7"
VerticalAlignment="Center"
Margin="4"/>
<EntityPrototypeView Name="TechnologyTexture"
Scale="2 2"
VerticalAlignment="Center"
Margin="4"/>
</BoxContainer>
<Control HorizontalExpand="True"
SizeFlagsStretchRatio="2"/>
</BoxContainer>
<Label Name="TechnologyNameLabel"
StyleClasses="LabelKeyText"
HorizontalExpand="True"/>
<RichTextLabel Name="TechnologyCostLabel"
HorizontalExpand="True"/>
<Button Name="ResearchButton"
Text="{Loc 'research-console-menu-server-research-button'}"
HorizontalAlignment="Left"
Margin="0 4 0 0"/>
</BoxContainer>
<BoxContainer
Orientation="Vertical"
VerticalExpand="True"
Margin="5"
SizeFlagsStretchRatio="1">
<BoxContainer Name="PrereqsContainer"
Orientation="Vertical"
Margin="5">
<Label Text="{Loc 'research-console-required-text'}"
HorizontalAlignment="Center"/>
<customControls:HSeparator StyleClasses="LowDivider"
Margin="0 0 0 10"/>
<PanelContainer>
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E"/>
</PanelContainer.PanelOverride>
<BoxContainer
Name="RequiredTechContainer"
Orientation="Vertical">
<RichTextLabel Name="NoPrereqLabel" HorizontalAlignment="Center" Text="{Loc 'research-console-no-tech-requirements'}" Visible="True"/>
</BoxContainer>
</PanelContainer>
</BoxContainer>
<BoxContainer
Name="RecipesContainer"
Orientation="Vertical"
VerticalExpand="True"
SizeFlagsStretchRatio="1"
Margin="5">
<Label Text="{Loc 'research-console-unlocks-text'}"
HorizontalAlignment="Center"/>
<customControls:HSeparator StyleClasses="LowDivider"
Margin="0 0 0 10"/>
<PanelContainer VerticalExpand="True">
<PanelContainer.PanelOverride>
<gfx:StyleBoxFlat BackgroundColor="#1B1B1E"/>
</PanelContainer.PanelOverride>
<ScrollContainer
HScrollEnabled="False"
HorizontalExpand="True"
VerticalExpand="True">
<BoxContainer
Name="UnlocksContainer"
Orientation="Vertical"
VerticalExpand="True">
</BoxContainer>
</ScrollContainer>
</PanelContainer>
</BoxContainer>
</BoxContainer>
</BoxContainer>
</Control>