summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs
blob: 864c31c774f74ca06105ef3a685ddfee0c61a209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XGuildJokerBehaviour : DlgBehaviourBase
	{
		public IXUIButton m_Close;

		public IXUIButton m_Help;

		public IXUIButton m_ReCharge;

		public IXUIButton m_AddCoin;

		public Transform[] m_CardPos = new Transform[5];

		public Transform m_CardBag;

		public Transform[,] m_Card = new Transform[4, 13];

		public IXUILabel m_GameCount;

		public IXUILabel m_ChangeCount;

		public IXUIButton m_StartGame;

		public Transform m_CurrentRewardTransfrom;

		public IXUILabelSymbol m_CurrentReward;

		public IXUILabel m_JokerLabel;

		public Transform m_Rule;

		public XUIPool m_RuleItemPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public IXUIScrollView m_RuleScrollView;

		public IXUIButton m_RuleClose;

		public IXUILabel m_ButtonTip;

		public IXUILabel m_BestPlayerName;

		public IXUILabel[] m_BestCardNum1 = new IXUILabel[5];

		public IXUILabel[] m_BestCardNum2 = new IXUILabel[5];

		public IXUISprite[] m_BestCardColor = new IXUISprite[5];

		public Transform m_FireWorks;

		public IXUITexture m_JokerPic;

		public Transform m_GameTip;

		protected 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_ReCharge = (base.transform.Find("Bg/InfoFrame/InfoDC").GetComponent("XUIButton") as IXUIButton);
			this.m_AddCoin = (base.transform.Find("Bg/InfoFrame/InfoGold").GetComponent("XUIButton") as IXUIButton);
			for (int i = 0; i < 5; i++)
			{
				this.m_CardPos[i] = base.transform.Find(string.Format("Bg/CardPoint/Card{0}Pos", i + 1));
				this.m_CardPos[i].gameObject.SetActive(false);
			}
			this.m_CardBag = base.transform.Find("Bg/CardPoint/CardBag");
			this.m_GameCount = (base.transform.Find("Bg/GameCount/Num").GetComponent("XUILabel") as IXUILabel);
			this.m_ChangeCount = (base.transform.Find("Bg/FreeChangeCount/Num").GetComponent("XUILabel") as IXUILabel);
			this.m_StartGame = (base.transform.Find("Bg/Button").GetComponent("XUIButton") as IXUIButton);
			this.m_CurrentRewardTransfrom = base.transform.Find("Bg/CurrentReward");
			this.m_CurrentReward = (base.transform.Find("Bg/CurrentReward/Text").GetComponent("XUILabelSymbol") as IXUILabelSymbol);
			this.m_JokerLabel = (base.transform.Find("Bg/Talk/Text").GetComponent("XUILabel") as IXUILabel);
			this.m_Rule = base.transform.Find("Bg/Rule");
			Transform transform = this.m_Rule.Find("Bg/RulePanel/Item");
			this.m_RuleItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, false);
			this.m_RuleClose = (this.m_Rule.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			this.m_RuleScrollView = (this.m_Rule.Find("Bg/RulePanel").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_ButtonTip = (base.transform.Find("Bg/Button/Tip").GetComponent("XUILabel") as IXUILabel);
			this.m_BestPlayerName = (base.transform.Find("Bg/TodayBest/Name").GetComponent("XUILabel") as IXUILabel);
			for (int j = 0; j < 5; j++)
			{
				this.m_BestCardColor[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Color", j + 1)).GetComponent("XUISprite") as IXUISprite);
				this.m_BestCardNum1[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Num1", j + 1)).GetComponent("XUILabel") as IXUILabel);
				this.m_BestCardNum2[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Num2", j + 1)).GetComponent("XUILabel") as IXUILabel);
			}
			this.m_FireWorks = base.transform.Find("Bg/FireWorks");
			this.m_JokerPic = (base.transform.Find("Bg/Joker").GetComponent("XUITexture") as IXUITexture);
			this.m_GameTip = base.transform.Find("Bg/GameTip");
		}
	}
}