blob: 6bfed796a36ebc4d39f88b0fcc66488cc17201db (
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
|
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient.UI
{
internal class XPetMainBehaviour : DlgBehaviourBase
{
public Transform m_Bg;
public IXUIButton m_Close = null;
public IXUIButton m_Help;
public IXUIScrollView m_PetListScrollView;
public IXUIWrapContent m_WrapContent;
public IXUIProgress m_ExpBar;
public IXUILabel m_Exp;
public IXUILabel m_ExpBarLevel;
public GameObject m_FeedFrame;
public GameObject m_SkillFrame;
public IXUIButton m_BtnMount;
public IXUIButton m_BtnSkillLearn;
public GameObject m_ContentFrame;
public Transform m_Fx;
public IXUILabel m_MoodLevel;
public IXUISprite m_MoodIcon;
public IXUIProgress m_FullDegreeBar;
public IXUILabel m_FullDegree;
public IXUISprite m_FullDegreeColor;
public IXUISprite m_FullDegreeSp;
public Transform m_FullDegreeTip;
public Transform m_MoodTip;
public IXUISprite m_FullDegreeClose;
public IXUISprite m_MoodClose;
public IXUIButton m_Throw;
public IXUIButton m_Activation;
public IXUIButton m_ExpTransfer;
public IXUIButton m_TravelSet;
public GameObject m_ActivationSelected;
public IXUILabel m_ActivationLabel;
public IXUISprite m_Sex;
public IXUILabel m_Name;
public IXUILabel m_Level;
public IXUILabel m_SpeedUp;
public IXUILabel m_PPT;
public IXUILabel m_BtnMountLabel;
public IXUILabel m_FullDegreeLabel;
public IXUILabel m_MoodLabel;
public Transform m_FeedRedPoint;
public IXUILabel m_ExpPrivilegeLabel;
public IXUISprite m_ExpPrivilegeSp;
public IXUISprite m_PrivilegeBg;
public IXUISprite m_Caress;
public Transform m_Talk;
public IXUILabel m_TalkLabel;
public IXUILabel m_GoGetPet;
public IXUILabel m_GoGetFeed;
public XUIPool m_StarPool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public XUIPool m_AttributePool = new XUIPool(XSingleton<XGameUI>.singleton.m_uiTool);
public IUIDummy m_PetSnapshot;
private void Awake()
{
this.m_Bg = base.transform.Find("Bg");
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_Fx = base.transform.Find("Bg/Fx");
this.m_WrapContent = (base.transform.Find("Bg/PetListPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent);
this.m_PetListScrollView = (base.transform.Find("Bg/PetListPanel").GetComponent("XUIScrollView") as IXUIScrollView);
Transform transform = base.transform.Find("Bg/ContentFrame");
this.m_ContentFrame = transform.gameObject;
this.m_ExpPrivilegeSp = (this.m_ContentFrame.transform.Find("Privilege").GetComponent("XUISprite") as IXUISprite);
this.m_PrivilegeBg = (this.m_ContentFrame.transform.Find("Privilege/T/p").GetComponent("XUISprite") as IXUISprite);
this.m_ExpPrivilegeLabel = (this.m_ContentFrame.transform.Find("Privilege/T").GetComponent("XUILabel") as IXUILabel);
this.m_Caress = (this.m_ContentFrame.transform.Find("Caress").GetComponent("XUISprite") as IXUISprite);
this.m_Talk = this.m_ContentFrame.transform.Find("Talk");
this.m_TalkLabel = (this.m_ContentFrame.transform.Find("Talk/Label").GetComponent("XUILabel") as IXUILabel);
this.m_ExpBar = (transform.Find("ExpBar").GetComponent("XUIProgress") as IXUIProgress);
this.m_Exp = (this.m_ExpBar.gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel);
this.m_ExpBarLevel = (this.m_ExpBar.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel);
this.m_FeedFrame = transform.Find("FeedFrame").gameObject;
this.m_GoGetFeed = (this.m_FeedFrame.transform.Find("ItemPanel/NoFeed/GoGetFeed").GetComponent("XUILabel") as IXUILabel);
this.m_FeedRedPoint = this.m_FeedFrame.transform.Find("BtnFeed/RedPoint");
transform = base.transform.Find("Bg/ContentFrame/Right");
this.m_BtnMount = (transform.Find("BtnMount").GetComponent("XUIButton") as IXUIButton);
this.m_BtnMountLabel = (transform.Find("BtnMount/Label").GetComponent("XUILabel") as IXUILabel);
this.m_BtnSkillLearn = (transform.Find("BtnSkillLearn").GetComponent("XUIButton") as IXUIButton);
this.m_Sex = (transform.Find("DetailTip/Sex").GetComponent("XUISprite") as IXUISprite);
this.m_Name = (transform.Find("DetailTip/Name").GetComponent("XUILabel") as IXUILabel);
this.m_Level = (transform.Find("DetailTip/Level").GetComponent("XUILabel") as IXUILabel);
this.m_SpeedUp = (transform.Find("DetailTip/SpeedUp").GetComponent("XUILabel") as IXUILabel);
this.m_PPT = (transform.Find("DetailTip/PPT").GetComponent("XUILabel") as IXUILabel);
this.m_SkillFrame = transform.Find("DetailTip/Skill").gameObject;
Transform transform2 = transform.Find("DetailTip/Attribute/AttributeTpl");
Transform transform3 = transform.transform.Find("DetailTip/Attribute/AttributeTpl/Star/StarTpl");
this.m_StarPool.SetupPool(null, transform3.gameObject, XPetMainView.STAR_MAX, false);
int num = 0;
while ((long)num < (long)((ulong)XPetMainView.STAR_MAX))
{
GameObject gameObject = this.m_StarPool.FetchGameObject(false);
gameObject.name = string.Format("Star{0}", num);
num++;
}
this.m_AttributePool.SetupPool(null, transform2.gameObject, XPetMainView.ATTRIBUTE_NUM_MAX, false);
transform = base.transform.Find("Bg/ContentFrame/LeftUp");
this.m_Throw = (transform.Find("Throw").GetComponent("XUIButton") as IXUIButton);
this.m_Activation = (transform.Find("Activation").GetComponent("XUIButton") as IXUIButton);
this.m_ActivationSelected = transform.Find("Activation/Selected").gameObject;
this.m_ActivationLabel = (transform.Find("Activation/Label").GetComponent("XUILabel") as IXUILabel);
this.m_ExpTransfer = (transform.Find("ExpTransfer").GetComponent("XUIButton") as IXUIButton);
this.m_TravelSet = (transform.Find("TravelSet").GetComponent("XUIButton") as IXUIButton);
transform = base.transform.Find("Bg/ContentFrame/RightUp");
this.m_FullDegreeBar = (transform.Find("FullDegreeBar").GetComponent("XUIProgress") as IXUIProgress);
this.m_FullDegreeSp = (this.m_FullDegreeBar.gameObject.transform.Find("Eat").GetComponent("XUISprite") as IXUISprite);
this.m_FullDegree = (this.m_FullDegreeBar.gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel);
this.m_FullDegreeColor = (this.m_FullDegreeBar.gameObject.transform.Find("Overlay").GetComponent("XUISprite") as IXUISprite);
this.m_FullDegreeLabel = (this.m_FullDegreeBar.gameObject.transform.Find("Tip/Label").GetComponent("XUILabel") as IXUILabel);
this.m_FullDegreeClose = (this.m_FullDegreeBar.gameObject.transform.Find("Tip/Close").GetComponent("XUISprite") as IXUISprite);
this.m_FullDegreeTip = this.m_FullDegreeBar.gameObject.transform.Find("Tip");
this.m_MoodIcon = (transform.Find("Mood").GetComponent("XUISprite") as IXUISprite);
this.m_MoodLevel = (transform.Find("Mood/Level").GetComponent("XUILabel") as IXUILabel);
this.m_MoodLabel = (transform.Find("Mood/Tip/Label").GetComponent("XUILabel") as IXUILabel);
this.m_MoodClose = (transform.Find("Mood/Tip/Close").GetComponent("XUISprite") as IXUISprite);
this.m_MoodTip = transform.Find("Mood/Tip");
this.m_PetSnapshot = (this.m_ContentFrame.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy);
this.m_GoGetPet = (base.transform.Find("Bg/GoGetPet").GetComponent("XUILabel") as IXUILabel);
}
}
}
|