|
@@ -22,15 +22,15 @@ public enum shuiWeiYuJingDataType
|
|
[System.Serializable]
|
|
[System.Serializable]
|
|
public class StationData : IComparable
|
|
public class StationData : IComparable
|
|
{
|
|
{
|
|
- public string stnm; // 站名
|
|
|
|
- public string lgtd; // 经度
|
|
|
|
- public string lttd; // 纬度
|
|
|
|
- public string stcd; // 站码
|
|
|
|
|
|
+ public string stnm; // 站名
|
|
|
|
+ public string lgtd; // 经度
|
|
|
|
+ public string lttd; // 纬度
|
|
|
|
+ public string stcd; // 站码
|
|
|
|
|
|
- public float? upz; // 上水位
|
|
|
|
- public float? dwz; // 下水位
|
|
|
|
- public float? tgtq; // 流量
|
|
|
|
- public string tm; // 时间
|
|
|
|
|
|
+ public float? upz; // 上水位
|
|
|
|
+ public float? dwz; // 下水位
|
|
|
|
+ public float? tgtq; // 流量
|
|
|
|
+ public string tm; // 时间
|
|
|
|
|
|
public string swchrcd;
|
|
public string swchrcd;
|
|
public string msqmt;
|
|
public string msqmt;
|
|
@@ -92,8 +92,7 @@ public class SWYJLayer : YZTRootLayer
|
|
//水位变化与统计
|
|
//水位变化与统计
|
|
private BarChart shuiWeiBianHua;
|
|
private BarChart shuiWeiBianHua;
|
|
|
|
|
|
- [Header("工程安全监测-水位变化与统计数据")]
|
|
|
|
- public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Month;
|
|
|
|
|
|
+ [Header("工程安全监测-水位变化与统计数据")] public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Month;
|
|
public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Day;
|
|
public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Day;
|
|
public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Hour;
|
|
public ShuiWeiBianHuaData ShuiWeiBianHuaData_TK_Hour;
|
|
|
|
|
|
@@ -112,7 +111,6 @@ public class SWYJLayer : YZTRootLayer
|
|
public UnityEngine.UI.Button exitGlobalSWBtn;
|
|
public UnityEngine.UI.Button exitGlobalSWBtn;
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
public Sprite highLightBtn;
|
|
public Sprite highLightBtn;
|
|
public Sprite normalBtn;
|
|
public Sprite normalBtn;
|
|
|
|
|
|
@@ -124,7 +122,7 @@ public class SWYJLayer : YZTRootLayer
|
|
|
|
|
|
public GameObject runtimePointObj;
|
|
public GameObject runtimePointObj;
|
|
|
|
|
|
- public GameObject shuiweiIconPrefab;
|
|
|
|
|
|
+ //public GameObject shuiweiIconPrefab;
|
|
private List<ShuiWeiIconCtrl> _shuiWeiIconCtrls = new List<ShuiWeiIconCtrl>();
|
|
private List<ShuiWeiIconCtrl> _shuiWeiIconCtrls = new List<ShuiWeiIconCtrl>();
|
|
private Transform _shuiWeiIconContent;
|
|
private Transform _shuiWeiIconContent;
|
|
private bool creatShuiWeiIcon = false;
|
|
private bool creatShuiWeiIcon = false;
|
|
@@ -133,6 +131,10 @@ public class SWYJLayer : YZTRootLayer
|
|
public GameObject zdpmPrefab;
|
|
public GameObject zdpmPrefab;
|
|
//public GameObject[] zdpmObjs;
|
|
//public GameObject[] zdpmObjs;
|
|
|
|
|
|
|
|
+ //上下游水位
|
|
|
|
+ public ShuiWeiCtrl swSY;
|
|
|
|
+ public ShuiWeiCtrl swXY;
|
|
|
|
+
|
|
private void Awake()
|
|
private void Awake()
|
|
{
|
|
{
|
|
Init();
|
|
Init();
|
|
@@ -143,6 +145,7 @@ public class SWYJLayer : YZTRootLayer
|
|
TaoKouDataButton.GetComponent<UnityEngine.UI.Image>().sprite = normalBtn;
|
|
TaoKouDataButton.GetComponent<UnityEngine.UI.Image>().sprite = normalBtn;
|
|
StaticLod.instance.OnFoucusStatic(0);
|
|
StaticLod.instance.OnFoucusStatic(0);
|
|
ChangeDataType(shuiWeiYuJingDataType.BuYuan);
|
|
ChangeDataType(shuiWeiYuJingDataType.BuYuan);
|
|
|
|
+ CreateOrRefreshShuiWeiIcon();
|
|
});
|
|
});
|
|
TaoKouDataButton = this.transform.Find("Main/TaoKouButton").GetComponent<Button>();
|
|
TaoKouDataButton = this.transform.Find("Main/TaoKouButton").GetComponent<Button>();
|
|
TaoKouDataButton.onClick.AddListener(() =>
|
|
TaoKouDataButton.onClick.AddListener(() =>
|
|
@@ -151,6 +154,7 @@ public class SWYJLayer : YZTRootLayer
|
|
TaoKouDataButton.GetComponent<UnityEngine.UI.Image>().sprite = highLightBtn;
|
|
TaoKouDataButton.GetComponent<UnityEngine.UI.Image>().sprite = highLightBtn;
|
|
StaticLod.instance.OnFoucusStatic(1);
|
|
StaticLod.instance.OnFoucusStatic(1);
|
|
ChangeDataType(shuiWeiYuJingDataType.TaoKou);
|
|
ChangeDataType(shuiWeiYuJingDataType.TaoKou);
|
|
|
|
+ CreateOrRefreshShuiWeiIcon();
|
|
});
|
|
});
|
|
|
|
|
|
//水位
|
|
//水位
|
|
@@ -171,7 +175,6 @@ public class SWYJLayer : YZTRootLayer
|
|
|
|
|
|
void InitSWZData()
|
|
void InitSWZData()
|
|
{
|
|
{
|
|
-
|
|
|
|
if (GlobalData.qXZDatas.Count < 1 || GlobalData.qXZDatas1h.Count < 1)
|
|
if (GlobalData.qXZDatas.Count < 1 || GlobalData.qXZDatas1h.Count < 1)
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -185,9 +188,11 @@ public class SWYJLayer : YZTRootLayer
|
|
{
|
|
{
|
|
xtValue = GlobalData.qXZDatas[i].dropSum6;
|
|
xtValue = GlobalData.qXZDatas[i].dropSum6;
|
|
}
|
|
}
|
|
|
|
+
|
|
total24Value += GlobalData.qXZDatas[i].dropSum6;
|
|
total24Value += GlobalData.qXZDatas[i].dropSum6;
|
|
max24Value = MathF.Max(max24Value, GlobalData.qXZDatas[i].dropSum6);
|
|
max24Value = MathF.Max(max24Value, GlobalData.qXZDatas[i].dropSum6);
|
|
}
|
|
}
|
|
|
|
+
|
|
avg24Value = total24Value / GlobalData.qXZDatas.Count;
|
|
avg24Value = total24Value / GlobalData.qXZDatas.Count;
|
|
|
|
|
|
float total1Value = 0;
|
|
float total1Value = 0;
|
|
@@ -196,15 +201,15 @@ public class SWYJLayer : YZTRootLayer
|
|
|
|
|
|
for (int i = 0; i < GlobalData.qXZDatas1h.Count; i++)
|
|
for (int i = 0; i < GlobalData.qXZDatas1h.Count; i++)
|
|
{
|
|
{
|
|
-
|
|
|
|
total1Value += GlobalData.qXZDatas[i].dropSum6;
|
|
total1Value += GlobalData.qXZDatas[i].dropSum6;
|
|
max1Value = MathF.Max(max24Value, GlobalData.qXZDatas[i].dropSum6);
|
|
max1Value = MathF.Max(max24Value, GlobalData.qXZDatas[i].dropSum6);
|
|
}
|
|
}
|
|
|
|
+
|
|
avg1Value = total24Value / GlobalData.qXZDatas.Count;
|
|
avg1Value = total24Value / GlobalData.qXZDatas.Count;
|
|
|
|
|
|
|
|
|
|
_dangQianYuLiangText.text =
|
|
_dangQianYuLiangText.text =
|
|
- $"{max1Value.ToString("0.00")} <size=14><color=#A5BBE2>mm</color></size>";
|
|
|
|
|
|
+ $"{max1Value.ToString("0.00")} <size=14><color=#A5BBE2>mm</color></size>";
|
|
_zuiDaYuLiangText.text =
|
|
_zuiDaYuLiangText.text =
|
|
$"{max24Value.ToString("0.00")} <size=14><color=#A5BBE2>mm</color></size>";
|
|
$"{max24Value.ToString("0.00")} <size=14><color=#A5BBE2>mm</color></size>";
|
|
_pingJunYuLiangText.text =
|
|
_pingJunYuLiangText.text =
|
|
@@ -252,10 +257,12 @@ public class SWYJLayer : YZTRootLayer
|
|
{
|
|
{
|
|
value1 = value1 / 100.0f;
|
|
value1 = value1 / 100.0f;
|
|
}
|
|
}
|
|
|
|
+
|
|
if (value2 > 1000)
|
|
if (value2 > 1000)
|
|
{
|
|
{
|
|
value2 = value2 / 100.0f;
|
|
value2 = value2 / 100.0f;
|
|
}
|
|
}
|
|
|
|
+
|
|
_pingJunShuiWeiText.text = $"{((value1 + value2) / 2).ToString("0.00")} <color=#A5BBE2>m</color>";
|
|
_pingJunShuiWeiText.text = $"{((value1 + value2) / 2).ToString("0.00")} <color=#A5BBE2>m</color>";
|
|
_sheFangShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[0].floodProtectionLevel} m";
|
|
_sheFangShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[0].floodProtectionLevel} m";
|
|
_jingJieShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[0].warningLevel} m";
|
|
_jingJieShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[0].warningLevel} m";
|
|
@@ -272,16 +279,17 @@ public class SWYJLayer : YZTRootLayer
|
|
{
|
|
{
|
|
value1 = value1 / 100.0f;
|
|
value1 = value1 / 100.0f;
|
|
}
|
|
}
|
|
|
|
+
|
|
if (value2 > 1000)
|
|
if (value2 > 1000)
|
|
{
|
|
{
|
|
value2 = value2 / 100.0f;
|
|
value2 = value2 / 100.0f;
|
|
}
|
|
}
|
|
|
|
+
|
|
_pingJunShuiWeiText.text = $"{((value1 + value2) / 2).ToString("0.00")} <color=#A5BBE2>m</color>";
|
|
_pingJunShuiWeiText.text = $"{((value1 + value2) / 2).ToString("0.00")} <color=#A5BBE2>m</color>";
|
|
_sheFangShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].floodProtectionLevel} m";
|
|
_sheFangShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].floodProtectionLevel} m";
|
|
_jingJieShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].warningLevel} m";
|
|
_jingJieShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].warningLevel} m";
|
|
_baoZhengShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].guaranteeLevel} m";
|
|
_baoZhengShuiWeiText.text = $"{GlobalData.threeLevelShuiWeiDatas[1].guaranteeLevel} m";
|
|
_shuiWeiText.text = $"{value1.ToString("0.00")}";
|
|
_shuiWeiText.text = $"{value1.ToString("0.00")}";
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -289,64 +297,84 @@ public class SWYJLayer : YZTRootLayer
|
|
//水位图标
|
|
//水位图标
|
|
public void CreateOrRefreshShuiWeiIcon()
|
|
public void CreateOrRefreshShuiWeiIcon()
|
|
{
|
|
{
|
|
- if (_shuiWeiIconCtrls.Count < 1)
|
|
|
|
|
|
+ if (currentDataType == 0)
|
|
{
|
|
{
|
|
- for (int i = 0; i < GlobalData.BuYuanShuiWeiDataList.Count; i++)
|
|
|
|
|
|
+ float? swUp = null;
|
|
|
|
+ float? swDown = null;
|
|
|
|
+ string swUpName = "";
|
|
|
|
+ string swDownName = "";
|
|
|
|
+ for (int i = 0; i < GlobalData.swDatas.Count; i++)
|
|
{
|
|
{
|
|
- ShuiWeiIconCtrl tempIcon =
|
|
|
|
- Instantiate(shuiweiIconPrefab, _shuiWeiIconContent).GetComponent<ShuiWeiIconCtrl>();
|
|
|
|
- tempIcon.Init(GlobalData.BuYuanShuiWeiDataList[i]);
|
|
|
|
- _shuiWeiIconCtrls.Add(tempIcon);
|
|
|
|
- }
|
|
|
|
|
|
+ if (GlobalData.swDatas[i].stnm == "补元(上)")
|
|
|
|
+ {
|
|
|
|
+ swUp = GlobalData.swDatas[i].upz;
|
|
|
|
+ swUpName = GlobalData.swDatas[i].stnm;
|
|
|
|
+ }
|
|
|
|
|
|
- if (_shuiWeiIconCtrls.Count < 1)
|
|
|
|
- {
|
|
|
|
- return;
|
|
|
|
|
|
+ if (GlobalData.swDatas[i].stnm == "补元(下)")
|
|
|
|
+ {
|
|
|
|
+ swDown = GlobalData.swDatas[i].dwz;
|
|
|
|
+ swDownName = GlobalData.swDatas[i].stnm;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- GameObject[] BY_targs = GameObject.FindGameObjectsWithTag(shuiWeiType.BuYuanShuiWei.ToString());
|
|
|
|
- GameObject[] TK_targs = GameObject.FindGameObjectsWithTag(shuiWeiType.TaoKouShuiWei.ToString());
|
|
|
|
- for (int i = 0; i < _shuiWeiIconCtrls.Count; i++)
|
|
|
|
|
|
+ var swTargets = GameObject.FindGameObjectsWithTag("BY_SW");
|
|
|
|
+ for (int i = 0; i < swTargets.Length; i++)
|
|
{
|
|
{
|
|
- string objName = _shuiWeiIconCtrls[i]._data.targetName;
|
|
|
|
- if (_shuiWeiIconCtrls[i]._data.type == shuiWeiType.BuYuanShuiWei)
|
|
|
|
|
|
+ if (swTargets[i].name.Equals("BY_ZhaQian"))
|
|
{
|
|
{
|
|
- for (int j = 0; j < BY_targs.Length; j++)
|
|
|
|
- {
|
|
|
|
- if (BY_targs[j].gameObject.name == objName)
|
|
|
|
- {
|
|
|
|
- _shuiWeiIconCtrls[i].targetTransForm = BY_targs[j].transform;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ swSY.SetData(swUpName, swUp, swTargets[i].transform);
|
|
}
|
|
}
|
|
- else
|
|
|
|
|
|
+
|
|
|
|
+ if (swTargets[i].name.Equals("BY_ZhaHou"))
|
|
{
|
|
{
|
|
- for (int j = 0; j < TK_targs.Length; j++)
|
|
|
|
- {
|
|
|
|
- if (TK_targs[j].gameObject.name == objName)
|
|
|
|
- {
|
|
|
|
- _shuiWeiIconCtrls[i].targetTransForm = TK_targs[j].transform;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ swXY.SetData(swDownName, swDown, swTargets[i].transform);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- for (int i = 0; i < GlobalData.BuYuanShuiWeiDataList.Count; i++)
|
|
|
|
|
|
+ float? swUp = null;
|
|
|
|
+ float? swDown = null;
|
|
|
|
+ string swUpName = "";
|
|
|
|
+ string swDownName = "";
|
|
|
|
+ for (int i = 0; i < GlobalData.swDatas.Count; i++)
|
|
{
|
|
{
|
|
- _shuiWeiIconCtrls[i].Init(GlobalData.BuYuanShuiWeiDataList[i]);
|
|
|
|
|
|
+ if (GlobalData.swDatas[i].stnm == "套口(上)")
|
|
|
|
+ {
|
|
|
|
+ swUp = GlobalData.swDatas[i].upz;
|
|
|
|
+ swUpName = GlobalData.swDatas[i].stnm;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (GlobalData.swDatas[i].stnm == "套口(下)")
|
|
|
|
+ {
|
|
|
|
+ swDown = GlobalData.swDatas[i].dwz;
|
|
|
|
+ swDownName = GlobalData.swDatas[i].stnm;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
+ var swTargets = GameObject.FindGameObjectsWithTag("TK_SW");
|
|
|
|
+ for (int i = 0; i < swTargets.Length; i++)
|
|
|
|
+ {
|
|
|
|
+ if (swTargets[i].name.Equals("TK_ZhaQian"))
|
|
|
|
+ {
|
|
|
|
+ swSY.SetData(swUpName, swUp, swTargets[i].transform);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ if (swTargets[i].name.Equals("TK_ZhaHou"))
|
|
|
|
+ {
|
|
|
|
+ swXY.SetData(swDownName, swDown, swTargets[i].transform);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
public void Init()
|
|
public void Init()
|
|
{
|
|
{
|
|
|
|
+ swSY.Init();
|
|
|
|
+ swXY.Init();
|
|
|
|
+
|
|
//全域雨量
|
|
//全域雨量
|
|
_dangQianYuLiangText = this.transform.Find("Left/QuanYuYuLiang/DangQianYuLiang/numText").GetComponent<Text>();
|
|
_dangQianYuLiangText = this.transform.Find("Left/QuanYuYuLiang/DangQianYuLiang/numText").GetComponent<Text>();
|
|
_zuiDaYuLiangText = this.transform.Find("Left/QuanYuYuLiang/ZuiDaYuLiang/numText").GetComponent<Text>();
|
|
_zuiDaYuLiangText = this.transform.Find("Left/QuanYuYuLiang/ZuiDaYuLiang/numText").GetComponent<Text>();
|
|
@@ -356,8 +384,6 @@ public class SWYJLayer : YZTRootLayer
|
|
_weatherTypeIcon = this.transform.Find("Left/QuanYuYuLiang/weatherIcon").GetComponent<Image>();
|
|
_weatherTypeIcon = this.transform.Find("Left/QuanYuYuLiang/weatherIcon").GetComponent<Image>();
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
//工程安全监测
|
|
//工程安全监测
|
|
//检测数据
|
|
//检测数据
|
|
_pingJunShuiWeiText = this.transform.Find("RightUp/JianKongShuJu/PingJunShuiWei/numText").GetComponent<Text>();
|
|
_pingJunShuiWeiText = this.transform.Find("RightUp/JianKongShuJu/PingJunShuiWei/numText").GetComponent<Text>();
|
|
@@ -414,7 +440,8 @@ public class SWYJLayer : YZTRootLayer
|
|
SWHeightUnit swHUnit = gameObject.GetComponent<SWHeightUnit>();
|
|
SWHeightUnit swHUnit = gameObject.GetComponent<SWHeightUnit>();
|
|
swHUnit.transform.SetParent(miniMapSWContent.transform);
|
|
swHUnit.transform.SetParent(miniMapSWContent.transform);
|
|
float max = math.max(GlobalData.swDatas[i].upz ?? 0, GlobalData.swDatas[i].dwz ?? 0);
|
|
float max = math.max(GlobalData.swDatas[i].upz ?? 0, GlobalData.swDatas[i].dwz ?? 0);
|
|
- swHUnit.Init(GlobalData.swDatas[i].lgtd, GlobalData.swDatas[i].lttd, GlobalData.swDatas[i].stnm, max.ToString());
|
|
|
|
|
|
+ swHUnit.Init(GlobalData.swDatas[i].lgtd, GlobalData.swDatas[i].lttd, GlobalData.swDatas[i].stnm,
|
|
|
|
+ max.ToString());
|
|
sWHeightUnits.Add(swHUnit);
|
|
sWHeightUnits.Add(swHUnit);
|
|
|
|
|
|
swHUnit.bingObj = Instantiate(runtimePointObj).gameObject;
|
|
swHUnit.bingObj = Instantiate(runtimePointObj).gameObject;
|
|
@@ -432,12 +459,15 @@ public class SWYJLayer : YZTRootLayer
|
|
for (int i = 0; i < GlobalData.swDatas.Count; i++)
|
|
for (int i = 0; i < GlobalData.swDatas.Count; i++)
|
|
{
|
|
{
|
|
float max = math.max(GlobalData.swDatas[i].upz ?? 0, GlobalData.swDatas[i].dwz ?? 0);
|
|
float max = math.max(GlobalData.swDatas[i].upz ?? 0, GlobalData.swDatas[i].dwz ?? 0);
|
|
- sWHeightUnits[i].Init(GlobalData.swDatas[i].lgtd, GlobalData.swDatas[i].lttd, GlobalData.swDatas[i].stnm, max.ToString());
|
|
|
|
|
|
+ sWHeightUnits[i].Init(GlobalData.swDatas[i].lgtd, GlobalData.swDatas[i].lttd,
|
|
|
|
+ GlobalData.swDatas[i].stnm, max.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
miniMap.gameObject.SetActive(true);
|
|
miniMap.gameObject.SetActive(true);
|
|
main.gameObject.SetActive(false);
|
|
main.gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
+
|
|
public void OnShuiWeiDropDownSelect(int value)
|
|
public void OnShuiWeiDropDownSelect(int value)
|
|
{
|
|
{
|
|
if (currentDataType == shuiWeiYuJingDataType.BuYuan)
|
|
if (currentDataType == shuiWeiYuJingDataType.BuYuan)
|
|
@@ -474,7 +504,6 @@ public class SWYJLayer : YZTRootLayer
|
|
|
|
|
|
public void SetShuiWeiTongJiBarChart(ShuiWeiBianHuaData shuiWeiBianHuaData)
|
|
public void SetShuiWeiTongJiBarChart(ShuiWeiBianHuaData shuiWeiBianHuaData)
|
|
{
|
|
{
|
|
-
|
|
|
|
shuiWeiBianHuaData.InverseAllData();
|
|
shuiWeiBianHuaData.InverseAllData();
|
|
string yearTitle = shuiWeiBianHuaData.GetYearRange();
|
|
string yearTitle = shuiWeiBianHuaData.GetYearRange();
|
|
if (shuiWeiBianHuaData != null)
|
|
if (shuiWeiBianHuaData != null)
|
|
@@ -488,9 +517,10 @@ public class SWYJLayer : YZTRootLayer
|
|
string monthDay = date.ToString("MM-dd"); // 结果为"03-30"
|
|
string monthDay = date.ToString("MM-dd"); // 结果为"03-30"
|
|
x_chart.data.Add(monthDay);
|
|
x_chart.data.Add(monthDay);
|
|
}
|
|
}
|
|
|
|
+
|
|
x_chart.axisName.name = yearTitle;
|
|
x_chart.axisName.name = yearTitle;
|
|
x_chart.refreshComponent?.Invoke();
|
|
x_chart.refreshComponent?.Invoke();
|
|
-
|
|
|
|
|
|
+
|
|
var tempSeries = shuiWeiBianHua.series;
|
|
var tempSeries = shuiWeiBianHua.series;
|
|
tempSeries[0].ClearData();
|
|
tempSeries[0].ClearData();
|
|
tempSeries[1].ClearData();
|
|
tempSeries[1].ClearData();
|
|
@@ -531,12 +561,12 @@ public class SWYJLayer : YZTRootLayer
|
|
obj.transform.GetChild(0).GetChild(0).GetComponent<Text>().text = "2";
|
|
obj.transform.GetChild(0).GetChild(0).GetComponent<Text>().text = "2";
|
|
else
|
|
else
|
|
obj.transform.GetChild(0).GetChild(0).GetComponent<Text>().text = i + "";
|
|
obj.transform.GetChild(0).GetChild(0).GetComponent<Text>().text = i + "";
|
|
- obj.transform.GetChild(1).GetChild(0).GetComponent<Text>().text = $"{max} <size=14><color=#A5BBE2>m</color></size>";
|
|
|
|
|
|
+ obj.transform.GetChild(1).GetChild(0).GetComponent<Text>().text =
|
|
|
|
+ $"{max} <size=14><color=#A5BBE2>m</color></size>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
public void ChangeDataType(shuiWeiYuJingDataType _type)
|
|
public void ChangeDataType(shuiWeiYuJingDataType _type)
|
|
{
|
|
{
|
|
if (currentDataType != _type)
|
|
if (currentDataType != _type)
|