瀏覽代碼

3D补上闸门标识

Void_F 6 小時之前
父節點
當前提交
22c682880c

+ 484 - 0
Assets/Prefabs/UI/Item/ZhaMenIcon.prefab

@@ -0,0 +1,484 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &6184866820830610
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 2407755667622512913}
+  - component: {fileID: 8493831160867747707}
+  - component: {fileID: 3763220324958550309}
+  - component: {fileID: 9223057206584702714}
+  m_Layer: 5
+  m_Name: Text (Legacy)
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &2407755667622512913
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 6184866820830610}
+  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: 8693264001334891580}
+  m_RootOrder: 0
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0, y: 1}
+  m_AnchorMax: {x: 0, y: 1}
+  m_AnchoredPosition: {x: 10, y: -13.805}
+  m_SizeDelta: {x: 32, y: 27.61}
+  m_Pivot: {x: 0, y: 0.5}
+--- !u!222 &8493831160867747707
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 6184866820830610}
+  m_CullTransparentMesh: 1
+--- !u!114 &3763220324958550309
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 6184866820830610}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Material: {fileID: 0}
+  m_Color: {r: 0.16037738, g: 0.16037738, b: 0.16037738, a: 1}
+  m_RaycastTarget: 1
+  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+  m_Maskable: 1
+  m_OnCullStateChanged:
+    m_PersistentCalls:
+      m_Calls: []
+  m_FontData:
+    m_Font: {fileID: 12800000, guid: 85c13d115126ca04ca985ec0156f4c61, type: 3}
+    m_FontSize: 16
+    m_FontStyle: 1
+    m_BestFit: 0
+    m_MinSize: 1
+    m_MaxSize: 40
+    m_Alignment: 0
+    m_AlignByGeometry: 0
+    m_RichText: 1
+    m_HorizontalOverflow: 0
+    m_VerticalOverflow: 0
+    m_LineSpacing: 1
+  m_Text: "\u5957\u53E3"
+--- !u!114 &9223057206584702714
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 6184866820830610}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_HorizontalFit: 2
+  m_VerticalFit: 0
+--- !u!1 &4283438596719758962
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 4631781281010837161}
+  - component: {fileID: 4800018450555107949}
+  - component: {fileID: 2800487816664198739}
+  m_Layer: 5
+  m_Name: ZhaMenIcon
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &4631781281010837161
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 4283438596719758962}
+  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: 2027052951324185546}
+  - {fileID: 8693264001334891580}
+  m_Father: {fileID: 0}
+  m_RootOrder: 0
+  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: 0, y: 0}
+  m_SizeDelta: {x: 100, y: 100}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &4800018450555107949
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 4283438596719758962}
+  m_CullTransparentMesh: 1
+--- !u!114 &2800487816664198739
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 4283438596719758962}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 093903a42f5f2044a81eaf36bb579134, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  _data:
+    sensor_id: 0
+    gate_open: 0
+    opening_degree: 0
+    gate_breakdown: 0
+    record_ts: 0
+    station_name: 
+  targetTransForm: {fileID: 0}
+  tint: {fileID: 5515461222174838467}
+  tintName: {fileID: 3763220324958550309}
+--- !u!1 &5515461222174838467
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 8693264001334891580}
+  - component: {fileID: 8685014295002963449}
+  - component: {fileID: 3405379800184817410}
+  - component: {fileID: 9076946353492734133}
+  - component: {fileID: 1123870414268019485}
+  m_Layer: 5
+  m_Name: Tint
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 0
+--- !u!224 &8693264001334891580
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5515461222174838467}
+  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: 2407755667622512913}
+  m_Father: {fileID: 4631781281010837161}
+  m_RootOrder: 1
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+  m_AnchorMin: {x: 0, y: 0}
+  m_AnchorMax: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 80.002, y: 144.71664}
+  m_SizeDelta: {x: 52, y: 23.5957}
+  m_Pivot: {x: 0, y: 0.5}
+--- !u!222 &8685014295002963449
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5515461222174838467}
+  m_CullTransparentMesh: 1
+--- !u!114 &3405379800184817410
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5515461222174838467}
+  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: 1
+  m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+  m_Maskable: 1
+  m_OnCullStateChanged:
+    m_PersistentCalls:
+      m_Calls: []
+  m_Sprite: {fileID: 0}
+  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!114 &9076946353492734133
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5515461222174838467}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_HorizontalFit: 2
+  m_VerticalFit: 0
+--- !u!114 &1123870414268019485
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 5515461222174838467}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Padding:
+    m_Left: 10
+    m_Right: 10
+    m_Top: 0
+    m_Bottom: 0
+  m_ChildAlignment: 0
+  m_Spacing: 0
+  m_ChildForceExpandWidth: 1
+  m_ChildForceExpandHeight: 1
+  m_ChildControlWidth: 0
+  m_ChildControlHeight: 0
+  m_ChildScaleWidth: 1
+  m_ChildScaleHeight: 1
+  m_ReverseArrangement: 0
+--- !u!1 &8445803138219866511
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 2027052951324185546}
+  - component: {fileID: 2690938772664444896}
+  - component: {fileID: 8361798586317234177}
+  - component: {fileID: 8828567451223740973}
+  m_Layer: 5
+  m_Name: Icon
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &2027052951324185546
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8445803138219866511}
+  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: 4742984429411117486}
+  m_Father: {fileID: 4631781281010837161}
+  m_RootOrder: 0
+  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: 0, y: 50}
+  m_SizeDelta: {x: 60, y: 100}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &2690938772664444896
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8445803138219866511}
+  m_CullTransparentMesh: 1
+--- !u!114 &8361798586317234177
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8445803138219866511}
+  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: 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: d2d0a157101c938438fc7532370a958a, 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!114 &8828567451223740973
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8445803138219866511}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
+  m_Navigation:
+    m_Mode: 3
+    m_WrapAround: 0
+    m_SelectOnUp: {fileID: 0}
+    m_SelectOnDown: {fileID: 0}
+    m_SelectOnLeft: {fileID: 0}
+    m_SelectOnRight: {fileID: 0}
+  m_Transition: 1
+  m_Colors:
+    m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
+    m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
+    m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
+    m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
+    m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
+    m_ColorMultiplier: 1
+    m_FadeDuration: 0.1
+  m_SpriteState:
+    m_HighlightedSprite: {fileID: 0}
+    m_PressedSprite: {fileID: 0}
+    m_SelectedSprite: {fileID: 0}
+    m_DisabledSprite: {fileID: 0}
+  m_AnimationTriggers:
+    m_NormalTrigger: Normal
+    m_HighlightedTrigger: Highlighted
+    m_PressedTrigger: Pressed
+    m_SelectedTrigger: Selected
+    m_DisabledTrigger: Disabled
+  m_Interactable: 1
+  m_TargetGraphic: {fileID: 8361798586317234177}
+  m_OnClick:
+    m_PersistentCalls:
+      m_Calls: []
+--- !u!1 &8657152715024557955
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 4742984429411117486}
+  - component: {fileID: 5593926440167467510}
+  - component: {fileID: 6046516671655322401}
+  m_Layer: 5
+  m_Name: Image (1)
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &4742984429411117486
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8657152715024557955}
+  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: 2027052951324185546}
+  m_RootOrder: 0
+  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: 0, y: 16}
+  m_SizeDelta: {x: 48, y: 48}
+  m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &5593926440167467510
+CanvasRenderer:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8657152715024557955}
+  m_CullTransparentMesh: 1
+--- !u!114 &6046516671655322401
+MonoBehaviour:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 8657152715024557955}
+  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: 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: b82302b0c71448541af765c53f77e05b, 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

