diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs new file mode 100644 index 00000000..5cfcf248 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs @@ -0,0 +1,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);
+ }
+ }
+}
|