Added styles and fix button for API

This commit is contained in:
2025-06-26 19:49:14 -06:00
parent 23cc4ab8f0
commit 5413f80ee2
14 changed files with 101 additions and 33 deletions

View File

@@ -0,0 +1,8 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ui:Style src="Styles/FurnitureItem.uss" />
<ui:VisualElement class="furniture-item">
<ui:Label name="nameLabel" class="furniture-title"/>
<ui:Label name="colorLabel" class="furniture-subtitle"/>
<ui:Label name="lineLabel" class="furniture-subtitle"/>
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 13b2bef3f605fb04586c1110bfcbe58f
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -0,0 +1,7 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ui:Style src="Styles/MainScreen.uss" />
<ui:VisualElement class="main-screen">
<ui:Label text="Furniture List" class="title-label" />
<ui:ScrollView name="furniture-list" style="flex-grow: 1" />
</ui:VisualElement>
</ui:UXML>

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: a4152151ddf5a734ab4b95fdb521e68a
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}

View File

@@ -26,12 +26,12 @@ MonoBehaviour:
m_TargetDisplay: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_ColorClearValue: {r: 1, g: 1, b: 1, a: 0}
m_DynamicAtlasSettings:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
m_MaxSubTextureSize: 64
m_ActiveFilters: 31
m_ActiveFilters: -1
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: da2874f5108006a4bba0f3f672b0fae4
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,33 @@
.furniture-item {
padding: 10px;
margin-bottom: 8px;
background-color: #2c2c2c;
border-radius: 8px;
border-width: 1px;
border-color: #555;
flex-direction: column;
color: white;
flex-grow: 0;
flex-shrink: 0;
height: auto;
}
.furniture-title {
font-size: 14px;
-unity-font-style: bold;
color: white;
white-space: normal;
word-wrap: break-word;
overflow: hidden;
}
.furniture-subtitle {
font-size: 13px;
color: #cccccc;
}
#FurnitureItemDocumentUI-container{
display:none;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 99e4a78981d0caa41bdd60d9258bba6d
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0

View File

@@ -0,0 +1,13 @@
.main-screen {
flex-grow: 1;
padding: 10px;
background-color: rgb(255, 255, 255);
}
.title-label {
background-color: transparent;
color: black;
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1993886af6eb1494f9f4a4f3c968807a
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
disableValidation: 0