diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs |
+scripts
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);
+ }
+ }
+}
|