Răsfoiți Sursa

改一下3D闸门监控 闸前后改闸上下,设备列表接入接口展示状态是否正常

Void_F 6 zile în urmă
părinte
comite
e9a2511f83

+ 9 - 9
Assets/Prefabs/UI/SWFZ/ZMJK.prefab

@@ -155,7 +155,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 1
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: "\u95F8\u540E\u6C34\u4F4D"
+  m_Text: "\u95F8\u4E0B\u6C34\u4F4D"
 --- !u!1 &39932605763342347
 GameObject:
   m_ObjectHideFlags: 0
@@ -7038,7 +7038,7 @@ RectTransform:
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
+  m_AnchorMax: {x: 0, y: 0}
   m_AnchoredPosition: {x: 0, y: 0}
   m_SizeDelta: {x: 0, y: 0}
   m_Pivot: {x: 0.5, y: 0.5}
@@ -11360,7 +11360,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 0
+  m_IsActive: 1
 --- !u!224 &4461453780397662635
 RectTransform:
   m_ObjectHideFlags: 0
@@ -13757,9 +13757,9 @@ RectTransform:
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
+  m_AnchorMax: {x: 0, y: 0}
   m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: -17, y: 0}
+  m_SizeDelta: {x: 0, y: 0}
   m_Pivot: {x: 0, y: 1}
 --- !u!222 &1044064058101103901
 CanvasRenderer:
@@ -14396,9 +14396,9 @@ RectTransform:
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
+  m_AnchorMax: {x: 0, y: 0}
   m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: -3, y: 0}
+  m_SizeDelta: {x: 0, y: 0}
   m_Pivot: {x: 0, y: 1}
 --- !u!222 &2904706457155480049
 CanvasRenderer:
@@ -19892,7 +19892,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 1
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: "\u95F8\u524D\u6C34\u4F4D"
+  m_Text: "\u95F8\u4E0A\u6C34\u4F4D"
 --- !u!1 &8035136152146086766
 GameObject:
   m_ObjectHideFlags: 0
@@ -20237,7 +20237,7 @@ RectTransform:
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 0.81333333}
+  m_AnchorMax: {x: 0, y: 0}
   m_AnchoredPosition: {x: 0, y: 0}
   m_SizeDelta: {x: 20, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}

+ 1 - 0
Assets/Scripts/UI/Data/DevicesId_Data.cs

@@ -26,4 +26,5 @@ public class DevicesId_Data
 
     public string groupId;
     public string groupName;
+    public int status;//0正常 1异常
 }

+ 1 - 1
Assets/Scripts/UI/UIView/GCJK/GCJKLayer.cs

@@ -1000,7 +1000,7 @@ public class GCJKLayer : YZTRootLayer
                         tempLieBiaoData.type = GongChengType.weiYiJi;
                         break;
                 }
-                tempLieBiaoData.state = GongChengState.normal;
+                tempLieBiaoData.state = (GongChengState)devicesData.status;
                 tempLieBiaoData.sid = devicesData.dataSid;
                 tempLieBiaoData.gid = devicesData.dataGid;
                 _DevivesDatas.Add(tempLieBiaoData);