blob: 7e1ce75a43dbd829a64c0588b8bcbef23ce1aa06 (
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
|
using System;
using XMainClient.UI;
using XMainClient.UI.UICommon;
namespace XMainClient.Tutorial.Command
{
internal class XCommandHideSkills : XBaseCommand
{
public override bool Execute()
{
bool flag = !string.IsNullOrEmpty(this._cmd.param1);
if (flag)
{
this.Hide(int.Parse(this._cmd.param1));
}
bool flag2 = !string.IsNullOrEmpty(this._cmd.param2);
if (flag2)
{
this.Hide(int.Parse(this._cmd.param2));
}
bool flag3 = !string.IsNullOrEmpty(this._cmd.param3);
if (flag3)
{
this.Hide(int.Parse(this._cmd.param3));
}
base.publicModule();
return true;
}
private void Hide(int idx)
{
bool flag = DlgBase<BattleMain, BattleMainBehaviour>.singleton.IsLoaded();
if (flag)
{
DlgBase<BattleMain, BattleMainBehaviour>.singleton.SkillHandler.DisableSkill(idx);
}
}
}
}
|