blob: a87922ac65472aa25c9e13daae9b995d24400702 (
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
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
96
97
98
99
100
101
102
103
104
105
|
using System;
using UILib;
using XMainClient.UI;
using XMainClient.UI.UICommon;
using XUtliPoolLib;
namespace XMainClient
{
internal class TutorialSkipView : DlgBase<TutorialSkipView, TutorialSkipBehaviour>
{
public override string fileName
{
get
{
return "GameSystem/TutorialSkip";
}
}
public override int layer
{
get
{
return 1;
}
}
public override int group
{
get
{
return 1;
}
}
public override bool autoload
{
get
{
return true;
}
}
public override bool hideMainMenu
{
get
{
return false;
}
}
public override bool pushstack
{
get
{
return true;
}
}
protected override void Init()
{
base.uiBehaviour.m_Label.SetText(XSingleton<UiUtility>.singleton.ReplaceReturn(XStringDefineProxy.GetString("TUTORIAL_SKIP")));
}
public override void RegisterEvent()
{
base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked));
base.uiBehaviour.m_Skip.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSkipClicked));
base.uiBehaviour.m_NoSkip.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked));
}
public bool OnCloseClicked(IXUIButton btn)
{
XOptionsDocument specificDocument = XDocuments.GetSpecificDocument<XOptionsDocument>(XOptionsDocument.uuID);
specificDocument.SetValue(XOptionsDefine.OD_SKIP_TUTORIAL, 0, false);
this.SetVisibleWithAnimation(false, null);
XSingleton<XTutorialHelper>.singleton.SelectSkipTutorial = true;
return true;
}
public bool OnSkipClicked(IXUIButton btn)
{
XOptionsDocument specificDocument = XDocuments.GetSpecificDocument<XOptionsDocument>(XOptionsDocument.uuID);
specificDocument.SetValue(XOptionsDefine.OD_SKIP_TUTORIAL, 1, false);
XSingleton<XTutorialMgr>.singleton.SkipCurrentTutorial(true);
this.SetVisibleWithAnimation(false, null);
XSingleton<XTutorialHelper>.singleton.SelectSkipTutorial = true;
return true;
}
protected override void OnShow()
{
base.OnShow();
}
protected override void OnHide()
{
base.OnHide();
}
protected override void OnUnload()
{
base.OnUnload();
}
}
}
|