From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/Equip/EquipTransformItemView.cs | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs (limited to 'Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs') diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs new file mode 100644 index 00000000..3181c744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs @@ -0,0 +1,77 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class EquipTransformItemView + { + public IXUISprite sprIcon; + + public IXUILabel lbLevel; + + public GameObject goEquipOn; + + public GameObject goItem; + + public GameObject goFX_wm; + + public GameObject goFX_fwm; + + public GameObject goAdd; + + public void FindFrom(Transform trans) + { + bool flag = trans != null; + if (flag) + { + Transform transform = trans.Find("EquipOn"); + bool flag2 = transform != null; + if (flag2) + { + this.goEquipOn = transform.gameObject; + } + transform = trans.Find("ItemTpl"); + bool flag3 = transform != null; + if (flag3) + { + this.goItem = transform.gameObject; + } + bool flag4 = this.goItem != null; + if (flag4) + { + transform = transform.Find("Icon"); + bool flag5 = transform != null; + if (flag5) + { + this.sprIcon = (transform.GetComponent("XUISprite") as IXUISprite); + } + } + transform = trans.Find("FX_wm"); + bool flag6 = transform != null; + if (flag6) + { + this.goFX_wm = transform.gameObject; + } + transform = trans.Find("FX_fwm"); + bool flag7 = transform != null; + if (flag7) + { + this.goFX_fwm = transform.gameObject; + } + transform = trans.Find("Add"); + bool flag8 = transform != null; + if (flag8) + { + this.goAdd = transform.gameObject; + } + transform = trans.Find("Num"); + bool flag9 = transform != null; + if (flag9) + { + this.lbLevel = (transform.GetComponent("XUILabel") as IXUILabel); + } + } + } + } +} -- cgit v1.1-26-g67d0