summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.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/MallSystemBehaviour.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs51
1 files changed, 51 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs
new file mode 100644
index 00000000..cb111f43
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using UILib;
+using XMainClient.UI.UICommon;
+
+namespace XMainClient
+{
+ internal class MallSystemBehaviour : DlgBehaviourBase
+ {
+ public static readonly int MAX_MONEY_NUM = 3;
+
+ public IXUIButton m_Close;
+
+ public IXUIButton m_Help;
+
+ public IXUILabel m_ShopName;
+
+ public List<IXUILabel> m_MoneyBoard = new List<IXUILabel>();
+
+ public List<XNumberTween> m_MoneyTween = new List<XNumberTween>();
+
+ public List<IXUILabel> m_MoneyNum = new List<IXUILabel>();
+
+ public List<IXUISprite> m_MoneyIcon = new List<IXUISprite>();
+
+ public List<IXUISprite> m_MoneyBack = new List<IXUISprite>();
+
+ public List<int> m_MoneyType = new List<int>();
+
+ private void Awake()
+ {
+ this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
+ this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton);
+ this.m_ShopName = (base.transform.Find("Bg/ShopName").GetComponent("XUILabel") as IXUILabel);
+ for (int i = 0; i < MallSystemBehaviour.MAX_MONEY_NUM; i++)
+ {
+ this.m_MoneyType.Add(0);
+ IXUISprite item = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/board").GetComponent("XUISprite") as IXUISprite;
+ IXUILabel ixuilabel = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString()).GetComponent("XUILabel") as IXUILabel;
+ IXUISprite item2 = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/icon").GetComponent("XUISprite") as IXUISprite;
+ IXUILabel item3 = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/value").GetComponent("XUILabel") as IXUILabel;
+ XNumberTween item4 = XNumberTween.Create(ixuilabel.gameObject.transform);
+ this.m_MoneyNum.Add(item3);
+ this.m_MoneyIcon.Add(item2);
+ this.m_MoneyBoard.Add(ixuilabel);
+ this.m_MoneyBack.Add(item);
+ this.m_MoneyTween.Add(item4);
+ }
+ }
+ }
+}