+ 7 - 0
Assets/Prefabs/UI/Item/ZhaMenIcon.prefab.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: fcf859d795d57314b8ee45fbf4015949
+PrefabImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 45 - 5
Assets/Prefabs/UI/SWFZ/ZMJK.prefab

@@ -5631,7 +5631,7 @@ RectTransform:
   m_ConstrainProportionsScale: 0
   m_Children: []
   m_Father: {fileID: 4461453780397662635}
-  m_RootOrder: 0
+  m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 1, y: 1}
@@ -6413,7 +6413,7 @@ RectTransform:
   - {fileID: 4637094724067973422}
   - {fileID: 1182882711783925293}
   m_Father: {fileID: 4461453780397662635}
-  m_RootOrder: 3
+  m_RootOrder: 4
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
@@ -11079,7 +11079,7 @@ RectTransform:
   m_Children:
   - {fileID: 1830885361818529920}
   m_Father: {fileID: 4461453780397662635}
-  m_RootOrder: 2
+  m_RootOrder: 3
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
@@ -11635,6 +11635,7 @@ RectTransform:
   m_LocalScale: {x: 1, y: 1, z: 1}
   m_ConstrainProportionsScale: 0
   m_Children:
+  - {fileID: 3218409779109884448}
   - {fileID: 8645906836657441524}
   - {fileID: 2238635893081267527}
   - {fileID: 5645430487816504761}
