blob: 2cd70f66d44097b718cdb990bc5d0f3d05c1b251 (
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
|
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();
}
}
}
|