Browse Source

提交一张图修改

wartheking 9 months ago
parent
commit
7efd828138
2 changed files with 17 additions and 98 deletions
  1. 0 97
      Assets/Scene 1.unity
  2. 17 1
      Assets/Scripts/UI/UIView/YZT/YZTLayer.cs

File diff suppressed because it is too large
+ 0 - 97
Assets/Scene 1.unity


+ 17 - 1
Assets/Scripts/UI/UIView/YZT/YZTLayer.cs

@@ -714,12 +714,28 @@ public class YZTLayer : YZTRootLayer
         return -1;
     }
 
+    int FindIndexByHotPointName(string name)
+    {
+        Debug.Log(name);
+        for (int i = 0; i < GlobalData.swDatas.Count; i++)
+        {
+            Debug.Log(GlobalData.swDatas[i].STNM);
+            if (GlobalData.swDatas[i].STNM.Trim() == name.Trim())
+            {
+                return i;
+            }
+        }
+        return -1;
+    }
+
 
     void OnNewPointClick(HotPointData temp, RuntimePoint newPoint)
     {
         if ((int)temp.type == 4)
         {
-            OnePicNav.instance.SwitchToGlobalWaterHeight();
+            int index = FindIndexByHotPointName(temp.name);
+            Debug.Log(index);
+            _waterTrendPanel.Show(GlobalData.swDatas[index].STCD, GlobalData.swDatas[index].STNM);
         }
         else if ((int)temp.type >= 6 || newPoint.layerIDs.Count > 4)
         {

Some files were not shown because too many files changed in this diff