From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Tutorial/Command/XCommandIsShowButton.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs (limited to 'Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs') 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.singleton.SetLearnSkillButtonState(state); + } + } +} -- cgit v1.1-26-g67d0