summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs77
1 files changed, 77 insertions, 0 deletions
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);
+ }
+ }
+ }
+ }
+}