canto/Assets/UI/ItemSlot.uxml
2025-08-06 12:51:11 -04:00

20 lines
1.4 KiB
Text

<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/inventory.uss?fileID=7433441132597879392&amp;guid=c3ca9264ef5afbfbd94f1ca31cb51fa4&amp;type=3" />
<Style src="project://database/Assets/UI/itemslot.uss?fileID=7433441132597879392&amp;guid=ab2fe9f4942517d359babfd8c160725c&amp;type=3#itemslot" />
<ui:VisualElement name="container" data-source-type="KitsuneCafe.ItemSystem.InventoryItem, Assembly-CSharp" enabled="true" class="container" style="flex-grow: 1;">
<ui:VisualElement name="header" class="header">
<ui:Label name="item-name-label" text="Label">
<Bindings>
<ui:DataBinding property="text" data-source-path="Item.displayName" binding-mode="ToTarget" />
</Bindings>
</ui:Label>
</ui:VisualElement>
<ui:VisualElement name="content" style="flex-grow: 1;">
<ui:VisualElement name="item-icon" style="flex-grow: 1; -unity-background-scale-mode: scale-to-fit;">
<Bindings>
<ui:DataBinding property="style.backgroundImage" data-source-path="Item.icon" binding-mode="ToTarget" />
</Bindings>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>