This commit is contained in:
CortexCore
2023-10-24 23:37:59 +08:00
parent 325f63d6bc
commit 3e39e627bc
388 changed files with 29043 additions and 889 deletions

View File

@@ -55,8 +55,6 @@ TabBar Button:disabled {
}
.equip-container {
width: 128px;
height: 128px;
background-color: rgba(0, 0, 0, 0.5);
margin-left: 8px;
margin-right: 8px;
@@ -70,6 +68,9 @@ TabBar Button:disabled {
border-right-color: rgb(32, 32, 32);
border-top-color: rgb(32, 32, 32);
border-bottom-color: rgb(32, 32, 32);
min-width: 128px;
min-height: 128px;
max-width: 256px;
}
.equip-container:hover {

View File

@@ -57,12 +57,30 @@
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="survival-container" style="flex-grow: 1;">
<ui:Instance template="Survival-Template" name="Survival-Template" />
<ui:VisualElement name="Prop" picking-mode="Ignore">
<ui:Label text="道具" display-tooltip-when-elided="true" class="title" />
<ui:VisualElement style="flex-direction: row;">
<ui:VisualElement name="EquipmentAsTactics" class="equip-container">
<ui:Label text="战术道具" display-tooltip-when-elided="true" style="position: absolute; left: 0; bottom: 8px; -unity-text-align: upper-center; width: 119px;" />
<ui:VisualElement name="icon-image" picking-mode="Ignore" />
</ui:VisualElement>
<ui:VisualElement name="EquipmentAsThrow" class="equip-container">
<ui:Label text="投掷道具" display-tooltip-when-elided="true" style="position: absolute; left: 0; right: 0; bottom: 8px; -unity-text-align: upper-center;" />
<ui:VisualElement name="icon-image" picking-mode="Ignore" />
</ui:VisualElement>
<ui:VisualElement name="EquipmentAsArmorPlate" class="equip-container">
<ui:Label text="护甲插板" display-tooltip-when-elided="true" style="position: absolute; left: 0; right: 0; bottom: 8px; -unity-text-align: upper-center;" />
<ui:VisualElement name="icon-image" picking-mode="Ignore" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="player-status" style="display: flex; visibility: visible; overflow: visible;" />
<ui:VisualElement name="player-status" style="display: flex; visibility: visible; overflow: visible;">
<ui:VisualElement name="survival-container" style="flex-grow: 1;">
<ui:Instance template="Survival-Template" name="Survival-Template" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="inventory-items" style="padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; background-color: rgb(32, 32, 32);">
<ui:VisualElement style="flex-direction: row; align-items: center;">
<ui:Label text="背包物品" display-tooltip-when-elided="true" class="title" />

View File

@@ -0,0 +1,8 @@
.inventory-container {
width: 600px;
background-color: rgb(0, 0, 0);
height: 768px;
flex-wrap: nowrap;
flex-direction: column;
flex-grow: 0;
}

View File

@@ -0,0 +1,16 @@
<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/BITKit/Unity/UX/Common/Common.uss?fileID=7433441132597879392&amp;guid=a3a69d3518fd02b489e721f3c5b0b539&amp;type=3#Common" />
<Style src="project://database/Assets/Artists/UX/InventorySwap.uss?fileID=7433441132597879392&amp;guid=b1116e2395199b24eab2912d6e319652&amp;type=3#InventorySwap" />
<ui:VisualElement class="root" style="background-color: rgba(0, 0, 0, 0.78);" />
<ui:VisualElement class="root">
<ui:VisualElement class="flex-center" style="flex-direction: row;">
<ui:ScrollView name="Self-Container" class="inventory-container">
<ui:VisualElement name="self-container" style="flex-direction: row; flex-wrap: wrap;" />
</ui:ScrollView>
<ui:VisualElement name="VisualElement" style="width: 200px;" />
<ui:ScrollView name="Other-Container" class="inventory-container">
<ui:VisualElement name="other-container" style="flex-direction: row; flex-wrap: wrap;" />
</ui:ScrollView>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>