From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/UI/ReceiveEnergyPanelModelView.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs new file mode 100644 index 00000000..861600a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class ReceiveEnergyPanelModelView + { + public IXUILabel m_lbNum; + + public IXUISprite m_sprFinish; + + public IXUISprite m_EnerySpr; + + public GameObject m_ItemGo; + + public IXUISprite m_ItemIcon; + + public IXUILabel m_ItemNumLab; + + public void FindFrom(Transform t) + { + bool flag = null == t; + if (!flag) + { + this.m_lbNum = (t.GetComponent("XUILabel") as IXUILabel); + this.m_sprFinish = (t.Find("F").GetComponent("XUISprite") as IXUISprite); + this.m_EnerySpr = (t.Find("Icon").GetComponent("XUISprite") as IXUISprite); + Transform transform = t.Find("Item"); + bool flag2 = transform != null; + if (flag2) + { + this.m_ItemGo = transform.gameObject; + this.m_ItemNumLab = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_ItemIcon = (transform.Find("Icon1").GetComponent("XUISprite") as IXUISprite); + } + } + } + } +} -- cgit v1.1-26-g67d0