This commit is contained in:
MuHua-123
2025-09-19 17:12:46 +08:00
parent 7324361948
commit 473e4ffbe4
103 changed files with 3926 additions and 44 deletions
@@ -4,8 +4,8 @@
<ui:Template name="ItemInfo" src="project://database/Assets/UI%20Toolkit/GamePanel/ItemInfo/ItemInfo.uxml?fileID=9197481963319205126&amp;guid=7b84b855a52611f4291ff7a90fdb83dd&amp;type=3#ItemInfo" />
<Style src="project://database/Assets/UI%20Toolkit/GamePage/BackpackPage/BackpackPage.uss?fileID=7433441132597879392&amp;guid=06b8f7d50f09d2f4b9f9d44aae8a0455&amp;type=3#BackpackPage" />
<ui:VisualElement style="flex-grow: 1; flex-direction: row; align-items: stretch; justify-content: center; padding-top: 100px; padding-right: 100px; padding-bottom: 100px; padding-left: 100px;">
<ui:Instance template="Equipment" name="Equipment" />
<ui:Instance template="Equipment" name="Equipment" style="display: none;" />
<ui:Instance template="Inventory" name="Inventory" style="width: 500px; margin-right: 10px; margin-left: 10px;" />
<ui:Instance template="ItemInfo" name="ItemInfo" style="width: 400px;" />
<ui:Instance template="ItemInfo" name="ItemInfo" style="width: 400px; display: none;" />
</ui:VisualElement>
</ui:UXML>
@@ -1,3 +1,11 @@
.inventory-image {
flex-grow: 1;
}
.inventory-image-drag {
-unity-background-image-tint-color: rgba(255, 255, 255, 0.4);
}
.inventory-count {
margin-top: 0;
margin-right: 5px;
@@ -1,7 +1,7 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/UI%20Toolkit/GamePanel/Inventory/Inventory.uss?fileID=7433441132597879392&amp;guid=509f99a0b8e7fd24c8992a4803182235&amp;type=3#Inventory" />
<ui:VisualElement style="width: 90px; height: 90px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; background-color: rgb(102, 102, 102); border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px;">
<ui:VisualElement name="Image" style="flex-grow: 1;" />
<ui:VisualElement name="Image" class="inventory-image" />
<ui:Label tabindex="-1" text="999" parse-escape-sequences="true" display-tooltip-when-elided="true" enable-rich-text="true" name="Count" class="inventory-count" />
</ui:VisualElement>
</ui:UXML>
@@ -1,6 +1,6 @@
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" xsi="http://www.w3.org/2001/XMLSchema-instance" engine="UnityEngine.UIElements" editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/UI%20Toolkit/GamePopup/DragItem/DragItem.uss?fileID=7433441132597879392&amp;guid=3d366f451d1ef2741a1a89502749877c&amp;type=3#DragItem" />
<ui:VisualElement name="Preview" picking-mode="Ignore" style="width: 90px; height: 90px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; background-color: rgba(0, 0, 0, 0); border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px;">
<ui:VisualElement name="Preview" picking-mode="Ignore" style="width: 90px; height: 90px; margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px;">
<ui:VisualElement name="Image" picking-mode="Ignore" style="flex-grow: 1;" />
<ui:Label tabindex="-1" text="999" parse-escape-sequences="true" display-tooltip-when-elided="true" enable-rich-text="true" name="Count" picking-mode="Ignore" class="dragitem-count dragitem-count-hide" />
</ui:VisualElement>