From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/EquipSetItemView.cs | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs new file mode 100644 index 00000000..ff0d8146 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class EquipSetItemView : EquipSetItemBaseView + { + public GameObject goItem1; + + public GameObject goItem2; + + public GameObject goItem3; + + public GameObject goItem4; + + public IXUILabel lbItemCount1; + + public IXUILabel lbItemCount2; + + public IXUILabel lbItemCount3; + + public IXUILabel lbItemCount4; + + public IXUIButton btnCreate; + + public IXUILabel lbCost; + + public GameObject goRedpoint; + + public override void FindFrom(Transform t) + { + bool flag = null != t; + if (flag) + { + base.FindFrom(t); + this.goItem1 = t.Find("Item1").gameObject; + this.lbItemCount1 = (this.goItem1.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem2 = t.Find("Item2").gameObject; + this.lbItemCount2 = (this.goItem2.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem3 = t.Find("Item3").gameObject; + this.lbItemCount3 = (this.goItem3.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem4 = t.Find("Item4").gameObject; + this.lbItemCount4 = (this.goItem4.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.btnCreate = (t.Find("Create").GetComponent("XUIButton") as IXUIButton); + this.lbCost = (this.btnCreate.gameObject.transform.Find("V").GetComponent("XUILabel") as IXUILabel); + this.goRedpoint = this.btnCreate.gameObject.transform.Find("RedPoint").gameObject; + } + } + } +} -- cgit v1.1-26-g67d0