|
@@ -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)
|
|
|
{
|