private void _check(CUIEvent uiEvent, bool bDay) { uint tagUInt = uiEvent.m_eventParams.tagUInt; DebugHelper.Assert(tagUInt > 0u, "id must > 0"); if (tagUInt == 0u) { return; } ResHuoYueDuReward rewardCfg = this.model.huoyue_data.GetRewardCfg((ushort)tagUInt); RES_HUOYUEDU_TYPE type = bDay ? RES_HUOYUEDU_TYPE.RES_HUOYUEDU_TYPE_DAY : RES_HUOYUEDU_TYPE.RES_HUOYUEDU_TYPE_WEEK; if (this.model.huoyue_data.BAlready_Reward(type, rewardCfg.wID)) { Singleton <CUIManager> .instance.OpenTips(UT.GetText("CS_HUOYUEDUREWARD_GETED"), false, 1.5f, null, new object[0]); return; } uint num = bDay ? this.model.huoyue_data.day_curNum : this.model.huoyue_data.week_curNum; if (num >= rewardCfg.dwHuoYueDu) { TaskNetUT.Send_GetHuoyue_Reward(rewardCfg.wID); } else { Singleton <CUICommonSystem> .instance.OpenUseableTips(this.model.huoyue_data.GetUsable(rewardCfg.wID), uiEvent.m_pointerEventData.get_pressPosition().x, uiEvent.m_pointerEventData.get_pressPosition().y, enUseableTipsPos.enTop); } }
private void OnTask_ClickGetLevelReward(CUIEvent uievent) { DebugHelper.Assert(this.model.curLevelRewardData != null, "OnTask_ClickGetLevelReward model.m_curLevelRewardData == null"); if (this.model.curLevelRewardData != null) { TaskNetUT.Send_Get_Level_Reward_Request(this.model.curLevelRewardData.m_level); } }
private void On_Task_Submit(CUIEvent uiEvent) { uint tagUInt = uiEvent.m_eventParams.tagUInt; DebugHelper.Assert(tagUInt > 0u, "---ctask Submit task, taskid should > 0"); if (tagUInt > 0u) { TaskNetUT.Send_SubmitTask(tagUInt); } }
public void OnOpenTaskForm(CUIEvent uiEvent) { if (!this.IsOpenTaskSys()) { return; } this.m_taskView.OpenForm(uiEvent); TaskNetUT.Send_Update_Task(0u); CMiShuSystem.SendReqCoinGetPathData(); }
public void OnOpenTaskForm(CUIEvent uiEvent) { if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_TASK)) { this.m_taskView.OpenForm(uiEvent); TaskNetUT.Send_Update_Task(0); CMiShuSystem.SendReqCoinGetPathData(); } else { ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey((uint)0x10); Singleton <CUIManager> .instance.OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1f, null, new object[0]); } }
public void OnOpenTaskForm(CUIEvent uiEvent) { if (Singleton <CFunctionUnlockSys> .get_instance().FucIsUnlock(16)) { this.m_taskView.OpenForm(uiEvent); TaskNetUT.Send_Update_Task(0u); CMiShuSystem.SendReqCoinGetPathData(); } else { ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey(16u); Singleton <CUIManager> .get_instance().OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1.5f, null, new object[0]); } }