summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs
blob: a8456d8c7885ddf9ac16bd75cd69fe0cbed53fcd (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XMainClient.Utility;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XRankBehaviour : DlgBehaviourBase
	{
		public static readonly uint RANK_UI_TYPE_COUNT = 12u;

		public IXUIButton m_close;

		public XUITabControl m_tabcontrol = new XUITabControl();

		public IXUIWrapContent[] m_ListPanel = new IXUIWrapContent[XRankBehaviour.RANK_UI_TYPE_COUNT];

		public IXUISprite m_PopularSprite;

		public IXUILabel m_PopularLabel;

		public GameObject[] m_MyRankFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT];

		public GameObject[] m_TitleFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT];

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

		public IXUIPanel m_ListIXUIPanel;

		public IXPositionGroup m_ListPositionGroup = null;

		public IXUIScrollView m_ListScrollView;

		public GameObject m_CharacterInfoFrame;

		public IXUILabel m_CharName;

		public IXUISprite m_CharProfession;

		public IXUILabel m_GuildName;

		public IXUISprite m_GuildIcon;

		public IXUILabel m_EmptyRankLabel;

		public IXPositionGroup m_EmptyRankLabelGroup = null;

		public GameObject m_PetInfoFrame;

		public IUIDummy m_PlayerSnapshot;

		public IUIDummy m_PetSnapshot;

		public IUIDummy m_SpriteSnapshot;

		public IXUISprite m_CharacterDummyFrame;

		public IXUISprite m_PetDummyFrame;

		public GameObject m_OriginalRank;

		public Transform m_FlowerRankRoot;

		public IXUIButton m_DragonGuildHelp;

		private void Awake()
		{
			this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton);
			string[] array = new string[]
			{
				"BaseList",
				"GuildList",
				"TwoNameList",
				"GuildBossList",
				"PetList",
				"QualifyList",
				"BigMeleeList",
				"TroopList",
				"SkyArenaList",
				"WorldBossList",
				"CampDuelList",
				"TeamMysterious"
			};
			Transform tabTpl = base.transform.Find("Bg/TabList/Panel/TabTpl");
			this.m_tabcontrol.SetTabTpl(tabTpl);
			for (uint num = 0u; num < XRankBehaviour.RANK_UI_TYPE_COUNT; num += 1u)
			{
				this.m_ListPanel[(int)num] = (base.transform.Find("Bg/Bg/Panel/" + array[(int)num]).GetComponent("XUIWrapContent") as IXUIWrapContent);
				this.m_MyRankFrame[(int)num] = base.transform.Find("Bg/Bg/MyRankFrame/" + array[(int)num]).gameObject;
				this.m_TitleFrame[(int)num] = base.transform.Find("Bg/Bg/Titles/" + array[(int)num]).gameObject;
			}
			this.m_CharacterInfoFrame = base.transform.Find("Bg/Bg/CharacterInfoFrame").gameObject;
			this.m_CharName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Name").GetComponent("XUILabel") as IXUILabel);
			this.m_CharName.SetText("");
			this.m_CharProfession = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/ProfIcon").GetComponent("XUISprite") as IXUISprite);
			this.m_GuildName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Guild").GetComponent("XUILabel") as IXUILabel);
			this.m_GuildName.SetText("");
			this.m_GuildIcon = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/GulidIcon").GetComponent("XUISprite") as IXUISprite);
			this.m_CharacterDummyFrame = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame").GetComponent("XUISprite") as IXUISprite);
			this.m_PetInfoFrame = base.transform.Find("Bg/Bg/PetInfoFrame").gameObject;
			this.m_PetDummyFrame = (this.m_PetInfoFrame.transform.Find("PetFrame").GetComponent("XUISprite") as IXUISprite);
			this.m_ListIXUIPanel = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIPanel") as IXUIPanel);
			this.m_ListPositionGroup = (base.transform.Find("Bg/Bg/Panel").GetComponent("PositionGroup") as IXPositionGroup);
			this.m_ListScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_EmptyRankLabel = (base.transform.Find("Bg/Bg/Panel/EmptyRank").GetComponent("XUILabel") as IXUILabel);
			this.m_EmptyRankLabel.SetText("");
			this.m_EmptyRankLabelGroup = (this.m_EmptyRankLabel.gameObject.transform.GetComponent("PositionGroup") as IXPositionGroup);
			this.m_PlayerSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_PetSnapshot = (this.m_PetInfoFrame.transform.Find("PetFrame/Snapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_SpriteSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/SpriteSnapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_PopularSprite = (base.transform.Find("Bg/Bg/Titles/GuildList/Popularity/Tips").GetComponent("XUISprite") as IXUISprite);
			this.m_PopularLabel = (base.transform.Find("Bg/Bg/Titles/GuildList/PopularityTips").GetComponent("XUILabel") as IXUILabel);
			this.m_OriginalRank = base.transform.Find("Bg/Bg").gameObject;
			this.m_FlowerRankRoot = base.transform.Find("Bg/FlowerRankRoot");
			this.m_DragonGuildHelp = (base.transform.Find("Bg/Bg/Titles/TroopList/Help").GetComponent("XUIButton") as IXUIButton);
		}
	}
}