@@ -11677,6 +11678,9 @@ MonoBehaviour:
   currentZMDataList: []
   targetObj: {fileID: 0}
   showGongPanel: 0
+  zhaMenIconOri: {fileID: 4283438596719758962, guid: fcf859d795d57314b8ee45fbf4015949, type: 3}
+  zhaMenContent: {fileID: 3218409779109884448}
+  zhaMenIconList: []
 --- !u!1 &4463901847923660319
 GameObject:
   m_ObjectHideFlags: 0
@@ -16408,7 +16412,7 @@ RectTransform:
   - {fileID: 1393834271580688366}
   - {fileID: 6374276066563140182}
   m_Father: {fileID: 4461453780397662635}
-  m_RootOrder: 4
+  m_RootOrder: 5
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
@@ -18713,7 +18717,7 @@ RectTransform:
   m_Children:
   - {fileID: 4238809901531860493}
   m_Father: {fileID: 4461453780397662635}
-  m_RootOrder: 1
+  m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
@@ -19404,6 +19408,42 @@ MonoBehaviour:
     m_VerticalOverflow: 1
     m_LineSpacing: 1
   m_Text: 8
+--- !u!1 &7762756203306636676
+GameObject:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  serializedVersion: 6
+  m_Component:
+  - component: {fileID: 3218409779109884448}
+  m_Layer: 5
+  m_Name: ZhaMenContent
+  m_TagString: Untagged
+  m_Icon: {fileID: 0}
+  m_NavMeshLayer: 0
+  m_StaticEditorFlags: 0
+  m_IsActive: 1
+--- !u!224 &3218409779109884448
+RectTransform:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 7762756203306636676}
+  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: 4461453780397662635}
+  m_RootOrder: 0
+  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: 0, y: 0}
+  m_SizeDelta: {x: 100, y: 100}
+  m_Pivot: {x: 0.5, y: 0.5}
 --- !u!1 &7779776250927800271
 GameObject:
   m_ObjectHideFlags: 0

文件差異過大導致無法顯示
+ 97 - 0
Assets/Scene 1.unity


+ 80 - 0
Assets/Scripts/UI/Item/ZhaMenIconCtrl.cs

@@ -0,0 +1,80 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.EventSystems;
+using UnityEngine.UI;
+using UnityEngine.UIElements;
+
+public class ZhaMenIconCtrl : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
+{
+    private RectTransform rect;
+    private Camera _camera;
+
+    private UnityEngine.UI.Button _button;
+    public FloodGate _data;
+    public Transform targetTransForm;
+
+    public GameObject tint;
+
+    public Text tintName;
+
+    public void Init(FloodGate data,string name,GameObject targetObj)
+    {
+        _data = data;
+        tintName.text = name;
+
+
+        rect = this.GetComponent<RectTransform>();
+        _button = this.transform.Find("Icon").GetComponent<UnityEngine.UI.Button>();
+
+
+        _button.onClick.AddListener(() =>
+        {
+            
+        });
+
+
+        rect.anchoredPosition = new Vector2(2000, 0);
+        _camera = CameraManager.instance.mainCamera;
+
+        targetTransForm = targetObj.transform;
+    }
+
+    void Update()
+    {
+        if (targetTransForm != null)
+        {
+            if (IsObjectInCameraView(targetTransForm, _camera))
+            {
+                rect.transform.position = _camera.WorldToScreenPoint(targetTransForm.position);
+            }
+            else
+            {
+                rect.transform.position = new Vector3(2000, 0, 0);
+            }
+        }
+    }
+
+    bool IsObjectInCameraView(Transform objectTransform, Camera camera)
+    {
+        Vector3 objectScreenPosition = camera.WorldToScreenPoint(objectTransform.position);
+        return objectScreenPosition.z > 0 &&
+               objectScreenPosition.x > 0 &&
+               objectScreenPosition.x < Screen.width &&
+               objectScreenPosition.y > 0 &&
+               objectScreenPosition.y < Screen.height;
+    }
+
+    public void OnPointerEnter(PointerEventData eventData)
+    {
+        tint.gameObject.SetActive(true);
+        LayoutRebuilder.ForceRebuildLayoutImmediate(tintName.GetComponent<RectTransform>()); // 强制重新计算布局
+        LayoutRebuilder.ForceRebuildLayoutImmediate(tint.GetComponent<RectTransform>()); // 强制重新计算布局
+    }
+
+    public void OnPointerExit(PointerEventData eventData)
+    {
+        tint.gameObject.SetActive(false);
+    }
+}

