|
@@ -181,12 +181,22 @@ public class GCJKLayer : YZTRootLayer
|
|
private RectTransform _gongChengLieBiaoContent;
|
|
private RectTransform _gongChengLieBiaoContent;
|
|
public GameObject GongChengLieBiaoItemOri;
|
|
public GameObject GongChengLieBiaoItemOri;
|
|
private List<GongChengLieBiaoItem> currentGongChengLieBiaoItems = new List<GongChengLieBiaoItem>();
|
|
private List<GongChengLieBiaoItem> currentGongChengLieBiaoItems = new List<GongChengLieBiaoItem>();
|
|
|
|
+
|
|
private Button GClist_QuanBuButton;
|
|
private Button GClist_QuanBuButton;
|
|
- private Button GClist_ShuiWeiButton;
|
|
|
|
- private Button GClist_ShuiYaButton;
|
|
|
|
- private Button GClist_WeiYiButton;
|
|
|
|
private Button GClist_ShiPinButton;
|
|
private Button GClist_ShiPinButton;
|
|
|
|
+ private Button GClist_jingLiShuiZhunYiButton;
|
|
|
|
+ private Button GClist_ShenYaJiButton;
|
|
|
|
|
|
|
|
+ private Button GClist_ShuiWeiButton;
|
|
|
|
+ private Button GClist_WenDuButton;
|
|
|
|
+ private Button GClist_yinZhangXianYiButton;
|
|
|
|
+ private Button GClist_chuiXianZuoBiaoYiButton;
|
|
|
|
+ private Button GClist_tuYaLiJiButton;
|
|
|
|
+ private Button GClist_yingLiJiButton;
|
|
|
|
+ private Button GClist_sanXiangWeiCuoJiButton;
|
|
|
|
+ private Button GClist_erXiangCeFengJiButton;
|
|
|
|
+ private Button GClist_weiYiJiButton;
|
|
|
|
+
|
|
//视频监控
|
|
//视频监控
|
|
[Header("监控数据")] public ObsPlayerPanel obsPanel;
|
|
[Header("监控数据")] public ObsPlayerPanel obsPanel;
|
|
public GameObject obsItemPrefab;
|
|
public GameObject obsItemPrefab;
|
|
@@ -221,8 +231,8 @@ public class GCJKLayer : YZTRootLayer
|
|
|
|
|
|
public RectTransform main;
|
|
public RectTransform main;
|
|
public RectTransform miniMap;
|
|
public RectTransform miniMap;
|
|
- public UnityEngine.UI.Button globalWeatherBtn;
|
|
|
|
- public UnityEngine.UI.Button exitGlobalWeatherBtn;
|
|
|
|
|
|
+ public Button globalWeatherBtn;
|
|
|
|
+ public Button exitGlobalWeatherBtn;
|
|
|
|
|
|
private ShuiWeiHistoryPanel _shuiWeiHistoryPanel;
|
|
private ShuiWeiHistoryPanel _shuiWeiHistoryPanel;
|
|
|
|
|
|
@@ -232,8 +242,8 @@ public class GCJKLayer : YZTRootLayer
|
|
public GameObject dropUnitPrefab;
|
|
public GameObject dropUnitPrefab;
|
|
public GameObject weatherUnitPrefab;
|
|
public GameObject weatherUnitPrefab;
|
|
|
|
|
|
- public UnityEngine.UI.Button qxDataBtn;
|
|
|
|
- public UnityEngine.UI.Button swDataBtn;
|
|
|
|
|
|
+ public Button qxDataBtn;
|
|
|
|
+ public Button swDataBtn;
|
|
|
|
|
|
public Sprite highLightBtn;
|
|
public Sprite highLightBtn;
|
|
public Sprite normalBtn;
|
|
public Sprite normalBtn;
|
|
@@ -381,17 +391,42 @@ public class GCJKLayer : YZTRootLayer
|
|
//工程列表
|
|
//工程列表
|
|
_gongChengLieBiaoContent = this.transform.Find("RightUp/GongChengLieBiao/ScrollView/Viewport/Content")
|
|
_gongChengLieBiaoContent = this.transform.Find("RightUp/GongChengLieBiao/ScrollView/Viewport/Content")
|
|
.GetComponent<RectTransform>();
|
|
.GetComponent<RectTransform>();
|
|
- GClist_QuanBuButton = this.transform.Find("RightUp/GongChengLieBiao/QuanBuButton").GetComponent<Button>();
|
|
|
|
|
|
+
|
|
|
|
+ GClist_QuanBuButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_QuanBuButton").GetComponent<Button>();
|
|
GClist_QuanBuButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.all); });
|
|
GClist_QuanBuButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.all); });
|
|
- GClist_ShuiWeiButton = this.transform.Find("RightUp/GongChengLieBiao/ShuiWeiButton").GetComponent<Button>();
|
|
|
|
|
|
+ GClist_ShuiWeiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_ShuiWeiButton").GetComponent<Button>();
|
|
GClist_ShuiWeiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shuiWei); });
|
|
GClist_ShuiWeiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shuiWei); });
|
|
- GClist_ShuiYaButton = this.transform.Find("RightUp/GongChengLieBiao/ShuiYaButton").GetComponent<Button>();
|
|
|
|
- GClist_ShuiYaButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shuiYa); });
|
|
|
|
- GClist_WeiYiButton = this.transform.Find("RightUp/GongChengLieBiao/WeiYiButton").GetComponent<Button>();
|
|
|
|
- GClist_WeiYiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.weiYi); });
|
|
|
|
- GClist_ShiPinButton = this.transform.Find("RightUp/GongChengLieBiao/JianKongButton").GetComponent<Button>();
|
|
|
|
|
|
+ GClist_ShenYaJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_ShenYaJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_ShenYaJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shenYaJi); });
|
|
|
|
+ GClist_jingLiShuiZhunYiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_jingLiShuiZhunYiButton").GetComponent<Button>();
|
|
|
|
+ GClist_jingLiShuiZhunYiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.jingLiShuiZhunYi); });
|
|
|
|
+ GClist_ShiPinButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_ShiPinButton").GetComponent<Button>();
|
|
GClist_ShiPinButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shiPin); });
|
|
GClist_ShiPinButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.shiPin); });
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ GClist_WenDuButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_WenDuButton").GetComponent<Button>();
|
|
|
|
+ GClist_WenDuButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.wenDu); });
|
|
|
|
+
|
|
|
|
+ GClist_yinZhangXianYiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_yinZhangXianYiButton").GetComponent<Button>();
|
|
|
|
+ GClist_yinZhangXianYiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.yinZhangXianYi); });
|
|
|
|
+
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_chuiXianZuoBiaoYiButton").GetComponent<Button>();
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.chuiXianZuoBiaoYi); });
|
|
|
|
+
|
|
|
|
+ GClist_tuYaLiJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_tuYaLiJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_tuYaLiJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.tuYaLiJi); });
|
|
|
|
+
|
|
|
|
+ GClist_yingLiJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_yingLiJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_yingLiJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.yingLiJi); });
|
|
|
|
+
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_sanXiangWeiCuoJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.sanXiangWeiCuoJi); });
|
|
|
|
+
|
|
|
|
+ GClist_erXiangCeFengJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_erXiangCeFengJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_erXiangCeFengJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.erXiangCeFengJi); });
|
|
|
|
+
|
|
|
|
+ GClist_weiYiJiButton = this.transform.Find("RightUp/GongChengLieBiao/buttons/GClist_weiYiJiButton").GetComponent<Button>();
|
|
|
|
+ GClist_weiYiJiButton.onClick.AddListener(() => { SeachGongChengList(GongChengType.weiYiJi); });
|
|
|
|
+
|
|
//监控
|
|
//监控
|
|
obsPanel = this.transform.Find("Main/ObsPlayerPanel").GetComponent<ObsPlayerPanel>();
|
|
obsPanel = this.transform.Find("Main/ObsPlayerPanel").GetComponent<ObsPlayerPanel>();
|
|
obsPanel.gameObject.SetActive(false);
|
|
obsPanel.gameObject.SetActive(false);
|
|
@@ -633,6 +668,15 @@ public class GCJKLayer : YZTRootLayer
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ GClist_ShuiWeiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_WenDuButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_yinZhangXianYiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_tuYaLiJiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_yingLiJiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_erXiangCeFengJiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_weiYiJiButton.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -665,6 +709,15 @@ public class GCJKLayer : YZTRootLayer
|
|
swXY.SetData(swDownName,swDown,swTargets[i].transform);
|
|
swXY.SetData(swDownName,swDown,swTargets[i].transform);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ GClist_ShuiWeiButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_WenDuButton.gameObject.SetActive(false);
|
|
|
|
+ GClist_yinZhangXianYiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_tuYaLiJiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_yingLiJiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_erXiangCeFengJiButton.gameObject.SetActive(true);
|
|
|
|
+ GClist_weiYiJiButton.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -834,46 +887,57 @@ public class GCJKLayer : YZTRootLayer
|
|
public void SetGongChengLieBiaoData()
|
|
public void SetGongChengLieBiaoData()
|
|
{
|
|
{
|
|
_DevivesDatas.Clear();
|
|
_DevivesDatas.Clear();
|
|
- //水位
|
|
|
|
- foreach (var tempData in currentDataType == 0
|
|
|
|
- ? GlobalData.BuYuanShuiWeiDataList
|
|
|
|
- : GlobalData.TaoKouShuiWeiDataList)
|
|
|
|
- {
|
|
|
|
- GongChengLieBiaoData tempLieBiaoData = new GongChengLieBiaoData();
|
|
|
|
- tempLieBiaoData.name = tempData.name;
|
|
|
|
- tempLieBiaoData.type = GongChengType.shuiWei;
|
|
|
|
- tempLieBiaoData.state = GongChengState.normal;
|
|
|
|
- tempLieBiaoData.sid = tempData.sid;
|
|
|
|
- tempLieBiaoData.gid = tempData.gid;
|
|
|
|
- _DevivesDatas.Add(tempLieBiaoData);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- //水压
|
|
|
|
- foreach (var tempData in currentDataType == 0
|
|
|
|
- ? GlobalData.BuYuanShuiYaDataList
|
|
|
|
- : GlobalData.TaoKouShuiYaDataList)
|
|
|
|
- {
|
|
|
|
- GongChengLieBiaoData tempLieBiaoData = new GongChengLieBiaoData();
|
|
|
|
- tempLieBiaoData.name = tempData.name;
|
|
|
|
- tempLieBiaoData.type = GongChengType.shuiYa;
|
|
|
|
- tempLieBiaoData.state = GongChengState.normal;
|
|
|
|
- tempLieBiaoData.sid = tempData.sid;
|
|
|
|
- tempLieBiaoData.gid = tempData.gid;
|
|
|
|
- _DevivesDatas.Add(tempLieBiaoData);
|
|
|
|
- }
|
|
|
|
|
|
|
|
- //位移
|
|
|
|
- foreach (var tempData in currentDataType == 0 ? GlobalData.BuYuanWeiYiDataList : GlobalData.TaoKouWeiYiDataList)
|
|
|
|
|
|
+ string stationName = currentDataType == 0 ? "补元" : "套口";
|
|
|
|
+ foreach (var devicesData in GlobalData._devicesIdDatas.Values)
|
|
{
|
|
{
|
|
- GongChengLieBiaoData tempLieBiaoData = new GongChengLieBiaoData();
|
|
|
|
- tempLieBiaoData.name = tempData.name;
|
|
|
|
- tempLieBiaoData.type = GongChengType.weiYi;
|
|
|
|
- tempLieBiaoData.state = GongChengState.normal;
|
|
|
|
- tempLieBiaoData.sid = tempData.sid;
|
|
|
|
- tempLieBiaoData.gid = tempData.gid;
|
|
|
|
- _DevivesDatas.Add(tempLieBiaoData);
|
|
|
|
|
|
+ if (devicesData.stationName.Equals(stationName))
|
|
|
|
+ {
|
|
|
|
+ GongChengLieBiaoData tempLieBiaoData = new GongChengLieBiaoData();
|
|
|
|
+ tempLieBiaoData.name = devicesData.sensorName;
|
|
|
|
+ switch (devicesData.sensorType)
|
|
|
|
+ {
|
|
|
|
+ case "水位计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.shuiWei;
|
|
|
|
+ break;
|
|
|
|
+ case "渗压计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.shenYaJi;
|
|
|
|
+ break;
|
|
|
|
+ case "静力水准仪":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.jingLiShuiZhunYi;
|
|
|
|
+ break;
|
|
|
|
+ case "温度":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.wenDu;
|
|
|
|
+ break;
|
|
|
|
+ case "引张线仪":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.yinZhangXianYi;
|
|
|
|
+ break;
|
|
|
|
+ case "垂线坐标仪":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.chuiXianZuoBiaoYi;
|
|
|
|
+ break;
|
|
|
|
+ case "土压力计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.tuYaLiJi;
|
|
|
|
+ break;
|
|
|
|
+ case "应力计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.yingLiJi;
|
|
|
|
+ break;
|
|
|
|
+ case "三向位错计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.sanXiangWeiCuoJi;
|
|
|
|
+ break;
|
|
|
|
+ case "二向测缝计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.erXiangCeFengJi;
|
|
|
|
+ break;
|
|
|
|
+ case "位移计":
|
|
|
|
+ tempLieBiaoData.type = GongChengType.weiYiJi;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ tempLieBiaoData.state = GongChengState.normal;
|
|
|
|
+ tempLieBiaoData.sid = devicesData.dataSid;
|
|
|
|
+ tempLieBiaoData.gid = devicesData.dataGid;
|
|
|
|
+ _DevivesDatas.Add(tempLieBiaoData);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
//监控
|
|
//监控
|
|
foreach (var tempData in currentDataType == 0 ? GlobalData.obsDatas_by : GlobalData.obsDatas_tk)
|
|
foreach (var tempData in currentDataType == 0 ? GlobalData.obsDatas_by : GlobalData.obsDatas_tk)
|
|
{
|
|
{
|
|
@@ -888,8 +952,8 @@ public class GCJKLayer : YZTRootLayer
|
|
|
|
|
|
GClist_QuanBuButton.GetComponentInChildren<Text>().color = Color.white;
|
|
GClist_QuanBuButton.GetComponentInChildren<Text>().color = Color.white;
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
- GClist_ShuiYaButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
- GClist_WeiYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
|
|
+ GClist_ShenYaJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_jingLiShuiZhunYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
for (int i = 0; i < currentGongChengLieBiaoItems.Count; i++)
|
|
for (int i = 0; i < currentGongChengLieBiaoItems.Count; i++)
|
|
{
|
|
{
|
|
@@ -913,9 +977,17 @@ public class GCJKLayer : YZTRootLayer
|
|
{
|
|
{
|
|
GClist_QuanBuButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_QuanBuButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
- GClist_ShuiYaButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
- GClist_WeiYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
|
|
+ GClist_ShenYaJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_jingLiShuiZhunYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_WenDuButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_yinZhangXianYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_tuYaLiJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_yingLiJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_erXiangCeFengJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
|
|
+ GClist_weiYiJiButton.GetComponentInChildren<Text>().color = new Color(0.6470588f, 0.7490196f, 0.8862745f);
|
|
switch (type)
|
|
switch (type)
|
|
{
|
|
{
|
|
case GongChengType.all:
|
|
case GongChengType.all:
|
|
@@ -924,7 +996,6 @@ public class GCJKLayer : YZTRootLayer
|
|
{
|
|
{
|
|
obj.gameObject.SetActive(true);
|
|
obj.gameObject.SetActive(true);
|
|
}
|
|
}
|
|
-
|
|
|
|
break;
|
|
break;
|
|
case GongChengType.shuiWei:
|
|
case GongChengType.shuiWei:
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
GClist_ShuiWeiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
@@ -932,23 +1003,20 @@ public class GCJKLayer : YZTRootLayer
|
|
{
|
|
{
|
|
obj.gameObject.SetActive(obj._currentData.type == GongChengType.shuiWei);
|
|
obj.gameObject.SetActive(obj._currentData.type == GongChengType.shuiWei);
|
|
}
|
|
}
|
|
-
|
|
|
|
break;
|
|
break;
|
|
- case GongChengType.shuiYa:
|
|
|
|
- GClist_ShuiYaButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
|
|
+ case GongChengType.shenYaJi:
|
|
|
|
+ GClist_ShenYaJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
foreach (var obj in currentGongChengLieBiaoItems)
|
|
foreach (var obj in currentGongChengLieBiaoItems)
|
|
{
|
|
{
|
|
- obj.gameObject.SetActive(obj._currentData.type == GongChengType.shuiYa);
|
|
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.shenYaJi);
|
|
}
|
|
}
|
|
-
|
|
|
|
break;
|
|
break;
|
|
- case GongChengType.weiYi:
|
|
|
|
- GClist_WeiYiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
|
|
+ case GongChengType.jingLiShuiZhunYi:
|
|
|
|
+ GClist_jingLiShuiZhunYiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
foreach (var obj in currentGongChengLieBiaoItems)
|
|
foreach (var obj in currentGongChengLieBiaoItems)
|
|
{
|
|
{
|
|
- obj.gameObject.SetActive(obj._currentData.type == GongChengType.weiYi);
|
|
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.jingLiShuiZhunYi);
|
|
}
|
|
}
|
|
-
|
|
|
|
break;
|
|
break;
|
|
case GongChengType.shiPin:
|
|
case GongChengType.shiPin:
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = Color.white;
|
|
GClist_ShiPinButton.GetComponentInChildren<Text>().color = Color.white;
|
|
@@ -956,7 +1024,62 @@ public class GCJKLayer : YZTRootLayer
|
|
{
|
|
{
|
|
obj.gameObject.SetActive(obj._currentData.type == GongChengType.shiPin);
|
|
obj.gameObject.SetActive(obj._currentData.type == GongChengType.shiPin);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.wenDu:
|
|
|
|
+ GClist_WenDuButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.wenDu);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.yinZhangXianYi:
|
|
|
|
+ GClist_yinZhangXianYiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.yinZhangXianYi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.chuiXianZuoBiaoYi:
|
|
|
|
+ GClist_chuiXianZuoBiaoYiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.chuiXianZuoBiaoYi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.tuYaLiJi:
|
|
|
|
+ GClist_tuYaLiJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.tuYaLiJi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.yingLiJi:
|
|
|
|
+ GClist_yingLiJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.yingLiJi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.sanXiangWeiCuoJi:
|
|
|
|
+ GClist_sanXiangWeiCuoJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.sanXiangWeiCuoJi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.erXiangCeFengJi:
|
|
|
|
+ GClist_erXiangCeFengJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.erXiangCeFengJi);
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case GongChengType.weiYiJi:
|
|
|
|
+ GClist_weiYiJiButton.GetComponentInChildren<Text>().color = Color.white;
|
|
|
|
+ foreach (var obj in currentGongChengLieBiaoItems)
|
|
|
|
+ {
|
|
|
|
+ obj.gameObject.SetActive(obj._currentData.type == GongChengType.weiYiJi);
|
|
|
|
+ }
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|