This commit is contained in:
CortexCore
2023-10-30 01:25:53 +08:00
parent add6d0cab3
commit 18f664a545
125 changed files with 3529 additions and 700 deletions

View File

@@ -52,6 +52,9 @@
</ui:VisualElement>
<ui:VisualElement name="hud-container" picking-mode="Ignore" class="root">
<ui:VisualElement class="flex-center" style="top: 64px; width: 384px; height: 8px; background-color: rgba(255, 255, 255, 0.13);">
<ui:VisualElement style="position: absolute; top: -491px; align-items: auto; align-self: auto; width: 512px; overflow: hidden; left: -65px; display: none;">
<ui:VisualElement style="background-image: url(&apos;project://database/Assets/Artists/Arts/Images/Compass%20Bar.png?fileID=2800000&amp;guid=0095854de8f1fa346acff44a54009060&amp;type=3#Compass Bar&apos;); width: 1920px; height: 32px;" />
</ui:VisualElement>
<ui:VisualElement name="stamina-fill" style="width: 64%; height: 8px; background-color: rgb(255, 255, 255);" />
</ui:VisualElement>
</ui:VisualElement>

View File

@@ -110,3 +110,26 @@ TabBar Button:disabled {
-unity-background-image-tint-color: rgb(255, 255, 255);
scale: 1.1 1.1;
}
.inventory-container {
width: 624px;
height: 768px;
background-color: rgba(0, 0, 0, 0.5);
align-items: flex-start;
flex-wrap: wrap;
flex-direction: row;
padding-left: 24px;
padding-right: 24px;
padding-top: 24px;
padding-bottom: 24px;
}
.inventory-container-background {
padding-left: 16px;
padding-right: 16px;
padding-top: 16px;
padding-bottom: 16px;
background-color: rgb(32, 32, 32);
min-width: 256px;
min-height: 512px;
}

View File

@@ -14,8 +14,8 @@
</ui:VisualElement>
<BITKit.UX.TabContainer picking-mode="Ignore" CustomTabPath="inventory-tab" name="inventory-window" CurrentTab="0" style="position: absolute; left: 64px; right: 64px; top: 192px; bottom: 100px;">
<ui:VisualElement name="inventory-window" picking-mode="Ignore" style="align-items: flex-start; display: flex; flex-direction: row; justify-content: space-between;">
<ui:VisualElement name="equips-container" style="display: flex; margin-left: 0; margin-right: 0; background-color: rgb(32, 32, 32); padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px;">
<ui:Label text="已装备配置" display-tooltip-when-elided="true" class="title" style="display: flex;" />
<ui:VisualElement name="equips-container" class="inventory-container-background">
<ui:Label text="已装备配置" display-tooltip-when-elided="true" class="title" style="display: flex; margin-bottom: 8px;" />
<ui:VisualElement name="equip-container" style="width: 768px; height: 768px; display: flex; padding-left: 24px; padding-right: 24px; padding-top: 24px; padding-bottom: 24px; flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; background-color: rgb(16, 16, 16);">
<ui:VisualElement name="Weapons">
<ui:Label text="武器装备" display-tooltip-when-elided="true" class="title" />
@@ -76,14 +76,14 @@
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="player-status" style="display: flex; visibility: visible; overflow: visible;">
<ui:VisualElement name="survival-container" style="flex-grow: 1;">
<ui:VisualElement name="player-status" style="display: flex; visibility: visible; overflow: visible; align-items: stretch; justify-content: flex-start; flex-direction: column; flex-grow: 1; padding-left: 8px; padding-right: 8px; padding-top: 8px; padding-bottom: 8px;">
<ui:VisualElement name="survival-container">
<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" />
<ui:VisualElement name="inventory-items" class="inventory-container-background">
<ui:VisualElement style="flex-direction: row; align-items: center; margin-bottom: 8px;">
<ui:Label text="重量" display-tooltip-when-elided="true" class="title" />
<ui:VisualElement name="weight-bar" style="flex-direction: row; height: 32px; flex-grow: 1;">
<ui:VisualElement name="weight-rect" style="background-color: rgba(255, 255, 255, 0.25); flex-grow: 1;">
<ui:VisualElement name="weight-fill" class="root" style="width: 78%; background-color: rgb(26, 130, 255);" />
@@ -91,11 +91,15 @@
<ui:Label text="8/16" display-tooltip-when-elided="true" name="weight-label" class="title" style="-unity-text-align: middle-left;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="inventory-container" style="width: 768px; height: 768px; background-color: rgba(0, 0, 0, 0.5); align-items: flex-start; flex-wrap: wrap; flex-direction: row; padding-left: 24px; padding-right: 24px; padding-top: 24px; padding-bottom: 24px;" />
<ui:VisualElement name="inventory-container" class="inventory-container" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="craft-window" picking-mode="Ignore" />
<ui:VisualElement name="map-window" picking-mode="Ignore" />
<ui:VisualElement name="map-window" picking-mode="Ignore">
<ui:ScrollView mode="VerticalAndHorizontal" style="width: 768px; height: 768px; background-color: rgba(0, 0, 0, 0.5); background-image: url(&apos;project://database/Assets/Artists/Arts/Maps/Map_DMZ_128.png?fileID=2800000&amp;guid=79969479327e05b43985f04588e2db25&amp;type=3#Map_DMZ_128&apos;);">
<ui:VisualElement style="width: 1024px; height: 1024px;" />
</ui:ScrollView>
</ui:VisualElement>
<ui:VisualElement name="quest-window" picking-mode="Ignore" />
<ui:VisualElement name="skillTree-window" picking-mode="Ignore" />
</BITKit.UX.TabContainer>

View File

@@ -1,16 +1,40 @@
<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="ItemContainer" src="project://database/Assets/Artists/UX/ItemContainer.uxml?fileID=9197481963319205126&amp;guid=6e7ac9656332fa2489cc7fe4a9f0bf81&amp;type=3#ItemContainer" />
<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" />
<Style src="project://database/Assets/Artists/UX/Inventory.uss?fileID=7433441132597879392&amp;guid=48b2564db1f95a443b921af9745fd92a&amp;type=3#Inventory" />
<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 class="flex-center" style="flex-direction: row; height: 768px;">
<ui:VisualElement class="inventory-container-background">
<ui:Label tabindex="-1" text="你的背包" parse-escape-sequences="true" display-tooltip-when-elided="true" name="player-label" style="margin-bottom: 8px;" />
<ui:ScrollView name="Self-Container" class="inventory-container">
<ui:VisualElement name="self-container" style="flex-direction: row; flex-wrap: wrap; align-items: flex-start;">
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
<ui:Instance template="ItemContainer" name="ItemContainer" />
</ui:VisualElement>
</ui:ScrollView>
</ui:VisualElement>
<ui:VisualElement style="width: 200px;" />
<ui:VisualElement class="inventory-container-background">
<ui:Label tabindex="-1" text="物品容器" parse-escape-sequences="true" display-tooltip-when-elided="true" name="container-label" style="margin-bottom: 8px;" />
<ui:ScrollView name="Other-Container" class="inventory-container">
<ui:VisualElement name="other-container" style="flex-direction: row; flex-wrap: wrap; align-items: flex-start;" />
</ui:ScrollView>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>