blob: 5cfcf248acc830eab480f2fd41d70121c21d34c4 (
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
|
using System;
using UILib;
using XMainClient.UI.UICommon;
namespace XMainClient.UI.Battle
{
internal class ChallengeDlgBehaviour : DlgBehaviourBase
{
public IXUITweenTool m_Tween;
public IXUILabel m_Accept;
public IXUILabel m_MainDesc;
public IXUILabel m_HintDesc;
public IXUISprite m_HintBg;
public IXUILabel m_HintState;
public IXUILabel[] m_RewardValue = new IXUILabel[3];
public IXUISprite[] m_RewardIcon = new IXUISprite[3];
private void Awake()
{
this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool);
this.m_Accept = (base.transform.Find("Bg/Accept").GetComponent("XUILabel") as IXUILabel);
this.m_MainDesc = (base.transform.Find("Bg/MainDesc").GetComponent("XUILabel") as IXUILabel);
for (int i = 0; i < 3; i++)
{
this.m_RewardValue[i] = (base.transform.Find(string.Format("Bg/Reward/Label{0}", i + 1)).GetComponent("XUILabel") as IXUILabel);
this.m_RewardIcon[i] = (base.transform.Find(string.Format("Bg/Reward/Label{0}/Icon", i + 1)).GetComponent("XUISprite") as IXUISprite);
}
this.m_HintBg = (base.transform.Find("Hint").GetComponent("XUISprite") as IXUISprite);
this.m_HintDesc = (base.transform.Find("Hint/Desc").GetComponent("XUILabel") as IXUILabel);
this.m_HintState = (base.transform.Find("Hint/State").GetComponent("XUILabel") as IXUILabel);
}
}
}
|