From 5ca2c9ce43056a7475f37fc9d058dd31db1cb080 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Tue, 6 May 2025 16:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=8F=8D=E9=A6=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Art/UIPrefab/UIBody3D.prefab | 156 +++++++++++++- Assets/Art/UIPrefab/UIBody3DInfo.prefab | 8 +- Assets/Art/UIPrefab/UIBody3DMenuTree.prefab | 197 ++++++++++-------- Assets/Art/UIPrefab/UIDraw.prefab | 4 +- .../UIBody3D/左侧工具面板-鼠标 (1).png | Bin 0 -> 1356 bytes .../UIBody3D/左侧工具面板-鼠标 (1).png.meta | 179 ++++++++++++++++ .../UITextures/UIBody3D/左侧工具面板-鼠标.png | Bin 0 -> 1345 bytes .../UIBody3D/左侧工具面板-鼠标.png.meta | 179 ++++++++++++++++ Assets/Scripts/Event/Events.cs | 5 + Assets/Scripts/UI/UIBody3D.cs | 2 + Assets/Scripts/UI/UIBody3DInfo.cs | 32 +-- Assets/Scripts/UI/UIBody3DMenuTree.cs | 31 +-- 12 files changed, 676 insertions(+), 117 deletions(-) create mode 100644 Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标 (1).png create mode 100644 Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标 (1).png.meta create mode 100644 Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标.png create mode 100644 Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标.png.meta diff --git a/Assets/Art/UIPrefab/UIBody3D.prefab b/Assets/Art/UIPrefab/UIBody3D.prefab index a583df78..7e23c18d 100644 --- a/Assets/Art/UIPrefab/UIBody3D.prefab +++ b/Assets/Art/UIPrefab/UIBody3D.prefab @@ -496,6 +496,7 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: + - {fileID: 525842453583727716} - {fileID: 7125848699854436635} m_Father: {fileID: 755010573038241708} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -532,7 +533,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 591c41626b3c40049b45b9c887893684, type: 3} + m_Sprite: {fileID: 21300000, guid: 211b53c2cb3aa6b4cb50f18ae2796465, type: 3} m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 @@ -4776,6 +4777,82 @@ MonoBehaviour: m_hasFontAssetChanged: 0 m_baseMaterial: {fileID: 0} m_maskOffset: {x: 0, y: 0, z: 0, w: 0} +--- !u!1 &3365386694799726991 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 525842453583727716} + - component: {fileID: 7034515135367308003} + - component: {fileID: 2652667528871894338} + m_Layer: 5 + m_Name: High + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 +--- !u!224 &525842453583727716 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3365386694799726991} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3806297745056633140} + m_Father: {fileID: 3192990638122548755} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 90, y: 42} + m_Pivot: {x: 0, y: 0.5} +--- !u!222 &7034515135367308003 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3365386694799726991} + m_CullTransparentMesh: 1 +--- !u!114 &2652667528871894338 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3365386694799726991} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 0 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 2fa24d6664024b342a35c5fb5e7f9843, type: 3} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &3374657125894741702 GameObject: m_ObjectHideFlags: 0 @@ -5607,6 +5684,81 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &4065723111926894133 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3806297745056633140} + - component: {fileID: 3531803610375541400} + - component: {fileID: 9074261777422782138} + m_Layer: 5 + m_Name: Image + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3806297745056633140 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4065723111926894133} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 525842453583727716} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 52, y: 52} + m_Pivot: {x: 0, y: 0.49999997} +--- !u!222 &3531803610375541400 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4065723111926894133} + m_CullTransparentMesh: 1 +--- !u!114 &9074261777422782138 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4065723111926894133} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 0 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: 40821b66a31d1fc40a15b6f434e487f9, type: 3} + m_Type: 0 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &4076795204144826265 GameObject: m_ObjectHideFlags: 0 @@ -8959,7 +9111,7 @@ MonoBehaviour: onValueChanged: m_PersistentCalls: m_Calls: [] - m_IsOn: 1 + m_IsOn: 0 --- !u!1 &6676211856046294148 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Art/UIPrefab/UIBody3DInfo.prefab b/Assets/Art/UIPrefab/UIBody3DInfo.prefab index db676c4c..3ad3670f 100644 --- a/Assets/Art/UIPrefab/UIBody3DInfo.prefab +++ b/Assets/Art/UIPrefab/UIBody3DInfo.prefab @@ -73,7 +73,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 0, y: -22} - m_SizeDelta: {x: 54.01, y: 34} + m_SizeDelta: {x: 0, y: 34} m_Pivot: {x: 0, y: 0.5} --- !u!222 &5612155728787226803 CanvasRenderer: @@ -4447,9 +4447,9 @@ RectTransform: - {fileID: 4460888939854281799} m_Father: {fileID: 9173910592677138117} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 59.01, y: -22} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 34} m_Pivot: {x: 0.00000007636845, y: 0.5} --- !u!1 &8390197820936015822 diff --git a/Assets/Art/UIPrefab/UIBody3DMenuTree.prefab b/Assets/Art/UIPrefab/UIBody3DMenuTree.prefab index 2d72775d..f78de67a 100644 --- a/Assets/Art/UIPrefab/UIBody3DMenuTree.prefab +++ b/Assets/Art/UIPrefab/UIBody3DMenuTree.prefab @@ -1,80 +1,5 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: ---- !u!1 &435568366843394627 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 7503212725544534556} - - component: {fileID: 111412417819572624} - - component: {fileID: 2151844151933240927} - m_Layer: 0 - m_Name: temp - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 0 ---- !u!224 &7503212725544534556 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 435568366843394627} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_ConstrainProportionsScale: 0 - m_Children: [] - m_Father: {fileID: 8239230575637970371} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!222 &111412417819572624 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 435568366843394627} - m_CullTransparentMesh: 1 ---- !u!114 &2151844151933240927 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 435568366843394627} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 1, g: 1, b: 1, a: 0.8156863} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_Sprite: {fileID: 21300000, guid: 79c08d6abbc3e5b4d93756d5972f8459, type: 3} - m_Type: 0 - m_PreserveAspect: 0 - m_FillCenter: 1 - m_FillMethod: 4 - m_FillAmount: 1 - m_FillClockwise: 1 - m_FillOrigin: 0 - m_UseSpriteMesh: 0 - m_PixelsPerUnitMultiplier: 1 --- !u!1 &438363884195299804 GameObject: m_ObjectHideFlags: 0 @@ -1028,11 +953,11 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 8239230575637970371} + m_Father: {fileID: 2780512865034176281} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 712, y: 374.04} + m_AnchoredPosition: {x: -3, y: 374.04} m_SizeDelta: {x: 32, y: 2} m_Pivot: {x: 0, y: 0.5} --- !u!222 &1285110849480394043 @@ -1275,11 +1200,11 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 8239230575637970371} + m_Father: {fileID: 2780512865034176281} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 659.93, y: 372.56} + m_AnchoredPosition: {x: -55.070007, y: 372.56} m_SizeDelta: {x: 260, y: 1} m_Pivot: {x: 0, y: 0.5} --- !u!222 &3335622323102402595 @@ -1484,10 +1409,7 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2780512865034176281} - - {fileID: 5296772743380432635} - - {fileID: 2058219366310914181} - {fileID: 2765956842469010051} - - {fileID: 7503212725544534556} m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} @@ -2647,6 +2569,7 @@ GameObject: m_Component: - component: {fileID: 2780512865034176281} - component: {fileID: 1546129111403102217} + - component: {fileID: 4641075730446385994} m_Layer: 0 m_Name: RootContent m_TagString: Untagged @@ -2670,6 +2593,8 @@ RectTransform: - {fileID: 348112869011454683} - {fileID: 1108598377964087841} - {fileID: 2362316407852543289} + - {fileID: 5296772743380432635} + - {fileID: 2058219366310914181} m_Father: {fileID: 8239230575637970371} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0.5} @@ -2693,6 +2618,114 @@ MonoBehaviour: CustomComponentName: RootContent CustomComment: mComponentName: RectTransform +--- !u!114 &4641075730446385994 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8197937570590596469} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4d0390bd8b8ffd640b34fe25065ff1df, type: 3} + m_Name: + m_EditorClassIdentifier: + updateType: 0 + isSpeedBased: 0 + hasOnStart: 0 + hasOnPlay: 0 + hasOnUpdate: 0 + hasOnStepComplete: 0 + hasOnComplete: 0 + hasOnTweenCreated: 0 + hasOnRewind: 0 + onStart: + m_PersistentCalls: + m_Calls: [] + onPlay: + m_PersistentCalls: + m_Calls: [] + onUpdate: + m_PersistentCalls: + m_Calls: [] + onStepComplete: + m_PersistentCalls: + m_Calls: [] + onComplete: + m_PersistentCalls: + m_Calls: [] + onTweenCreated: + m_PersistentCalls: + m_Calls: [] + onRewind: + m_PersistentCalls: + m_Calls: [] + targetIsSelf: 1 + targetGO: {fileID: 0} + tweenTargetIsTargetGO: 1 + delay: 0 + duration: 0.3 + easeType: 12 + easeCurve: + serializedVersion: 2 + m_Curve: + - serializedVersion: 3 + time: 0 + value: 0 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + - serializedVersion: 3 + time: 1 + value: 1 + inSlope: 0 + outSlope: 0 + tangentMode: 0 + weightedMode: 0 + inWeight: 0 + outWeight: 0 + m_PreInfinity: 2 + m_PostInfinity: 2 + m_RotationOrder: 4 + loopType: 0 + loops: 1 + id: + isRelative: 0 + isFrom: 0 + isIndependentUpdate: 0 + autoKill: 0 + autoGenerate: 1 + isActive: 1 + isValid: 1 + target: {fileID: 2780512865034176281} + animationType: 1 + targetType: 5 + forcedTargetType: 0 + autoPlay: 0 + useTargetAsV3: 0 + endValueFloat: 0 + endValueV3: {x: 450, y: 0, z: 0} + endValueV2: {x: 0, y: 0} + endValueColor: {r: 1, g: 1, b: 1, a: 1} + endValueString: + endValueRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 0 + height: 0 + endValueTransform: {fileID: 0} + optionalBool0: 0 + optionalBool1: 0 + optionalFloat0: 0 + optionalInt0: 0 + optionalRotationMode: 0 + optionalScrambleMode: 0 + optionalShakeRandomnessMode: 0 + optionalString: --- !u!1 &8280112074671649668 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Art/UIPrefab/UIDraw.prefab b/Assets/Art/UIPrefab/UIDraw.prefab index 5c38d1ea..c925c0e1 100644 --- a/Assets/Art/UIPrefab/UIDraw.prefab +++ b/Assets/Art/UIPrefab/UIDraw.prefab @@ -7670,7 +7670,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8470605304935464912} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: @@ -7748,7 +7748,7 @@ MonoBehaviour: m_PressedTrigger: Pressed m_SelectedTrigger: Selected m_DisabledTrigger: Disabled - m_Interactable: 1 + m_Interactable: 0 m_TargetGraphic: {fileID: 8708082608090175244} toggleTransition: 1 graphic: {fileID: 1510141012094268438} diff --git a/Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标 (1).png b/Assets/Art/UITextures/UIBody3D/左侧工具面板-鼠标 (1).png new file mode 100644 index 0000000000000000000000000000000000000000..4390721ba32a5ebfa3c7d5d5f67f3e1bca0cee5d GIT binary patch literal 1356 zcmV-S1+)5zP)Px)21!IgRA@u(m|sj=Wf;bvuhgZmu@x`@kwJ%MjLu|-$O2On+RPY6GHJc^#&T^G zdf}oH2TbCv^vdWB)Vq0MhZkd$ErsbKe_~q9gasC8#{Ol1JzWPaqdlL#M@mWs*`Ym! zke;MT|9szfp5Obt-*di{VUJyGkMSS_wA&rcIFxZH%@xSBT$&56_;wkG6qhW`6EY5^ zx!{U#mllUAYtFQgvWeloF2xEJPEZ}lSliGJ&f8>NoOO(kTy9sWQPFT!f!4vqWT_0L z8c+;|aVB!c^~AIGUPUNXfQ+^EHgMK018|t3;U3u_iB&NMHvuxnZGR43aVqMk=NPOG z(8&e?8r}_wHI0v6_8M!>aMCh9+{cWoze$W+Zx3DZJ%>g`LsS7uR1goONZmFDrweFi z)uAKX(5PriN`Pq3NWj2mEo3m6!O*%OaTxNBv*bl)mFdvtw<5;)M)?agNF??0=*>77wbl7D0f1uo@Y|{#lx^yd#;qiFT)6;`)F@dVM^+Y7hbEiXml z$(6(_KR;je`~5Ehh$_*T6i|Xw8^t!uEhw&7UKHOiDK7f(`t|Gi1l7^evDRMkVlQ2~ z1dGKYe?@KRa5&xo@LO7e=w`=G*4s4DcoSoLRftAkTzul`{9o^umK1*+gNhePE}2Xw z*)3{0f}u9-?Cg9m8jZTr4z$G$S!u=VGl7MNIf3~Hw*)~jQ@fFHpU)@1=yEt5=Re&Ri=}q-kojzpkyVtt*yfiQ;JAQ2G%d!I3)zO6_O2+rI+Py7NG^ zr!=gaa~^m!d;45C=>PVe(^hzaB%Q@0L1`)1n|wS0E&m=QWVk13YNo*@IRjI zf3on9m6w-SpFMk4PXIC3sQs)~t52)deh`U7xK5|L9}b77cMZ_G=M;UAA{SiIlZuboU^gqK-075i_{`}fiKqRKJrlFZ0_!Gld9joHB z01oPOI(;M(IV?$%O_HQL0EPgJ0a#E95`#|qq@bjFn~c=~sGy@9fcpR<$*j2>fRfSw zpSc;Jl$KM4#WD`5P}GzznQPx(`$c7hLVkBW~?M8 zi;yYo1K^l=Ve>izZUaFv+!u72MK%b^Z7?U`4HYvhj$0-mjz*xgkge-G&YQPODd6no zt(EkAfu`>{@AG^9&+|V|2^QHRi;M?0AZu6DrjSh`3unMqau!aw!LPF^WN^wXyuqfB zg%fV@>nx%W!!XG-GD1j>!4Vp`fp;K=VfFyn&Be8s5JErmws-~7gV93p3dI|c4$K$; z5l5r_pEoF8fEb3604M@L0U`i&azFt9nmIrTA*96IwZ|9GdJZUo5ORZ=k&810!Z3{X zyG?|U{$~P6KS*65a|7s~$BRPq0QGSSc|8+AT+jTxPzf;%!>BP1|ftt{j9~ogmVT#pP2*2Fbp*f+FK^OpGiP^)*L|%K$nKgyw=s|SJVWk89eSe zlc0= z98In5@bO-Soyi}=$;p9kilRjQsuWd_!hg2+Xx5!8=Q9npd82`z1WG281-4$i zB&}<{;{NrK-B|AGg0jjgG`6;(IPVY}YgJ7HV&0CL6L;tv?~k=LeD4h4A48x_0@8z; z&$dZ)bhJ&@4OV0SXA{0h#3$dK}Q2pf@8oMuarP$8Eyk@B=iqwj)@)mQ_Kan8YV(S@`BqCUOhQ5y_R? z|QV8!iAnWc! z0&g=<~i_*+9D+49~jhtu9abRUJQ{poC} z;CZ3jqd)JToqY80xK#k@La9_LjE;_?ySp0|-<_#%`t>UD_I)`pGW<1Bka+EXs!`ic z{B&1;&#jh^)M_;&5C{gRr>A?Z21xIof=Z>@=j`l!Vrpv2&)(kNQ}lxSdI#ZB-@xF| zD50anbYo*f>&VdElE0M7Y5-FJG;}DjDj*JO2mMP3ImQL|8~~v}AP}k5>J=|~_({g( zL%*xW().DORestart(); RightBottom.GetComponent().DORestart(); HideAll.transform.Find("Label").GetComponent().text = "ʾ"; + TypeEventSystem.Global.Send(new OnHideAll() { isHide = true }); } else { @@ -143,6 +144,7 @@ namespace QFramework.Example RightContent.GetComponent().DOPlayBackwards(); RightBottom.GetComponent().DOPlayBackwards(); HideAll.transform.Find("Label").GetComponent().text = ""; + TypeEventSystem.Global.Send(new OnHideAll() { isHide = false }); } CloseBtn.gameObject.SetActive(!isOn); diff --git a/Assets/Scripts/UI/UIBody3DInfo.cs b/Assets/Scripts/UI/UIBody3DInfo.cs index a8648681..7666d81f 100644 --- a/Assets/Scripts/UI/UIBody3DInfo.cs +++ b/Assets/Scripts/UI/UIBody3DInfo.cs @@ -36,18 +36,7 @@ namespace QFramework.Example } }); - Active.onValueChanged.AddListener(isOn => - { - obj.SetActive(isOn); - if (isOn) - { - Active.transform.Find("Label").GetComponent().text = ""; - } - else - { - Active.transform.Find("Label").GetComponent().text = "ʾ"; - } - }); + Transparent.onValueChanged.AddListener(isOn => { @@ -167,6 +156,25 @@ namespace QFramework.Example obj = Utility.FindObj(mData.body.Path); Des.text = mData.body.Tip; RefreshTipPath(); + + Active.onValueChanged.RemoveAllListeners(); + Active.isOn = false; + Active.transform.Find("Label").GetComponent().text = ""; + Active.onValueChanged.AddListener(isOn => + { + obj.SetActive(!isOn); + if (isOn) + { + Body3DController.Instance.AddActiveObj(obj); + Active.transform.Find("Label").GetComponent().text = "ʾ"; + } + else + { + Body3DController.Instance.PopActiveObj(); + Active.transform.Find("Label").GetComponent().text = ""; + } + }); + } public void ListItemFacotry(Body3D.Body body) diff --git a/Assets/Scripts/UI/UIBody3DMenuTree.cs b/Assets/Scripts/UI/UIBody3DMenuTree.cs index 4a513713..1734f6e9 100644 --- a/Assets/Scripts/UI/UIBody3DMenuTree.cs +++ b/Assets/Scripts/UI/UIBody3DMenuTree.cs @@ -201,12 +201,13 @@ namespace QFramework.Example Half, Full } - //DOTweenAnimation contentAnim; + DOTweenAnimation contentAnim; protected override void OnInit(IUIData uiData = null) { mData = uiData as UIBody3DMenuTreeData ?? new UIBody3DMenuTreeData(); TypeEventSystem.Global.Register(OnModuleQuithandler).UnRegisterWhenGameObjectDestroyed(this); - //contentAnim = RootContent.GetComponent(); + TypeEventSystem.Global.Register(OnHideAllhandler); + contentAnim = RootContent.GetComponent(); // please add init code here Close.onClick.AddListener(() => { @@ -236,6 +237,18 @@ namespace QFramework.Example BuildTreeUI(mData.body); } + private void OnHideAllhandler(OnHideAll all) + { + if (all.isHide) + { + contentAnim.DOPlayForward(); + } + else + { + contentAnim.DOPlayBackwards(); + } + } + private void OnModuleQuithandler(OnModuleQuit quit) { Hide(); @@ -398,19 +411,7 @@ namespace QFramework.Example protected override void OnShow() { } - //public override void Hide() - //{ - // //if (contentAnim.onComplete == null) - // //{ - // // contentAnim.onComplete = new UnityEngine.Events.UnityEvent(); - // //} - // //contentAnim.onComplete.RemoveAllListeners(); - // //contentAnim.DOPlayBackwards(); - // //contentAnim.onComplete.AddListener(() => - // //{ - // // base.Hide(); - // //}); - //} + protected override void OnHide() {