private void On_Burn_OpenForm(CUIEvent uievent) { if (Singleton <CFunctionUnlockSys> .get_instance().FucIsUnlock(4)) { if (!Singleton <SCModuleControl> .get_instance().GetActiveModule(4)) { Singleton <CUIManager> .get_instance().OpenMessageBox(Singleton <SCModuleControl> .get_instance().PvpAndPvpOffTips, false); return; } if (Singleton <CMatchingSystem> .GetInstance().IsInMatching) { Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1.5f, null, new object[0]); return; } MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(16, true, false); if (this.model._data == null) { BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ(); } if (this.view != null) { this.view.OpenForm(); } } else { ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey(4u); Singleton <CUIManager> .get_instance().OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1.5f, null, new object[0]); } }
private void On_Burn_OpenForm(CUIEvent uievent) { if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG)) { if (Singleton <CMatchingSystem> .GetInstance().IsInMatching) { Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1f, null, new object[0]); } else { MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(0x10, true); if (this.model._data == null) { BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ(); } if (this.view != null) { this.view.OpenForm(); } } } else { ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey((uint)4); Singleton <CUIManager> .instance.OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1f, null, new object[0]); } }
private void On_Burn_OpenForm(CUIEvent uievent) { if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG)) { if (!Singleton <SCModuleControl> .instance.GetActiveModule(COM_CLIENT_PLAY_TYPE.COM_CLIENT_PLAY_BURNING)) { Singleton <CUIManager> .instance.OpenMessageBox(Singleton <SCModuleControl> .instance.PvpAndPvpOffTips, false); return; } if (Singleton <CMatchingSystem> .GetInstance().IsInMatching) { Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1.5f, null, new object[0]); return; } MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(16, true, false); if (this.model._data == null) { BurnExpeditionNetCore.Send_Get_BURNING_PROGRESS_REQ(); } if (this.view != null) { this.view.OpenForm(); } MonoSingleton <NewbieGuideManager> .GetInstance().CheckTriggerTime(NewbieGuideTriggerTimeType.onEnterBurn, new uint[0]); } else { ResSpecialFucUnlock dataByKey = GameDataMgr.specialFunUnlockDatabin.GetDataByKey(4u); Singleton <CUIManager> .instance.OpenTips(Utility.UTF8Convert(dataByKey.szLockedTip), false, 1.5f, null, new object[0]); } }
private void On_Burn_BoxButton(CUIEvent uievent) { this.model.curSelect_BoxIndex = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; byte levelNo = this.model.Get_LevelNo(this.model.curSelect_BoxIndex); int levelID = this.model.Get_LevelID(this.model.curSelect_BoxIndex); if (uievent.m_srcWidget.transform.FindChild("current_node").gameObject.activeSelf) { uint num3; uint num4; if (this.model.Get_Box_Info(Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().Level, this.model.curSelect_BoxIndex, out num3, out num4)) { this.view.Check_Box_Info(num3, num4); } } else if (this.model.Get_ChestRewardStatus(this.model.curSelect_BoxIndex) == COM_LEVEL_STATUS.COM_LEVEL_STATUS_UNLOCKED) { BurnExpeditionNetCore.Send_GET_BURNING_REWARD_REQ(levelNo, levelID); } }
private void On_Burn_BoxButton(CUIEvent uievent) { this.model.curSelect_BoxIndex = BurnExpeditionUT.GetIndex(uievent.m_srcWidget.name) - 1; byte levelNo = this.model.Get_LevelNo(this.model.curSelect_BoxIndex); int levelID = this.model.Get_LevelID(this.model.curSelect_BoxIndex); bool activeSelf = uievent.m_srcWidget.transform.FindChild("current_node").gameObject.activeSelf; if (activeSelf) { uint goldNum; uint burn_num; bool flag = this.model.Get_Box_Info(Singleton <CRoleInfoManager> .get_instance().GetMasterRoleInfo().Level, this.model.curSelect_BoxIndex, out goldNum, out burn_num); if (flag) { this.view.Check_Box_Info(goldNum, burn_num); } } else if (this.model.Get_ChestRewardStatus(this.model.curSelect_BoxIndex) == 1) { BurnExpeditionNetCore.Send_GET_BURNING_REWARD_REQ(levelNo, levelID); } }
private void On_Burn_Reset_OK(CUIEvent evt) { BurnExpeditionNetCore.Send_RESET_BURNING_PROGRESS_REQ((byte)this.model.curDifficultyType); }