+ 11 - 0
Assets/Scripts/UI/Item/ZhaMenIconCtrl.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 093903a42f5f2044a81eaf36bb579134
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 155 - 88
Assets/Scripts/UI/UIView/3D/ZMJKLayer.cs

@@ -37,6 +37,10 @@ public class ZMJKLayer : MonoBehaviour
     public bool showGongPanel = false;
     private Camera _camera;
 
+    public GameObject zhaMenIconOri;
+    public Transform zhaMenContent;
+    public List<ZhaMenIconCtrl> zhaMenIconList = new List<ZhaMenIconCtrl>();
+
     private void Awake()
     {
         closeButton.onClick.AddListener(() =>
@@ -76,11 +80,9 @@ public class ZMJKLayer : MonoBehaviour
         });
     }
 
-    async Task InitFloorGateData() {
-        await new WaitUntil(() =>
-        {
-            return GlobalData.floorGateData.success;
-        });
+    async Task InitFloorGateData()
+    {
+        await new WaitUntil(() => { return GlobalData.floorGateData.success; });
         float[] byV3 = new float[GlobalData.floorGateData.buYuan.Length];
         for (int i = 0; i < GlobalData.floorGateData.buYuan.Length; i++)
         {
@@ -88,54 +90,63 @@ public class ZMJKLayer : MonoBehaviour
             ZhaZhanItem tempItem = Instantiate(ZhaZhanItemOri, itemContent).GetComponent<ZhaZhanItem>();
             tempItem.SetData(GlobalData.floorGateData.buYuan[tempIndex], $"补元闸门-{tempIndex + 1}");
             byV3[tempIndex] = GlobalData.floorGateData.buYuan[tempIndex].opening_degree * 0.01f;
-            Debug.Log($"补元闸门-{tempIndex + 1}:{byV3[tempIndex]}");
+            //Debug.Log($"补元闸门-{tempIndex + 1}:{byV3[tempIndex]}");
             tempItem.gameObject.GetComponent<Button>().onClick.AddListener(() =>
             {
-                StaticLod.instance.OnFoucusStatic($"BY_ZM_{tempIndex+1:00}");
-                targetObj = StaticLod.instance.GetStaticObj($"BY_ZM_{tempIndex + 1:00}");
-                gongChengPanel.SetActive(true);
-                showGongPanel = true;
-                zhaZhanMingCheng.text = tempItem._name;
-                zhaMenKaiDu.text = $"{GlobalData.floorGateData.buYuan[tempIndex].opening_degree:0.00}<size=14><color=#A5BFE2>%</color></size>";
-                //guoZhaLiuLiang.text = $"{GlobalData.floorGateData.buYuan[tempIndex].CurrentFlow}<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
-                guoZhaLiuLiang.text = $"-<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
-                
-                //zhaQianShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
-                zhaQianShuiWei.text = $"- <size=14><color=#A5BFE2>m</color></size>";
-                //zhaHouShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
-                zhaHouShuiWei.text = $"{GlobalData.floorGateData.buYuanSW} <size=14><color=#A5BFE2>m</color></size>";
-                //shuiweiChart todo
-
-                var shuiweiData = GlobalData.floorGateData.swzxtBY;
-                
-                XAxis tempXaxis = shuiweiChart.GetChartComponent<XAxis>();
-                tempXaxis.data.Clear();
-                for (int i = 0; i < shuiweiData.Length; i++)
-                {
-                    tempXaxis.AddData(shuiweiData[i].key);
-                }
-
-                var tempSeries = shuiweiChart.series;
-                tempSeries[0].serieName = "水位";
-                tempSeries[1].serieName = "水位";
-                SerieData[] tempDatas = new SerieData[shuiweiData.Length];
-                for (int i = 0; i < tempDatas.Length; i++)
-                {
-                    tempDatas[i] = new SerieData();
-                    tempDatas[i].data = new List<double>();
-                    tempDatas[i].data.Add(i);
-                    tempDatas[i].data.Add(shuiweiData[i].value);
-                }
-
-                tempSeries[0].data.Clear();
-                tempSeries[0].data.AddRange(tempDatas);
-                tempSeries[1].data.Clear();
-                tempSeries[1].data.AddRange(tempDatas);
+                OpenZhaMenInfoPanel(0, tempIndex, tempItem);
+                //
+                // StaticLod.instance.OnFoucusStatic($"BY_ZM_{tempIndex + 1:00}");
+                // targetObj = StaticLod.instance.GetStaticObj($"BY_ZM_{tempIndex + 1:00}");
+                // gongChengPanel.SetActive(true);
+                // showGongPanel = true;
+                // zhaZhanMingCheng.text = tempItem._name;
+                // zhaMenKaiDu.text =
+                //     $"{GlobalData.floorGateData.buYuan[tempIndex].opening_degree:0.00}<size=14><color=#A5BFE2>%</color></size>";
+                // //guoZhaLiuLiang.text = $"{GlobalData.floorGateData.buYuan[tempIndex].CurrentFlow}<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
+                // guoZhaLiuLiang.text = $"-<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
+                //
+                // //zhaQianShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
+                // zhaQianShuiWei.text = $"- <size=14><color=#A5BFE2>m</color></size>";
+                // //zhaHouShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
+                // zhaHouShuiWei.text = $"{GlobalData.floorGateData.buYuanSW} <size=14><color=#A5BFE2>m</color></size>";
+                //
+                // var shuiweiData = GlobalData.floorGateData.swzxtBY;
+                //
+                // XAxis tempXaxis = shuiweiChart.GetChartComponent<XAxis>();
+                // tempXaxis.data.Clear();
+                // for (int i = 0; i < shuiweiData.Length; i++)
+                // {
+                //     tempXaxis.AddData(shuiweiData[i].key);
+                // }
+                //
+                // var tempSeries = shuiweiChart.series;
+                // tempSeries[0].serieName = "水位";
+                // tempSeries[1].serieName = "水位";
+                // SerieData[] tempDatas = new SerieData[shuiweiData.Length];
+                // for (int i = 0; i < tempDatas.Length; i++)
+                // {
+                //     tempDatas[i] = new SerieData();
+                //     tempDatas[i].data = new List<double>();
+                //     tempDatas[i].data.Add(i);
+                //     tempDatas[i].data.Add(shuiweiData[i].value);
+                // }
+                //
+                // tempSeries[0].data.Clear();
+                // tempSeries[0].data.AddRange(tempDatas);
+                // tempSeries[1].data.Clear();
+                // tempSeries[1].data.AddRange(tempDatas);
             });
             currentZMDataList.Add(tempItem);
+
+
+            ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
+            tempIcon.Init(GlobalData.floorGateData.buYuan[tempIndex], $"补元闸门-{tempIndex + 1}",
+                StaticLod.instance.GetStaticObj($"BY_ZM_{tempIndex + 1:00}"));
+            zhaMenIconList.Add(tempIcon);
         }
-        ActionInstance._Instance.ModelAni_On?.Invoke(AniType.buYuan,byV3);
-        
+
+        ActionInstance._Instance.ModelAni_On?.Invoke(AniType.buYuan, byV3);
+
         float[] tkV3 = new float[GlobalData.floorGateData.taoKou.Length];
         for (int i = 0; i < GlobalData.floorGateData.taoKou.Length; i++)
         {
@@ -145,52 +156,107 @@ public class ZMJKLayer : MonoBehaviour
             tkV3[tempIndex] = GlobalData.floorGateData.taoKou[tempIndex].opening_degree * 0.01f;
             tempItem.gameObject.GetComponent<Button>().onClick.AddListener(() =>
             {
-                StaticLod.instance.OnFoucusStatic($"TK_ZM_{tempIndex+1:00}");
-                targetObj = StaticLod.instance.GetStaticObj($"TK_ZM_{tempIndex+1:00}");
-                gongChengPanel.SetActive(true);
-                showGongPanel = true;
-                zhaZhanMingCheng.text = tempItem._name;
-                zhaMenKaiDu.text = $"{GlobalData.floorGateData.taoKou[tempIndex].opening_degree:0.00}<size=14><color=#A5BFE2>%</color></size>";
-                //guoZhaLiuLiang.text = $"{GlobalData.floorGateData.taoKou[tempIndex].CurrentFlow}<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
-                guoZhaLiuLiang.text = $"-<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
-                
-                //zhaQianShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
-                zhaQianShuiWei.text = $"{GlobalData.floorGateData.taoKouSW} <size=14><color=#A5BFE2>m</color></size>";
-                //zhaHouShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
-                zhaHouShuiWei.text = $"-<size=14><color=#A5BFE2>m</color></size>";
-                
-                var shuiweiData = GlobalData.floorGateData.swzxtTK;
-                XAxis tempXaxis = shuiweiChart.GetChartComponent<XAxis>();
-                tempXaxis.data.Clear();
-                for (int i = 0; i < shuiweiData.Length; i++)
-                {
-                    tempXaxis.AddData(shuiweiData[i].key);
-                }
-
-                var tempSeries = shuiweiChart.series;
-                tempSeries[0].serieName = "水位";
-                tempSeries[1].serieName = "水位";
-                SerieData[] tempDatas = new SerieData[shuiweiData.Length];
-                for (int i = 0; i < tempDatas.Length; i++)
-                {
-                    tempDatas[i] = new SerieData();
-                    tempDatas[i].data = new List<double>();
-                    tempDatas[i].data.Add(i);
-                    tempDatas[i].data.Add(float.Parse(shuiweiData[i].value.ToString("F2")));
-                }
+                OpenZhaMenInfoPanel(1, tempIndex, tempItem);
 
-                tempSeries[0].data.Clear();
-                tempSeries[0].data.AddRange(tempDatas);
-                tempSeries[1].data.Clear();
-                tempSeries[1].data.AddRange(tempDatas);
+                // StaticLod.instance.OnFoucusStatic($"TK_ZM_{tempIndex + 1:00}");
+                // targetObj = StaticLod.instance.GetStaticObj($"TK_ZM_{tempIndex + 1:00}");
+                // gongChengPanel.SetActive(true);
+                // showGongPanel = true;
+                // zhaZhanMingCheng.text = tempItem._name;
+                // zhaMenKaiDu.text =
+                //     $"{GlobalData.floorGateData.taoKou[tempIndex].opening_degree:0.00}<size=14><color=#A5BFE2>%</color></size>";
+                // //guoZhaLiuLiang.text = $"{GlobalData.floorGateData.taoKou[tempIndex].CurrentFlow}<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
+                // guoZhaLiuLiang.text = $"-<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
+                //
+                // //zhaQianShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
+                // zhaQianShuiWei.text = $"{GlobalData.floorGateData.taoKouSW} <size=14><color=#A5BFE2>m</color></size>";
+                // //zhaHouShuiWei.text = $"{GlobalData.floorGateData.BuYuan.FloodGates[tempIndex]} <size=14><color=#A5BFE2>m</color></size>";
+                // zhaHouShuiWei.text = $"-<size=14><color=#A5BFE2>m</color></size>";
+                //
+                // var shuiweiData = GlobalData.floorGateData.swzxtTK;
+                // XAxis tempXaxis = shuiweiChart.GetChartComponent<XAxis>();
+                // tempXaxis.data.Clear();
+                // for (int i = 0; i < shuiweiData.Length; i++)
+                // {
+                //     tempXaxis.AddData(shuiweiData[i].key);
+                // }
+                //
+                // var tempSeries = shuiweiChart.series;
+                // tempSeries[0].serieName = "水位";
+                // tempSeries[1].serieName = "水位";
+                // SerieData[] tempDatas = new SerieData[shuiweiData.Length];
+                // for (int i = 0; i < tempDatas.Length; i++)
+                // {
+                //     tempDatas[i] = new SerieData();
+                //     tempDatas[i].data = new List<double>();
+                //     tempDatas[i].data.Add(i);
+                //     tempDatas[i].data.Add(float.Parse(shuiweiData[i].value.ToString("F2")));
+                // }
+                //
+                // tempSeries[0].data.Clear();
+                // tempSeries[0].data.AddRange(tempDatas);
+                // tempSeries[1].data.Clear();
+                // tempSeries[1].data.AddRange(tempDatas);
             });
             currentZMDataList.Add(tempItem);
+            
+            ZhaMenIconCtrl tempIcon = Instantiate(zhaMenIconOri, zhaMenContent).GetComponent<ZhaMenIconCtrl>();
+            tempIcon.Init(GlobalData.floorGateData.taoKou[tempIndex], $"套口闸门-{tempIndex + 1}",
+                StaticLod.instance.GetStaticObj($"TK_ZM_{tempIndex + 1:00}"));
+            zhaMenIconList.Add(tempIcon);
         }
-        ActionInstance._Instance.ModelAni_On?.Invoke(AniType.taoKou,tkV3);
+
+        ActionInstance._Instance.ModelAni_On?.Invoke(AniType.taoKou, tkV3);
         int totalCount = GlobalData.floorGateData.BuYuanTotalGates + GlobalData.floorGateData.TaoKouTotalGates;
         zhaZhanCount.text = $"闸门列表 (<color=#FFFFFF>{totalCount}</color>)";
+        
     }
 
+    public void OpenZhaMenInfoPanel(int type, int _index, ZhaZhanItem itemData)
+    {
+        string staticNameHead = type == 0 ? "BY_ZM_" : "TK_ZM_";
+        StaticLod.instance.OnFoucusStatic($"{staticNameHead}{_index + 1:00}");
+        targetObj = StaticLod.instance.GetStaticObj($"{staticNameHead}{_index + 1:00}");
+        gongChengPanel.SetActive(true);
+        showGongPanel = true;
+        zhaZhanMingCheng.text = itemData._name;
+        var floorGateData = type == 0 ? GlobalData.floorGateData.buYuan : GlobalData.floorGateData.taoKou;
+        zhaMenKaiDu.text = $"{floorGateData[_index].opening_degree:0.00}<size=14><color=#A5BFE2>%</color></size>";
+
+        guoZhaLiuLiang.text = $"-<size=14><color=#A5BFE2>m\u00b3/s</color></size>";
+        zhaQianShuiWei.text = $"- <size=14><color=#A5BFE2>m</color></size>";
+
+        var floorGateData_sw = type == 0 ? GlobalData.floorGateData.buYuanSW : GlobalData.floorGateData.taoKouSW;
+        zhaHouShuiWei.text = $"{floorGateData_sw} <size=14><color=#A5BFE2>m</color></size>";
+
+        var shuiweiData = type == 0 ? GlobalData.floorGateData.swzxtBY : GlobalData.floorGateData.swzxtTK;
+
+        XAxis tempXaxis = shuiweiChart.GetChartComponent<XAxis>();
+        tempXaxis.data.Clear();
+        for (int i = 0; i < shuiweiData.Length; i++)
+        {
+            tempXaxis.AddData(shuiweiData[i].key);
+        }
+
+        var tempSeries = shuiweiChart.series;
+        tempSeries[0].serieName = "水位";
+        tempSeries[1].serieName = "水位";
+        SerieData[] tempDatas = new SerieData[shuiweiData.Length];
+        for (int i = 0; i < tempDatas.Length; i++)
+        {
+            tempDatas[i] = new SerieData();
+            tempDatas[i].data = new List<double>();
+            tempDatas[i].data.Add(i);
+            tempDatas[i].data.Add(shuiweiData[i].value);
+        }
+
+        tempSeries[0].data.Clear();
+        tempSeries[0].data.AddRange(tempDatas);
+        tempSeries[1].data.Clear();
+        tempSeries[1].data.AddRange(tempDatas);
+    }
+
+
     public void SearchObsItem(string s_name)
     {
         if (s_name.Equals(""))
@@ -208,6 +274,7 @@ public class ZMJKLayer : MonoBehaviour
             }
         }
     }
+
     // Update is called once per frame
     void Update()
     {
@@ -217,12 +284,12 @@ public class ZMJKLayer : MonoBehaviour
             {
                 if (IsObjectInCameraView(targetObj.transform, _camera))
                 {
-                    gongChengPanel.transform.position=_camera.WorldToScreenPoint(targetObj.transform.position);
+                    gongChengPanel.transform.position = _camera.WorldToScreenPoint(targetObj.transform.position);
                 }
             }
         }
     }
-    
+
     bool IsObjectInCameraView(Transform objectTransform, Camera camera)
     {
         Vector3 objectScreenPosition = camera.WorldToScreenPoint(objectTransform.position);

部分文件因文件數量過多而無法顯示