diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/UI/Battle |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/Battle')
4 files changed, 129 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs new file mode 100644 index 00000000..c204f219 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs @@ -0,0 +1,65 @@ +using System;
+using UILib;
+using UnityEngine;
+using XMainClient.UI.UICommon;
+
+namespace XMainClient.UI.Battle
+{
+ internal class BattleQTEDlgBehaviour : DlgBehaviourBase
+ {
+ public Transform m_Block;
+
+ public Transform m_Bind;
+
+ public IXUISprite m_BindLeftButton;
+
+ public IXUISprite m_BindRightButton;
+
+ public Transform m_BindArrow;
+
+ public Transform m_Abnormal;
+
+ public IXUISlider m_AbnormalBar;
+
+ public IXUISprite m_AbnormalClickSpace;
+
+ public IXUITweenTool m_AbnormalBeginTween;
+
+ public IXUITweenTool m_AbnormalHitTween;
+
+ public IXUITweenTool m_AbnormalSuccessTween;
+
+ public IXUITweenTool m_AbnormalFailTween;
+
+ public Transform m_AbnormalLeftTarget;
+
+ public Transform m_AbnormalRightTarget;
+
+ public Transform m_AbnormalThumb;
+
+ public Transform m_Charge;
+
+ public IXUISlider m_ChargeBar;
+
+ private void Awake()
+ {
+ this.m_Block = base.transform.Find("Block");
+ this.m_Bind = base.transform.Find("Bg/Bind");
+ this.m_BindLeftButton = (this.m_Bind.Find("Left/Light").GetComponent("XUISprite") as IXUISprite);
+ this.m_BindRightButton = (this.m_Bind.Find("Right/Light").GetComponent("XUISprite") as IXUISprite);
+ this.m_BindArrow = this.m_Bind.Find("Arrow");
+ this.m_Abnormal = base.transform.Find("Bg/AbnormalBar");
+ this.m_AbnormalBar = (this.m_Abnormal.Find("Bar").GetComponent("XUISlider") as IXUISlider);
+ this.m_AbnormalClickSpace = (this.m_Abnormal.Find("ClickSpace").GetComponent("XUISprite") as IXUISprite);
+ this.m_AbnormalBeginTween = (this.m_Abnormal.Find("Thumb/Begin").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_AbnormalHitTween = (this.m_Abnormal.Find("Thumb/Hit").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_AbnormalSuccessTween = (this.m_Abnormal.Find("Success").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_AbnormalFailTween = (this.m_Abnormal.Find("Fail").GetComponent("XUIPlayTween") as IXUITweenTool);
+ this.m_AbnormalLeftTarget = this.m_Abnormal.Find("Target/Left");
+ this.m_AbnormalRightTarget = this.m_Abnormal.Find("Target/Right");
+ this.m_AbnormalThumb = this.m_Abnormal.Find("Thumb");
+ this.m_Charge = base.transform.Find("Bg/ChargeBar");
+ this.m_ChargeBar = (this.m_Charge.GetComponent("XUISlider") as IXUISlider);
+ }
+ }
+}
diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta new file mode 100644 index 00000000..115e7bc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95e52dde66495cd468b98bdfb6b9c367 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: 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);
+ }
+ }
+}
diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta new file mode 100644 index 00000000..7ab0521a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a025658fce0b2d1438906e62ba4f9c8e +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: |