|
@@ -3,6 +3,7 @@ using Newtonsoft.Json;
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
using UnityEngine;
|
|
|
using UnityEngine.UI;
|
|
|
+using TMPro;
|
|
|
|
|
|
namespace GHZLangChao
|
|
|
{
|
|
@@ -11,6 +12,10 @@ namespace GHZLangChao
|
|
|
private DeviceParameters DeviceParameter;
|
|
|
public Transform currentPos;
|
|
|
public DataItem item;
|
|
|
+ public TMP_Text deviceName;
|
|
|
+ public TMP_Text type;
|
|
|
+ public TMP_Text model;
|
|
|
+ public TMP_Text ip;
|
|
|
|
|
|
[SerializeField] private Button DetailsBtn;
|
|
|
|
|
@@ -26,6 +31,12 @@ namespace GHZLangChao
|
|
|
this.DeviceParameter = DeviceParameter;
|
|
|
this.i = i;
|
|
|
this.item = item;
|
|
|
+
|
|
|
+ deviceName.text = DeviceParameter.cabinetNumber;
|
|
|
+ type.text = DeviceParameter.deviceType;
|
|
|
+ model.text = DeviceParameter.deviceBrand;
|
|
|
+ ip.text = DeviceParameter.managementIP;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void InitNull()
|
|
@@ -35,7 +46,7 @@ namespace GHZLangChao
|
|
|
|
|
|
private void ClickDetails()
|
|
|
{
|
|
|
- DeviceParameter.deviceModel = "NetView400" + i;
|
|
|
+
|
|
|
|
|
|
|
|
|
|