From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/UI/XYyMallOperate.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs (limited to 'Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs') diff --git a/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs new file mode 100644 index 00000000..d65b607f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XYyMallOperate : XDramaOperate + { + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + XDramaOperateParam data = XDataPool.GetData(); + data.Text = base._GetRandomNpcText(npc); + data.Npc = npc; + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcOk"), new ButtonClickEventHandler(this._OnOKClicked), 0UL); + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcCancel"), null, 0UL); + base._FireEvent(data); + } + + private bool _OnOKClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_YyMall, 0UL); + return true; + } + } +} -- cgit v1.1-26-g67d0