This commit is contained in:
MuHua-123
2025-09-30 18:01:43 +08:00
parent 0c4240b621
commit ca863976b3
35 changed files with 4187 additions and 2736 deletions
@@ -0,0 +1,8 @@
<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="True">
<Style src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentWindow.uss?fileID=7433441132597879392&amp;guid=8bceec5d72cb41343aace6e8d7439e3b&amp;type=3#EquipmentWindow" />
<ui:TextField picking-mode="Ignore" label="名字" value="filler text" name="Name" />
<ui:IntegerField label="等级" value="42" name="Level" />
<uie:ObjectField label="预览图" name="Sprite" type="UnityEngine.Sprite, UnityEngine.CoreModule" />
<ui:EnumField label="稀有度" type="UnityEngine.TextAlignment, UnityEngine.TextRenderingModule" value="Center" name="Rarity" />
<ui:EnumField label="武器类型" type="UnityEngine.TextAlignment, UnityEngine.TextRenderingModule" value="Center" name="WeaponCategory" class="ew-hide" />
</ui:UXML>
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: b67c220f946395e4bb23a70520a0ec55
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
@@ -0,0 +1,18 @@
<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="True">
<ui:Template name="EquipmentInfo" src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentInput.uxml?fileID=9197481963319205126&amp;guid=b67c220f946395e4bb23a70520a0ec55&amp;type=3#EquipmentInput" />
<Style src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentWindow.uss?fileID=7433441132597879392&amp;guid=8bceec5d72cb41343aace6e8d7439e3b&amp;type=3#EquipmentWindow" />
<Style src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentPanel/EquipmentPanel.uss?fileID=7433441132597879392&amp;guid=8659d41deeaac2e4c83d9287f11f74bd&amp;type=3#EquipmentPanel" />
<ui:Instance template="EquipmentInfo" name="EquipmentInput" />
<ui:VisualElement name="EquipmentSeparate">
<ui:VisualElement style="flex-direction: row; align-items: center;">
<ui:Label tabindex="-1" text="基础属性" parse-escape-sequences="true" display-tooltip-when-elided="true" class="ep-separate-label" />
<ui:VisualElement style="height: 2px; flex-grow: 1; background-color: rgb(38, 38, 38); margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="EquipmentSeparate">
<ui:VisualElement style="flex-direction: row; align-items: center;">
<ui:Label tabindex="-1" text="效果" parse-escape-sequences="true" display-tooltip-when-elided="true" class="ep-separate-label" />
<ui:VisualElement style="height: 2px; flex-grow: 1; background-color: rgb(38, 38, 38); margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px;" />
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: ba4b25ea6d09a3a4985edfdf2e8f80db
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
@@ -0,0 +1,3 @@
.ew-hide {
display: none;
}
@@ -1,6 +1,8 @@
<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">
<ui:Template name="Button1" src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/Button/ButtonTemplate.uxml?fileID=9197481963319205126&amp;guid=72d39f3bc55f0a94196e83e8bfea1857&amp;type=3#ButtonTemplate" />
<ui:Template name="EquipmentList" src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentList.uxml?fileID=9197481963319205126&amp;guid=723d660a1c7f9a148829ed36eacad3df&amp;type=3#EquipmentList" />
<ui:Template name="EquipmentSettings" src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentSettings.uxml?fileID=9197481963319205126&amp;guid=ba4b25ea6d09a3a4985edfdf2e8f80db&amp;type=3#EquipmentSettings" />
<ui:Template name="EquipmentPanel" src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentPanel/EquipmentPanel.uxml?fileID=9197481963319205126&amp;guid=22e06df30da9e2c4ba404d47958e03ec&amp;type=3#EquipmentPanel" />
<Style src="project://database/Assets/ModuleCore/ModuleEquipment/UI%20Toolkit/EquipmentWindow/EquipmentWindow.uss?fileID=7433441132597879392&amp;guid=8bceec5d72cb41343aace6e8d7439e3b&amp;type=3#EquipmentWindow" />
<ui:VisualElement name="EquipmentType" style="flex-direction: row; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px;">
<ui:Instance template="Button1" name="Button1" />
@@ -23,10 +25,15 @@
<ui:VisualElement name="FunctionPanel" style="flex-grow: 1; flex-direction: row;">
<ui:Instance template="EquipmentList" name="EquipmentList" style="width: 100px;" />
<ui:VisualElement style="background-color: rgb(38, 38, 38); width: 2px;" />
<ui:Instance template="EquipmentSettings" name="EquipmentSettings" style="flex-grow: 1;" />
<ui:VisualElement style="background-color: rgb(38, 38, 38); width: 2px;" />
<ui:Instance template="EquipmentPanel" name="EquipmentPanel" style="min-width: 200px;" />
</ui:VisualElement>
<ui:VisualElement style="height: 2px; background-color: rgb(38, 38, 38);" />
<ui:VisualElement name="ButtonGroup" style="flex-direction: row;">
<ui:Button text="创建" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button1" style="margin-top: 2px; margin-right: 2px; margin-bottom: 2px; margin-left: 2px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 96px;" />
<ui:Button text="创建(随机)" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button2" style="margin-top: 2px; margin-right: 2px; margin-bottom: 2px; margin-left: 2px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 96px;" />
<ui:Button text="删除" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button2" style="margin-top: 2px; margin-right: 2px; margin-bottom: 2px; margin-left: 2px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 96px;" />
<ui:VisualElement style="flex-grow: 1;" />
<ui:Button text="刷新" parse-escape-sequences="true" display-tooltip-when-elided="true" name="Button3" style="margin-top: 2px; margin-right: 2px; margin-bottom: 2px; margin-left: 2px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; width: 96px;" />
</ui:VisualElement>
</ui:UXML>