diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs new file mode 100644 index 00000000..2cd70f66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs @@ -0,0 +1,62 @@ +using System;
+using XMainClient.UI.UICommon;
+
+namespace XMainClient.UI
+{
+ internal class MobaEndDlg : DlgBase<MobaEndDlg, MobaBehaviour>
+ {
+ public override bool autoload
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public override string fileName
+ {
+ get
+ {
+ return "GameSystem/MobaEndDlg";
+ }
+ }
+
+ protected override void Init()
+ {
+ base.Init();
+ }
+
+ public override void RegisterEvent()
+ {
+ base.RegisterEvent();
+ }
+
+ protected override void OnShow()
+ {
+ base.OnShow();
+ }
+
+ public void SetPic(bool isWin)
+ {
+ if (isWin)
+ {
+ base.uiBehaviour.m_Texture.SetTexturePath("atlas/UI/Battle/victery");
+ }
+ else
+ {
+ base.uiBehaviour.m_Texture.SetTexturePath("atlas/UI/Battle/failure");
+ }
+ }
+
+ protected override void OnHide()
+ {
+ base.uiBehaviour.m_Texture.SetTexturePath("");
+ base.OnHide();
+ }
+
+ protected override void OnUnload()
+ {
+ base.OnUnload();
+ }
+ }
+}
|