// Token: 0x06013229 RID: 78377 RVA: 0x004E117C File Offset: 0x004DF37C private void OnTodaySignBoxClick(GoodsType type, int id, int count) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnTodaySignBoxClickGoodsTypeInt32Int32_hotfix != null) { this.m_OnTodaySignBoxClickGoodsTypeInt32Int32_hotfix.call(new object[] { this, type2, id2, count2 }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; GoodsType type = type2; int id = id2; int count = count2; SignUITask $this = this; int num = this.m_playerContext.CanSignToday(); if (num == 0) { EverydaySignNetTask everydaySignNetTask = new EverydaySignNetTask(); everydaySignNetTask.EventOnStop += delegate(Task task) { EverydaySignNetTask everydaySignNetTask2 = task as EverydaySignNetTask; if (everydaySignNetTask2.Result == 0) { $this.m_signRewardListUIController.PlaySignAnimation(delegate { $this.m_signRewardListUIController.EnableCloseButton(true); $this.UpdateView(); $this.HandleBoxOpenNetTask(type, id, count); }); } else { CommonUIController.Instance.ShowErrorMessage(everydaySignNetTask2.Result, 2f, null, true); } }; everydaySignNetTask.Start(null); } else { this.m_signRewardListUIController.EnableCloseButton(true); if (num == -500) { BagFullUITask.StartUITask(this.m_currIntent); this.m_isAutoSign = false; } else { CommonUIController.Instance.ShowErrorMessage(num, 2f, null, true); } } }
// Token: 0x06013228 RID: 78376 RVA: 0x004E10A4 File Offset: 0x004DF2A4 private void OnTodaySignItemClick() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnTodaySignItemClick_hotfix != null) { this.m_OnTodaySignItemClick_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; int num = this.m_playerContext.CanSignToday(); if (num == 0) { EverydaySignNetTask everydaySignNetTask = new EverydaySignNetTask(); everydaySignNetTask.EventOnStop += delegate(Task task) { EverydaySignNetTask returnTask = task as EverydaySignNetTask; if (returnTask.Result == 0) { if (returnTask.Rewards != null && returnTask.Rewards.Count != 0) { this.m_signRewardListUIController.PlaySignAnimation(delegate { this.m_signRewardListUIController.EnableCloseButton(true); GetRewardGoodsUITask.StartUITask(returnTask.Rewards); this.UpdateView(); }); } } else { CommonUIController.Instance.ShowErrorMessage(returnTask.Result, 2f, null, true); } }; everydaySignNetTask.Start(null); } else { this.m_signRewardListUIController.EnableCloseButton(true); if (num == -500) { BagFullUITask.StartUITask(this.m_currIntent); this.m_isAutoSign = false; } else { CommonUIController.Instance.ShowErrorMessage(num, 2f, null, true); } } }