diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs new file mode 100644 index 00000000..7e1ce75a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs @@ -0,0 +1,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);
+ }
+ }
+ }
+}
|