소스 검색

提交一张图修改

wartheking 9 달 전
부모
커밋
7efd828138
2개의 변경된 파일17개의 추가작업 그리고 98개의 파일을 삭제
  1. 0 97
      Assets/Scene 1.unity
  2. 17 1
      Assets/Scripts/UI/UIView/YZT/YZTLayer.cs

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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)
         {

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.