diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs new file mode 100644 index 00000000..d90453ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs @@ -0,0 +1,80 @@ +using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class EquipTransformBehaviour : DlgBehaviourBase
+ {
+ public IXUISprite sprPerfect;
+
+ public IXUISprite sprImperfect;
+
+ public IXUITweenTool tweenTool;
+
+ public IXUIButton btnClose;
+
+ public IXUIButton btnTransform;
+
+ public IXUIScrollView TipScrollView;
+
+ public IXUIScrollView EquipScrollView;
+
+ public IXUIWrapContent EquipWrapContent;
+
+ public IXUILabel TipLabel;
+
+ public IXUILabel lbDragonCoin;
+
+ public EquipTransformItemView SrcView;
+
+ public EquipTransformItemView DestView;
+
+ public NeedItemView[] NeedItems;
+
+ public GameObject goPanelHint;
+
+ public IXUIButton btnPanelHintOk;
+
+ public IXUILabel lbPanelHintItem;
+
+ public GameObject goPanelHintItem;
+
+ public XUIPool FriendTabPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
+
+ private void Awake()
+ {
+ this.btnClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton);
+ Transform transform = base.transform.Find("SmeltingReplaceFrame");
+ this.tweenTool = (transform.Find("Result").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.sprPerfect = (this.tweenTool.gameObject.transform.Find("wm").GetComponent("XUISprite") as IXUISprite);
+ this.sprImperfect = (this.tweenTool.gameObject.transform.Find("fwm").GetComponent("XUISprite") as IXUISprite);
+ this.sprPerfect.SetAlpha(0f);
+ this.sprImperfect.SetAlpha(0f);
+ this.SrcView = new EquipTransformItemView();
+ this.SrcView.FindFrom(transform.Find("1"));
+ this.DestView = new EquipTransformItemView();
+ this.DestView.FindFrom(transform.Find("2"));
+ this.btnTransform = (transform.Find("BtnReplace").GetComponent("XUIButton") as IXUIButton);
+ this.lbDragonCoin = (this.btnTransform.gameObject.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel);
+ this.TipScrollView = (transform.Find("Tip/TipPanel").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.TipLabel = (this.TipScrollView.gameObject.transform.Find("tips").GetComponent("XUILabel") as IXUILabel);
+ this.EquipScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView);
+ this.EquipWrapContent = (this.EquipScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent);
+ this.goPanelHint = transform.Find("PanelHint").gameObject;
+ this.btnPanelHintOk = (this.goPanelHint.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton);
+ this.lbPanelHintItem = (this.goPanelHint.transform.Find("Text").GetComponent("XUILabel") as IXUILabel);
+ this.goPanelHintItem = this.goPanelHint.transform.Find("ItemTpl").gameObject;
+ this.goPanelHint.SetActive(false);
+ transform = transform.Find("ItemNeeds");
+ this.NeedItems = new NeedItemView[transform.childCount];
+ for (int i = 0; i < this.NeedItems.Length; i++)
+ {
+ this.NeedItems[i] = new NeedItemView(false);
+ this.NeedItems[i].FindFrom(transform.GetChild(i));
+ }
+ }
+ }
+}
|