summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs
new file mode 100644
index 00000000..e8b0437f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs
@@ -0,0 +1,74 @@
+using System;
+using UILib;
+using XMainClient.UI;
+using XMainClient.UI.UICommon;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal class XBackFlowPrivilegeHandler : DlgHandlerBase
+ {
+ protected override string FileName
+ {
+ get
+ {
+ return "Hall/BfPrivilegeHandler";
+ }
+ }
+
+ private IXUIButton _activityTaskBtn;
+
+ private IXUIButton _buyReward;
+
+ private IXUIButton _teamDetail;
+
+ protected override void Init()
+ {
+ base.Init();
+ this._activityTaskBtn = (base.transform.Find("bg/ActivityTask/BtnGo").GetComponent("XUIButton") as IXUIButton);
+ this._activityTaskBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.GotoActivityTask));
+ this._buyReward = (base.transform.Find("bg/DoubleReward/BtnGo").GetComponent("XUIButton") as IXUIButton);
+ this._buyReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.GotoShopping));
+ this._teamDetail = (base.transform.Find("bg/TeamReward/BtnGo").GetComponent("XUIButton") as IXUIButton);
+ this._teamDetail.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowDetail));
+ }
+
+ public override void RegisterEvent()
+ {
+ base.RegisterEvent();
+ }
+
+ protected override void OnShow()
+ {
+ base.OnShow();
+ }
+
+ protected override void OnHide()
+ {
+ base.OnHide();
+ }
+
+ public override void OnUnload()
+ {
+ base.OnUnload();
+ }
+
+ private bool OnShowDetail(IXUIButton button)
+ {
+ DlgBase<XCommonHelpTipView, XCommonHelpTipBehaviour>.singleton.ShowHelp(XSysDefine.Xsys_Backflow_Privilege);
+ return true;
+ }
+
+ private bool GotoShopping(IXUIButton button)
+ {
+ XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_Welfare_GiftBag, 0UL);
+ return true;
+ }
+
+ private bool GotoActivityTask(IXUIButton button)
+ {
+ XSingleton<XGameSysMgr>.singleton.OpenSystem(XSysDefine.XSys_Mall_BackFlowShop, 0UL);
+ return true;
+ }
+ }
+}