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