double inventory screen
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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&guid=32cc109c30db4d449bcd8b7bffbef9ba&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>
|
||||
|
||||
@@ -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}
|
||||
Reference in New Issue
Block a user