1
This commit is contained in:
44
Assets/Artists/Configs/Items/item_suitcase_yangdun.asset
Normal file
44
Assets/Artists/Configs/Items/item_suitcase_yangdun.asset
Normal file
@@ -0,0 +1,44 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5a1bd480dd5d8fd4487b77d0b0f56ab5, type: 3}
|
||||
m_Name: item_suitcase_yangdun
|
||||
m_EditorClassIdentifier:
|
||||
id: 1006
|
||||
displayName:
|
||||
rid: 2091308013898957191
|
||||
description:
|
||||
rid: 2091308013898957192
|
||||
icon: {fileID: 21300000, guid: dac88ff57837fb84bb81ac3c183bab59, type: 3}
|
||||
rectangleIcon: {fileID: 0}
|
||||
quality: 0
|
||||
maxStack: 1
|
||||
model: {fileID: -8679921383154817045, guid: bfaf50fe3d6e63141946d6385de31004, type: 3}
|
||||
value: 0
|
||||
isImprovised: 0
|
||||
allowUseWhileKnocked: 0
|
||||
properties: []
|
||||
factoryProperty: []
|
||||
controllerClass:
|
||||
rid: -2
|
||||
references:
|
||||
version: 2
|
||||
RefIds:
|
||||
- rid: -2
|
||||
type: {class: , ns: , asm: }
|
||||
- rid: 2091308013898957191
|
||||
type: {class: Reference, ns: BITKit, asm: BITKit}
|
||||
data:
|
||||
value: "\u7F8A\u987F\u7684\u968F\u8EAB\u5305"
|
||||
- rid: 2091308013898957192
|
||||
type: {class: Reference, ns: BITKit, asm: BITKit}
|
||||
data:
|
||||
value: "\u7F8A\u987F\u7684\u9B54\u6CD5\u4E16\u754C\u968F\u8EAB\u5305,\u91CC\u9762\u6709\u5404\u79CD\u5404\u6837\u7684\u9B54\u6CD5\u5C0F\u9053\u5177"
|
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1fe8d1930925e47449bb73f56b373a36
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -25,3 +25,5 @@ MonoBehaviour:
|
||||
Value: item_sushi_futomaski
|
||||
- Key: 1004
|
||||
Value: item_taiyaki
|
||||
- Key: 1006
|
||||
Value: item_suitcase_yangdun
|
||||
|
@@ -43,6 +43,8 @@ namespace Net.Like.Xue.Tokyo
|
||||
serviceCollection.AddSingleton<IUXSnapshotWindow, UXSnapshotWindow>();
|
||||
|
||||
serviceCollection.AddSingleton<IUXItemInspector, UXItemInspector>();
|
||||
|
||||
serviceCollection.AddSingleton<IUXInventorySwap, UXInventorySwap>();
|
||||
|
||||
//获取服务提供者
|
||||
await using var serviceProvider = BITApp.ServiceProvider = serviceCollection.BuildServiceProvider();
|
||||
@@ -70,6 +72,9 @@ namespace Net.Like.Xue.Tokyo
|
||||
serviceProvider.GetRequiredService<IUXInventory>();
|
||||
|
||||
serviceProvider.GetRequiredService<UXContextMenu>();
|
||||
|
||||
|
||||
serviceProvider.GetRequiredService<IUXInventorySwap>();
|
||||
|
||||
Application.targetFrameRate = 165;
|
||||
|
||||
|
24
Assets/Artists/UX/ui_inventory_swap.uxml
Normal file
24
Assets/Artists/UX/ui_inventory_swap.uxml
Normal file
@@ -0,0 +1,24 @@
|
||||
<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="ux_item_template" src="project://database/Assets/Artists/UX/ux_item_template.uxml?fileID=9197481963319205126&guid=fa2c13defbae3254882a968978396ed0&type=3#ux_item_template" />
|
||||
<Style src="project://database/Assets/BITKit/Unity/UX/Common/Common.uss?fileID=7433441132597879392&guid=a3a69d3518fd02b489e721f3c5b0b539&type=3#Common" />
|
||||
<Style src="project://database/Assets/Artists/UX/Style.uss?fileID=7433441132597879392&guid=506d41b7c5d56a44bb5845e69055a5eb&type=3#Style" />
|
||||
<ui:VisualElement picking-mode="Ignore" class="root" style="background-image: url("project://database/Assets/BITKit/Unity/Art/Backgrounds/BG_Gradient_Half_BT_.png?fileID=21300000&guid=d19ac049792985540825b54b0b002529&type=3#BG_Gradient_Half_BT_"); background-color: rgba(0, 0, 0, 0.78); -unity-background-image-tint-color: rgb(0, 0, 0);" />
|
||||
<ui:VisualElement class="flex-center" style="min-width: 768px;">
|
||||
<ui:Label tabindex="-1" text="物品容器" parse-escape-sequences="true" display-tooltip-when-elided="true" name="target-label" class="tl" />
|
||||
<ui:VisualElement name="target-container" style="flex-direction: row; height: 100px;">
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
</ui:VisualElement>
|
||||
<ui:Label tabindex="-1" text="羊顿的背包" parse-escape-sequences="true" display-tooltip-when-elided="true" name="self-label" />
|
||||
<ui:VisualElement name="self-container" style="flex-direction: row; height: 100px;">
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
<ui:Instance template="ux_item_template" name="ux_item_template" />
|
||||
</ui:VisualElement>
|
||||
</ui:VisualElement>
|
||||
</ui:UXML>
|
10
Assets/Artists/UX/ui_inventory_swap.uxml.meta
Normal file
10
Assets/Artists/UX/ui_inventory_swap.uxml.meta
Normal file
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ac47a40d0bd6ea40ba853944315c072
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
Reference in New Issue
Block a user