Browse Source

提交一张图修改

wartheking 9 tháng trước cách đây
mục cha
commit
7efd828138

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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;
         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)
     void OnNewPointClick(HotPointData temp, RuntimePoint newPoint)
     {
     {
         if ((int)temp.type == 4)
         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)
         else if ((int)temp.type >= 6 || newPoint.layerIDs.Count > 4)
         {
         {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác