summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs
blob: 1b029f04cd7544bd2cafc976c879a53b7ff3e83a (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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
using System;
using UILib;
using UnityEngine;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XOtherPlayerInfoBehaviour : DlgBehaviourBase
	{
		public static readonly uint FUNCTION_NUM = 3u;

		public static readonly uint Emblem_Slot_Count = 16u;

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

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

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

		private XUIPool m_ArtifactPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);

		public GameObject[] m_artifactGo = new GameObject[XBagDocument.ArtifactMax];

		public IXUISprite m_InfoPanel;

		public IXUISprite m_MenuPanel;

		public IXUISprite m_MenuBack;

		public IXUISprite m_MenuTip;

		public IXUILabel m_MenuPlayerName;

		public IXUILabel m_InfoPlayerName;

		public IXUISprite m_EquipLayer;

		public IXUISprite m_AvatarLayer;

		public IXUISprite m_EmblemLayer;

		public IXUISprite m_GuildLayer;

		public IXUISprite m_PetLayer;

		public IXUISprite m_SpriteLayer;

		public IXUISprite m_SkillLayer;

		public IXUISprite m_artifactLayer;

		public IXUISprite m_GuildLogo;

		public IXUILabel m_GuildName;

		public IXUILabel m_GuildMasterName;

		public IXUILabel m_GuildLevel;

		public IXUILabel m_GuildNumber;

		public IXUILabel m_GuildContent;

		public Transform m_PetInfo;

		public Transform m_PetEmpty;

		public Transform m_PetSkillFrame;

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

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

		public IXUILabel m_SpeedUp;

		public IXUILabel m_PetPPT;

		public IXUILabel m_PetName;

		public IXUILabel m_PetLevel;

		public IXUISprite m_PetSex;

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

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

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

		public IXUIScrollView m_SkillScrollView;

		public GameObject[] m_EmblemBg = new GameObject[XOtherPlayerInfoBehaviour.Emblem_Slot_Count];

		public IXUISprite[] m_EmblemSlots = new IXUISprite[XOtherPlayerInfoBehaviour.Emblem_Slot_Count];

		public IXUISprite[] m_EmblemSlotCovers = new IXUISprite[XOtherPlayerInfoBehaviour.Emblem_Slot_Count];

		public IUIDummy m_EquipSnapshot;

		public IUIDummy m_AvatarSnapshot;

		public IUIDummy m_PetSnapshot;

		public IUIDummy m_CurrentSnapshot;

		private void Awake()
		{
			this.m_InfoPanel = (base.transform.Find("Bg/InfoPanel").GetComponent("XUISprite") as IXUISprite);
			this.m_MenuPanel = (base.transform.Find("Bg/MenuPanel").GetComponent("XUISprite") as IXUISprite);
			this.m_MenuBack = (base.transform.Find("Bg/MenuPanel/back").GetComponent("XUISprite") as IXUISprite);
			this.m_MenuTip = (base.transform.Find("Bg/MenuPanel/CloseTip").GetComponent("XUISprite") as IXUISprite);
			this.m_MenuPool.SetupPool(base.transform.Find("Bg/MenuPanel").gameObject, base.transform.Find("Bg/MenuPanel/template").gameObject, 10u, false);
			this.m_MenuPlayerName = (base.transform.Find("Bg/MenuPanel/PlayerName").GetComponent("XUILabel") as IXUILabel);
			this.m_EquipLayer = (base.transform.Find("Bg/InfoPanel/EquipLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_AvatarLayer = (base.transform.Find("Bg/InfoPanel/AvatarLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_EmblemLayer = (base.transform.Find("Bg/InfoPanel/WenzhangLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_GuildLayer = (base.transform.Find("Bg/InfoPanel/GuildLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_PetLayer = (base.transform.Find("Bg/InfoPanel/PetLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_SpriteLayer = (base.transform.Find("Bg/InfoPanel/SpriteLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_SkillLayer = (base.transform.Find("Bg/InfoPanel/Skill").GetComponent("XUISprite") as IXUISprite);
			this.m_InfoPlayerName = (base.transform.Find("Bg/InfoPanel/name").GetComponent("XUILabel") as IXUILabel);
			this.m_artifactLayer = (base.transform.Find("Bg/InfoPanel/ArtifactLayer").GetComponent("XUISprite") as IXUISprite);
			this.m_FunctionBtns.SetupPool(base.transform.Find("Bg/InfoPanel").gameObject, base.transform.Find("Bg/InfoPanel/template").gameObject, 4u, false);
			this.m_EmblemPool.SetupPool(base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems").gameObject, base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems/EmblemTpl").gameObject, XOtherPlayerInfoBehaviour.Emblem_Slot_Count, false);
			int num = 0;
			Transform transform;
			while ((long)num < (long)((ulong)XOtherPlayerInfoBehaviour.Emblem_Slot_Count))
			{
				transform = base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems/Emblem" + num);
				GameObject gameObject = this.m_EmblemPool.FetchGameObject(false);
				this.m_EmblemBg[num] = gameObject;
				gameObject.transform.localPosition = transform.localPosition;
				this.m_EmblemSlots[num] = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite);
				this.m_EmblemSlotCovers[num] = (gameObject.transform.Find("Cover").GetComponent("XUISprite") as IXUISprite);
				this.m_EmblemSlotCovers[num].ID = (ulong)((long)num);
				num++;
			}
			transform = base.transform.Find("Bg/InfoPanel/ArtifactLayer/Artifacts");
			this.m_ArtifactPool.SetupPool(transform.gameObject, transform.transform.Find("Tpl").gameObject, (uint)XBagDocument.ArtifactMax, false);
			for (int i = 0; i < XBagDocument.ArtifactMax; i++)
			{
				this.m_artifactGo[i] = this.m_ArtifactPool.FetchGameObject(false);
				GameObject gameObject2 = transform.Find("Artifact" + i).gameObject;
				this.m_artifactGo[i].transform.localScale = Vector3.one;
				this.m_artifactGo[i].transform.localPosition = gameObject2.transform.localPosition;
			}
			this.m_GuildLogo = (base.transform.Find("Bg/InfoPanel/GuildLayer/logo").GetComponent("XUISprite") as IXUISprite);
			this.m_GuildName = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildname").GetComponent("XUILabel") as IXUILabel);
			this.m_GuildMasterName = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/mastername").GetComponent("XUILabel") as IXUILabel);
			this.m_GuildLevel = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/guildlevel").GetComponent("XUILabel") as IXUILabel);
			this.m_GuildNumber = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/guildmember").GetComponent("XUILabel") as IXUILabel);
			this.m_GuildContent = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo2/content").GetComponent("XUILabel") as IXUILabel);
			this.m_PetInfo = this.m_PetLayer.gameObject.transform.Find("PetInfo");
			this.m_PetEmpty = this.m_PetLayer.gameObject.transform.Find("Empty");
			this.m_PetSkillFrame = this.m_PetInfo.gameObject.transform.Find("SkillFrame");
			Transform transform2 = this.m_PetInfo.gameObject.transform.Find("Attribute/AttributeTpl/Star/StarTpl");
			this.m_StarPool.SetupPool(null, transform2.gameObject, XPetMainView.STAR_MAX, false);
			int num2 = 0;
			while ((long)num2 < (long)((ulong)XPetMainView.STAR_MAX))
			{
				GameObject gameObject = this.m_StarPool.FetchGameObject(false);
				gameObject.name = string.Format("Star{0}", num2);
				num2++;
			}
			Transform transform3 = this.m_PetInfo.gameObject.transform.Find("Attribute/AttributeTpl");
			this.m_AttributePool.SetupPool(null, transform3.gameObject, XPetMainView.ATTRIBUTE_NUM_MAX, false);
			this.m_SpeedUp = (this.m_PetInfo.gameObject.transform.Find("SpeedUp").GetComponent("XUILabel") as IXUILabel);
			this.m_PetPPT = (this.m_PetInfo.gameObject.transform.Find("PowerPoint").GetComponent("XUILabel") as IXUILabel);
			this.m_PetName = (this.m_PetInfo.gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel);
			this.m_PetLevel = (this.m_PetInfo.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel);
			this.m_PetSex = (this.m_PetInfo.gameObject.transform.Find("Sex").GetComponent("XUISprite") as IXUISprite);
			Transform transform4 = this.m_SkillLayer.gameObject.transform.Find("Tabs/Tpl");
			this.m_SkillTabs.SetupPool(transform4.parent.gameObject, transform4.gameObject, 3u, false);
			transform4 = this.m_SkillLayer.gameObject.transform.Find("SkillTree/Skill/SkillTpl");
			this.m_Skills.SetupPool(transform4.parent.gameObject, transform4.gameObject, 16u, false);
			transform4 = this.m_SkillLayer.gameObject.transform.Find("SkillTree/Arrow/ArrowTpl");
			this.m_SkillArrow.SetupPool(transform4.parent.gameObject, transform4.gameObject, 16u, false);
			this.m_SkillScrollView = (this.m_SkillLayer.gameObject.transform.Find("SkillTree").GetComponent("XUIScrollView") as IXUIScrollView);
			this.m_EquipSnapshot = (this.m_EquipLayer.gameObject.transform.Find("CharacterInfoFrame/CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_AvatarSnapshot = (this.m_AvatarLayer.gameObject.transform.Find("CharacterInfoFrame/CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy);
			this.m_PetSnapshot = (this.m_PetInfo.gameObject.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy);
		}
	}
}