public void OnTaskChanged(CUIEvent uiEvent) { int selectedIndex = uiEvent.m_srcWidget.GetComponent <CUIListScript>().GetSelectedIndex(); this.m_taskView.On_Tab_Change(selectedIndex); switch (selectedIndex) { case 0: CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_MainTaskBtn); break; case 1: CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_DayTaskBtn); break; case 2: CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_GetCoinBtn); break; case 3: CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_GetSymbolBtn); break; case 4: CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_GetHeroBtn); break; } }
private void ProcessIDIPTable() { if (this._uiForm == null) { return; } Transform transform = this._uiForm.gameObject.transform.Find("Panel/Panle_Activity"); if (transform) { transform.gameObject.CustomSetActive(false); } Transform transform2 = this._uiForm.gameObject.transform.Find("Panel/Panle_Pandora"); if (transform2) { transform2.gameObject.CustomSetActive(false); } Transform transform3 = this._uiForm.gameObject.transform.Find("Panel/Panle_IDIP"); if (transform3) { transform3.gameObject.CustomSetActive(true); } MonoSingleton <IDIPSys> .GetInstance().OnOpenIDIPForm(this._uiForm); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_OpenGongGao); }
public void OnOpenHeroViewForm(CUIEvent uiEvent) { CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(s_heroViewFormPath, false, true); if (script != null) { this.m_selectHeroType = enHeroJobType.All; string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All"); string str2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank"); string str3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier"); string str4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin"); string str5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master"); string str6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer"); string str7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid"); string[] titleList = new string[] { text, str2, str3, str4, str5, str6, str7 }; CUICommonSystem.InitMenuPanel(script.transform.Find("Panel_Menu/List").gameObject, titleList, (int)this.m_selectHeroType); this.ResetHeroListData(); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_HeroListBtn); } }
public void OnOBFormOpen(CUIEvent cuiEvent) { CUICommonSystem.ResetLobbyFormFadeRecover(); if (CUICommonSystem.IsInMatchingWithAlert()) { return; } CUIFormScript cUIFormScript = Singleton <CUIManager> .instance.OpenForm(COBSystem.OB_FORM_PATH, false, true); if (cUIFormScript == null) { return; } CUIListScript componetInChild = Utility.GetComponetInChild <CUIListScript>(cUIFormScript.gameObject, "Panel_Menu/List"); this.InitTab(componetInChild); Transform transform = cUIFormScript.gameObject.transform.FindChild("Panel_Menu/BtnVideoMgr"); if (transform && transform.gameObject) { if (!Singleton <CRecordUseSDK> .instance.GetRecorderGlobalCfgEnableFlag()) { transform.gameObject.CustomSetActive(false); } else { transform.gameObject.CustomSetActive(true); } } CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_OpenOB); }
private void OnOpenSymbolForm(CUIEvent uiEvent) { this.m_selectMenuType = enSymbolMenuType.SymbolEquip; this.OpenSymbolForm(); Singleton <CLobbySystem> .GetInstance().OnCheckSymbolEquipAlert(); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_SymbolBtn); }
public void OnOpenHeroViewForm(CUIEvent uiEvent) { CUICommonSystem.ResetLobbyFormFadeRecover(); CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CHeroOverviewSystem.s_heroViewFormPath, false, true); if (cUIFormScript == null) { return; } Singleton <CLobbySystem> .GetInstance().SetTopBarPriority(enFormPriority.Priority0); this.m_selectHeroType = enHeroJobType.All; CMallSortHelper.CreateHeroViewSorter().SetSortType(this.m_heroSortType); this.ResetHeroListData(true); string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All"); string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank"); string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier"); string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin"); string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master"); string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer"); string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid"); string[] titleList = new string[] { text, text2, text3, text4, text5, text6, text7 }; GameObject gameObject = cUIFormScript.transform.Find("Panel_Menu/List").gameObject; CUICommonSystem.InitMenuPanel(gameObject, titleList, (int)this.m_selectHeroType, true); this.RefreshHeroOwnFlag(); this.ResetHeroSortTypeList(); GameObject widget = cUIFormScript.GetWidget(4); Singleton <CUINewFlagSystem> .instance.AddNewFlag(widget, enNewFlagKey.New_HeroOverViewOpenStoryUrl_V14, enNewFlagPos.enTopRight, 0.8f, 0f, 0f, enNewFlagType.enNewFlag); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_HeroListBtn); if (CSysDynamicBlock.bLobbyEntryBlocked) { Transform transform = cUIFormScript.transform.FindChild("Panel_Hero/Panel_Hero_TitleBg/BtnStoryWeb"); if (transform != null) { transform.gameObject.CustomSetActive(false); } } }
public void OnOpenTaskForm(CUIEvent uiEvent) { if (!this.IsOpenTaskSys()) { return; } this.m_taskView.OpenForm(uiEvent); TaskNetUT.Send_Update_Task(0u); CMiShuSystem.SendReqCoinGetPathData(); }
public void On_InBatMenu_OpenForm(CUIEvent uievent) { CUICommonSystem.ResetLobbyFormFadeRecover(); if (this.m_customMenu != null) { this.m_customMenu.OpenForm(); } Singleton <CBattleGuideManager> .GetInstance().OpenBannerDlgByBannerGuideId(3u, null, false); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_BattleChatSetBtn); }
public void On_InBatMenu_OpenForm(CUIEvent uievent) { if (this.m_customMenu != null) { this.m_customMenu.OpenForm(); } Singleton <CMiShuSystem> .instance.SetNewFlagForMessageBtnEntry(false); Singleton <CBattleGuideManager> .GetInstance().OpenBannerDlgByBannerGuideId(3, null); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_BattleChatSetBtn); }
private void OnClickHideRecentUsedHero(CUIEvent uiEvent) { if (uiEvent.m_eventParams.togleIsOn) { this.ReqHideRecentUsedHero(true); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo != null) { CLadderSystem.SetRecentUsedHeroMask(ref masterRoleInfo.recentUseHero.dwCtrlMask, COM_RECENT_USED_HERO_MASK.COM_RECENT_USED_HERO_HIDE, true); } CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_CloseRecentUseHero); } }
private void OnClickShowRecentUsedHero(CUIEvent uiEvent) { if (uiEvent.m_eventParams.togleIsOn) { this.ReqHideRecentUsedHero(false); CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo(); if (masterRoleInfo != null) { CLadderSystem.SetRecentUsedHeroMask(ref masterRoleInfo.recentUseHero.dwCtrlMask, 1, false); } CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_OpenRecentUseHero); } }
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]); } }
private void OnOpenCampaignForm(CUIEvent uiEvent) { if (CSysDynamicBlock.bLobbyEntryBlocked || CSysDynamicBlock.bOperationBlock) { return; } if (uiEvent != null) { this._openActivityKey = Activity.GenKey((COM_WEAL_TYPE)uiEvent.m_eventParams.tag, (uint)uiEvent.m_eventParams.tag2); } if (this._campaignForm != null && this._actvDict != null) { this.RequestRefresh(0); this._campaignForm.Open(); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_OpenHuodong); } }
public void OnOpenHeroViewForm(CUIEvent uiEvent) { CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CHeroOverviewSystem.s_heroViewFormPath, false, true); if (cUIFormScript == null) { return; } Singleton <CLobbySystem> .GetInstance().SetTopBarPriority(enFormPriority.Priority0); this.m_selectHeroType = enHeroJobType.All; CMallSortHelper.CreateHeroViewSorter().SetSortType(this.m_heroSortType); this.ResetHeroListData(true); string text = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_All"); string text2 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Tank"); string text3 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Soldier"); string text4 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Assassin"); string text5 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Master"); string text6 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Archer"); string text7 = Singleton <CTextManager> .GetInstance().GetText("Hero_Job_Aid"); string[] titleList = new string[] { text, text2, text3, text4, text5, text6, text7 }; GameObject gameObject = cUIFormScript.transform.Find("Panel_Menu/List").gameObject; CUICommonSystem.InitMenuPanel(gameObject, titleList, (int)this.m_selectHeroType, true); this.RefreshHeroOwnFlag(); this.ResetHeroSortTypeList(); CMiShuSystem.SendUIClickToServer(enUIClickReprotID.rp_HeroListBtn); }