double inventory screen

This commit is contained in:
Aggtaa
2026-01-12 12:51:59 +03:00
parent 511914955b
commit e102c651a3
29 changed files with 462 additions and 1144 deletions
+6 -1
View File
@@ -10,13 +10,18 @@
margin: 30px;
}
.inventoryContainer {
flex-shrink: 0;
flex-grow: 0;
flex-direction: row;
}
.inventory {
width: initial;
aspect-ratio: 0.7;
background-color: rgb(255, 0, 0);
/* max-width: 40%; */
margin: 10px;
flex-grow: 1;
}
.inventory > .header {
+2 -7
View File
@@ -1,12 +1,7 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/UI/InventoryScreen.uss?fileID=7433441132597879392&amp;guid=32cc109c30db4d449bcd8b7bffbef9ba&amp;type=3#InventoryScreen"/>
<ui:VisualElement name="Screen">
<ui:VisualElement name="Inventory" class="inventory" style="flex-grow: 0;">
<ui:Label text="Inventory Holder Name" name="Header" enable-rich-text="true" class="header"/>
<ui:VisualElement name="Container" class="container" style="flex-grow: 1; flex-basis: auto;">
<ui:ScrollView name="ContainerScroll" style="height: 100%; width: 100%; flex-direction: column; flex-wrap: wrap; align-items: flex-start; flex-grow: 1;"/>
</ui:VisualElement>
<ui:Label text="Footer" name="Footer" class="footer"/>
</ui:VisualElement>
<ui:VisualElement name="SourceInventory" class="inventoryContainer" />
<ui:VisualElement name="TargetInventory" class="inventoryContainer" />
</ui:VisualElement>
</ui:UXML>
+9
View File
@@ -0,0 +1,9 @@
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<ui:VisualElement name="Inventory" class="inventory" style="flex-grow: 0;">
<ui:Label text="Inventory Holder Name" name="Header" enable-rich-text="true" class="header"/>
<ui:VisualElement name="Container" class="container" style="flex-grow: 1; flex-basis: auto;">
<ui:ScrollView name="ContainerScroll" style="height: 100%; width: 100%; flex-direction: column; flex-wrap: wrap; align-items: flex-start; flex-grow: 1;"/>
</ui:VisualElement>
<ui:Label text="Footer" name="Footer" class="footer"/>
</ui:VisualElement>
</ui:UXML>
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 473047aab40dd3b42870b44f023fbaa5
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}