Jelajahi Sumber

3D闸门加上三线水位

Void_F 6 hari lalu
induk
melakukan
ea65fc32bf

File diff ditekan karena terlalu besar
+ 475 - 201
Assets/Prefabs/UI/SWFZ/ZMJK.prefab


+ 1 - 0
Assets/Scripts/HttpGetData.cs

@@ -158,6 +158,7 @@ public class DeviceTrendData
 {
     public string timeGroup;
     public string r1;
+    public string unit;
 }
 
 [Serializable]

+ 16 - 0
Assets/Scripts/UI/UIView/3D/ZMJKLayer.cs

@@ -40,6 +40,10 @@ public class ZMJKLayer : MonoBehaviour
     public GameObject zhaMenIconOri;
     public Transform zhaMenContent;
     public List<ZhaMenIconCtrl> zhaMenIconList = new List<ZhaMenIconCtrl>();
+    
+    public GameObject byThreeLine;
+    public GameObject tkThreesLine;
+
 
     private void Awake()
     {
@@ -230,6 +234,18 @@ public class ZMJKLayer : MonoBehaviour
 
         tempSeries[0].data.Clear();
         tempSeries[0].data.AddRange(tempDatas);
+        
+        if (type == 0)
+        {
+            byThreeLine.gameObject.SetActive(true);
+            tkThreesLine.gameObject.SetActive(false);
+        }
+        else
+        {
+            byThreeLine.gameObject.SetActive(false);
+            tkThreesLine.gameObject.SetActive(true);
+        }
+        
     }
 
 

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini