blob: 7d5bbf98cdca487ec887c6a492a4b4fd589de8c2 (
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
|
using System;
using XMainClient.UI.UICommon;
namespace XMainClient.Tutorial.Command
{
internal class XCommandIsShowButton : XBaseCommand
{
public override bool Execute()
{
bool flag = this._cmd.param1 == null || this._cmd.param2 == null;
bool result;
if (flag)
{
result = false;
}
else
{
int num = int.Parse(this._cmd.param2);
bool flag2 = num == 0;
bool learnSkillButtonState = !flag2;
bool flag3 = this._cmd.param1 == "LearnSkillButton";
if (flag3)
{
this.SetLearnSkillButtonState(learnSkillButtonState);
}
base.publicModule();
result = true;
}
return result;
}
private void SetLearnSkillButtonState(bool state)
{
DlgBase<XSkillTreeView, XSkillTreeBehaviour>.singleton.SetLearnSkillButtonState(state);
}
}
}
|