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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
using System;
using UILib;
using UnityEngine;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient.UI
{
public class SystemHelpDlg : DlgBase<SystemHelpDlg, SystemHelpBehaviour>, IModalDlg, IXInterface
{
public override string fileName
{
get
{
return "Common/SystemHelpDlg";
}
}
public override int layer
{
get
{
return 100;
}
}
public override bool autoload
{
get
{
return true;
}
}
public bool Deprecated { get; set; }
public bool _bHasGrey = true;
protected override void OnShow()
{
base.OnShow();
}
public void SetPanelDepth(int depth)
{
base.uiBehaviour.m_Panel.SetDepth(depth);
}
public void LuaShow(string content, ButtonClickEventHandler handler, ButtonClickEventHandler handler2)
{
this.SetVisible(true, true);
this.SetLabelsWithSymbols(content, "OK", "Cancel");
base.uiBehaviour.m_OKButton.RegisterClickEventHandler(handler);
}
public void SetLabels(string mainLabel, string titleLabel, string frLabel)
{
base.uiBehaviour.m_LabelSymbol.InputText = "";
base.uiBehaviour.m_TitleSymbol.InputText = "";
base.uiBehaviour.m_Label.SetText(mainLabel);
base.uiBehaviour.m_Title.SetText(titleLabel);
base.uiBehaviour.m_OKButton.SetCaption(frLabel);
}
public void SetLabelsWithSymbols(string mainLabel, string titleLabel, string frLabel)
{
base.uiBehaviour.m_LabelSymbol.InputText = mainLabel;
base.uiBehaviour.m_TitleSymbol.InputText = titleLabel;
base.uiBehaviour.m_OKButton.SetCaption(frLabel);
}
public void SetTweenTargetAndPlay(GameObject go)
{
this.SetVisible(true, true);
base.uiBehaviour.m_PlayTween.SetTargetGameObject(go);
base.uiBehaviour.m_PlayTween.PlayTween(true, -1f);
}
public override void RegisterEvent()
{
base.uiBehaviour.m_OKButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoCancel));
}
public bool DoCancel(IXUIButton go)
{
this.SetVisible(false, true);
return true;
}
public void DoCancel(IXUISprite sp)
{
this.SetVisible(false, true);
}
}
}
|