grid recipe view

This commit is contained in:
Ed
2025-05-22 16:59:37 +03:00
parent b0dad26252
commit 9a0905c53e
3 changed files with 36 additions and 12 deletions

View File

@@ -1,14 +1,10 @@
<Control xmlns="https://spacestation14.io">
<Button Name="Button">
<GridContainer Columns="2">
<Button Name="Button" SetSize="48 48">
<EntityPrototypeView Name="View"
Margin="0,0,4,0"
MinSize="48 48"
MaxSize="48 48"
Scale="2,2"
HorizontalAlignment="Center"
VerticalExpand="True"/>
<Label Name="Name"/>
</GridContainer>
</Button>
</Control>

View File

@@ -16,7 +16,11 @@
</BoxContainer>
<!-- Crafts container -->
<ScrollContainer HorizontalExpand="True" VerticalExpand="True" MinSize="0 200">
<BoxContainer Name="CraftsContainer" Orientation="Vertical" HorizontalExpand="True" />
<GridContainer Name="CraftsContainer"
HorizontalExpand="True"
VerticalExpand="True"
Access="Public"
Columns="6" />
</ScrollContainer>
</BoxContainer>

View File

@@ -44,12 +44,36 @@
- type: entity
id: CP14RecipeBucket4
parent: CP14BaseWorkplaceRecipe
name: Крафт верстака 4
description: Пара досок и вы прекрасны
parent:
- CP14BaseWorkplaceRecipe
- CP14SmokingPipe
components:
- type: CP14WorkplaceRecipe
category: cp14-recipe-category-tile
- type: Sprite
sprite: Effects/electricity.rsi
state: electrified
- type: entity
id: CP14RecipeBucket5
parent:
- CP14BaseWorkplaceRecipe
- CP14BaseMop
components:
- type: CP14WorkplaceRecipe
category: cp14-recipe-category-tile
- type: entity
id: CP14RecipeBucket6
parent:
- CP14BaseWorkplaceRecipe
- CP14ActionSpellBloodlust
components:
- type: CP14WorkplaceRecipe
category: cp14-recipe-category-tile
- type: entity
id: CP14RecipeBucket7
parent:
- CP14BaseWorkplaceRecipe
- CP14Lighter
components:
- type: CP14WorkplaceRecipe
category: cp14-recipe-category-tile