InventoryScreen
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#Screen {
|
||||
flex-grow: 1;
|
||||
/* padding-left: 30px; padding-top: 30px; padding-right: 30px; padding-bottom: 30px; */
|
||||
flex-direction: row;
|
||||
flex-basis: auto;
|
||||
align-content: flex-start;
|
||||
align-self: auto;
|
||||
justify-content: space-around;
|
||||
align-items: stretch;
|
||||
margin: 30px;
|
||||
}
|
||||
|
||||
.inventory {
|
||||
width: initial;
|
||||
aspect-ratio: 0.7;
|
||||
background-color: rgb(255, 0, 0);
|
||||
/* max-width: 40%; */
|
||||
margin: 10px;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.inventory > .header {
|
||||
-unity-text-align: middle-center;
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.inventory > .container {
|
||||
|
||||
}
|
||||
|
||||
.inventory > .container .item {
|
||||
height: auto;
|
||||
width: 30%;
|
||||
margin: 10px;
|
||||
padding: 4px;
|
||||
background-color: rgb(255, 255, 0);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32cc109c30db4d449bcd8b7bffbef9ba
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
|
||||
disableValidation: 0
|
||||
unsupportedSelectorAction: 0
|
||||
@@ -0,0 +1,12 @@
|
||||
<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>
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f702f69419923044856bc754559430b
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
@@ -0,0 +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="ItemTemplate" class="item">
|
||||
<ui:Label text="Name" name="Name" class="name"/>
|
||||
<ui:Label text="Quantity" name="Quantity" class="quantity"/>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb46dce908061864c935406ab889f172
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
||||
@@ -10,7 +10,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 19101, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Name: InfoBox
|
||||
m_Name: ScreenSpace
|
||||
m_EditorClassIdentifier: UnityEngine.dll::UnityEngine.UIElements.PanelSettings
|
||||
themeUss: {fileID: -4733365628477956816, guid: e35a989aa0a0ee049a4e4d467ba9881e, type: 3}
|
||||
m_DisableNoThemeWarning: 0
|
||||
Reference in New Issue
Block a user