blob: 61a40a8c22c33790f64d3a8dde483c5ccbb795bc (
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
|
using System;
using UILib;
using UnityEngine;
using XUtliPoolLib;
namespace XMainClient
{
internal class XDragonGuildMemberInfoDisplay
{
public Transform Root;
public IXUILabelSymbol Name;
public IXUILabel Level;
public IXUILabel Position;
public IXUILabel PPT;
public IXUISprite Portrait;
public IXUISprite Profession;
public IXUILabel Liveness;
public IXUISpriteAnimation Title;
public void Init(Transform go, bool bFirstInit)
{
this.Root = go;
Transform transform = this.Root.Find("Name");
bool flag = transform != null;
if (flag)
{
this.Name = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol);
if (bFirstInit)
{
this.Name.InputText = "";
}
}
else
{
this.Name = null;
}
transform = this.Root.Find("Position");
bool flag2 = transform != null;
if (flag2)
{
this.Position = (transform.GetComponent("XUILabel") as IXUILabel);
if (bFirstInit)
{
this.Position.SetText("");
}
}
else
{
this.Position = null;
}
transform = this.Root.Find("Level");
bool flag3 = transform != null;
if (flag3)
{
this.Level = (transform.GetComponent("XUILabel") as IXUILabel);
if (bFirstInit)
{
this.Level.SetText("");
}
}
else
{
this.Level = null;
}
transform = this.Root.Find("PPT");
bool flag4 = transform != null;
if (flag4)
{
this.PPT = (transform.GetComponent("XUILabel") as IXUILabel);
if (bFirstInit)
{
this.PPT.SetText("");
}
}
else
{
this.PPT = null;
}
transform = this.Root.Find("Portrait");
bool flag5 = transform != null;
if (flag5)
{
this.Portrait = (transform.GetComponent("XUISprite") as IXUISprite);
}
else
{
this.Portrait = null;
}
transform = this.Root.Find("Profession");
bool flag6 = transform != null;
if (flag6)
{
this.Profession = (transform.GetComponent("XUISprite") as IXUISprite);
}
else
{
this.Profession = null;
}
transform = this.Root.Find("Liveness");
bool flag7 = transform != null;
if (flag7)
{
this.Liveness = (transform.GetComponent("XUILabel") as IXUILabel);
if (bFirstInit)
{
this.Liveness.SetText(string.Empty);
}
}
transform = this.Root.Find("Title");
bool flag8 = transform != null;
if (flag8)
{
this.Title = (transform.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation);
}
}
public void Set(XDragonGuildMember data)
{
bool flag = this.Name != null;
if (flag)
{
this.Name.InputText = data.name + XWelfareDocument.GetMemberPrivilegeIconString(data.paymemberid) + XRechargeDocument.GetVIPIconString(data.vip);
}
bool flag2 = this.Position != null;
if (flag2)
{
this.Position.SetText(XDragonGuildDocument.DragonGuildPP.GetPositionName(data.position, false));
}
bool flag3 = this.Level != null;
if (flag3)
{
this.Level.SetText("Lv." + data.level);
}
bool flag4 = this.PPT != null;
if (flag4)
{
this.PPT.SetText(data.ppt.ToString());
}
bool flag5 = this.Portrait != null;
if (flag5)
{
this.Portrait.SetSprite(XSingleton<XProfessionSkillMgr>.singleton.GetProfHeadIcon2(data.profession));
}
bool flag6 = this.Profession != null;
if (flag6)
{
this.Profession.SetSprite(XSingleton<XProfessionSkillMgr>.singleton.GetProfIcon(data.profession));
}
bool flag7 = this.Liveness != null;
if (flag7)
{
this.Liveness.SetText(data.GetLiveness());
}
bool flag8 = this.Title != null;
if (flag8)
{
TitleTable.RowData title = XTitleDocument.GetTitle(data.titleID);
bool flag9 = title != null;
if (flag9)
{
this.Title.SetNamePrefix(title.RankAtlas, title.RankIcon);
this.Title.SetFrameRate(XTitleDocument.TITLE_FRAME_RATE);
this.Title.MakePixelPerfect();
}
}
}
}
}
|