public void OnRandomName(CUIEvent cuiEvent) { CRoleRegisterView.RoleName = this.GetRandomName(); }
private void OnQuitCameCancel(CUIEvent uiEvent) { this.bMessageBoxIsOpen = false; }
private void OnSurrenderAgainst(CUIEvent cuiEvent) { this.SendMsgSurrender(0); }
private void onMoveCamera(CUIEvent uiEvt) { Singleton <CBattleGuideManager> .GetInstance().CloseFormShared(CBattleGuideManager.EBattleGuideFormType.FingerMovement); }
private void On_HeadIcon_Change_Form_Close(CUIEvent uiEvent) { }
private void OnChooseCompletenewbieGuide(CUIEvent uiEvent) { this.IsComplteNewbieGuide = true; this.CommitIsCompleteNewbieGuide(true); }
private void OnWeakGuideBubbleTimeOut(CUIEvent uiEvent) { Singleton <NewbieWeakGuideControl> .GetInstance().RemoveEffectByHilight(uiEvent.m_srcWidget); }
private void On_OpenAddFriendForm(CUIEvent uiEvent) { this.view.OpenSearchForm(); }
private void On_OpenForm(CUIEvent uiEvent) { this.view.OpenForm(uiEvent); }
private void On_Friend_DelFriend_Cancle(CUIEvent evt) { }
private void On_Friend_RecommendGuild(CUIEvent uiEvent) { Singleton <EventRouter> .GetInstance().BroadCastEvent <ulong>("Guild_Recommend", this.GetFriendUid(uiEvent)); }
private void On_DelFriend(CUIEvent evt) { this.com = evt.m_srcWidget; Singleton <CUIManager> .GetInstance().OpenMessageBoxWithCancel(UT.GetText("Friend_Tips_DelFriend"), enUIEventID.Friend_DelFriend_OK, enUIEventID.Friend_DelFriend_Cancle, false); }
private void On_CloseForm(CUIEvent uiEvent) { this.view.CloseForm(); }
public void OnGameDifSelect(CUIEvent cuiEvent) { CRoleRegisterView.SetGameDifficult(cuiEvent.m_eventParams.tag); }
public void InitReplayKit(Transform container, bool autoRecord = false, bool autoPreview = false) { if (container == null) { return; } if (!this.Cap) { container.gameObject.CustomSetActive(false); return; } if (!GameSettings.EnableReplayKit) { container.gameObject.CustomSetActive(false); return; } CReplayKitSys.StorageStatus storageStatus = this.CheckStorage(false); CReplayKitSys.StorageStatus storageStatus2 = storageStatus; if (storageStatus2 == CReplayKitSys.StorageStatus.Disable) { container.gameObject.CustomSetActive(false); CUIEvent cUIEvent = new CUIEvent(); cUIEvent.m_eventID = enUIEventID.ReplayKit_Pause_Recording; cUIEvent.m_eventParams.tag2 = 1; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(cUIEvent); return; } if (Singleton <BattleLogic> .GetInstance().isRuning) { SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext(); if (curLvelContext != null && (curLvelContext.IsGameTypeGuide() || !curLvelContext.IsMobaMode())) { container.gameObject.CustomSetActive(false); CUIEvent cUIEvent2 = new CUIEvent(); cUIEvent2.m_eventID = enUIEventID.ReplayKit_Pause_Recording; cUIEvent2.m_eventParams.tag2 = 1; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(cUIEvent2); return; } } else if (Singleton <CHeroSelectBaseSystem> .instance.m_isInHeroSelectState && (Singleton <CHeroSelectBaseSystem> .GetInstance().IsSpecTraingMode() || !Singleton <CHeroSelectBaseSystem> .GetInstance().IsMobaMode())) { container.gameObject.CustomSetActive(false); CUIEvent cUIEvent3 = new CUIEvent(); cUIEvent3.m_eventID = enUIEventID.ReplayKit_Pause_Recording; cUIEvent3.m_eventParams.tag2 = 1; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(cUIEvent3); return; } Transform transform = container.transform.Find("Recording"); Transform transform2 = container.transform.Find("Paused"); Transform transform3 = container.transform.Find("Transition"); if (transform == null || transform2 == null) { container.gameObject.CustomSetActive(false); return; } CUIEventScript component = transform.GetComponent <CUIEventScript>(); CUIEventScript component2 = transform2.GetComponent <CUIEventScript>(); if (component != null) { component.m_onClickEventID = enUIEventID.ReplayKit_Pause_Recording; if (autoPreview) { component.m_onClickEventParams.tag = 1; } } if (component2 != null) { component2.m_onClickEventID = enUIEventID.ReplayKit_Start_Recording; } if (autoRecord) { if (GameSettings.EnableReplayKitAutoMode) { transform.gameObject.CustomSetActive(true); transform2.gameObject.CustomSetActive(false); transform3.gameObject.CustomSetActive(false); Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.ReplayKit_Start_Recording); } else if (this.IsRecording()) { transform.gameObject.CustomSetActive(true); transform2.gameObject.CustomSetActive(false); transform3.gameObject.CustomSetActive(false); } else { transform.gameObject.CustomSetActive(false); transform2.gameObject.CustomSetActive(true); transform3.gameObject.CustomSetActive(false); } } else if (this.IsRecording()) { transform.gameObject.CustomSetActive(true); transform2.gameObject.CustomSetActive(false); transform3.gameObject.CustomSetActive(false); } else { transform.gameObject.CustomSetActive(false); transform2.gameObject.CustomSetActive(true); transform3.gameObject.CustomSetActive(false); } }
private void OnBag_CloseSaleForm(CUIEvent uiEvent) { Singleton <CUIManager> .GetInstance().CloseForm(s_bagSaleFormPath); }
public void OnSubListClick(CUIEvent uiEvent) { this.UpdateUI(); }
private void OnBag_OnCloseForm(CUIEvent uiEvent) { }
private void OnChooseNotCompleteNewbieGuide(CUIEvent uiEvent) { this.IsComplteNewbieGuide = false; this.CommitIsCompleteNewbieGuide(false); }
private void OnBag_OpenForm(CUIEvent uiEvent) { this.OpenBagForm(); }
private void OnBattleBubbleTimeout(CUIEvent uiEvent) { uiEvent.m_srcWidget.transform.parent.gameObject.CustomSetActive(false); }
private void OnBag_OpenUseForm(CUIEvent uiEvent) { if (this.m_selectUseable.m_type == COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP) { CItem selectUseable = this.m_selectUseable as CItem; if ((selectUseable.m_itemData.bType == 4) && (selectUseable.m_itemData.EftParam[2] != 0f)) { this.PlayItemUseAnimation(this.m_selectUseable, 1); } else { if (((selectUseable.m_itemData.bType == 1) || (selectUseable.m_itemData.bType == 7)) || (selectUseable.m_itemData.bType == 4)) { if (this.CheckNameChangeCard(selectUseable)) { return; } this.m_useCount = 1; if (selectUseable.m_itemData.bIsBatchUse == 0) { SendItemUseMsgToServer(this.m_selectUseable.m_objID, 0, this.m_useCount); return; } CUIFormScript formScript = Singleton <CUIManager> .GetInstance().OpenForm(s_bagUseFormPath, false, true); GameObject gameObject = formScript.gameObject; GameObject itemCell = gameObject.transform.Find("Panel_Left/itemCell").gameObject; Text component = gameObject.transform.Find("Panel_Left/lblName").GetComponent <Text>(); Text text2 = gameObject.transform.Find("Panel_Left/lblCount").GetComponent <Text>(); Text text3 = gameObject.transform.Find("Panel_Left/lblCount1").GetComponent <Text>(); CUICommonSystem.SetItemCell(formScript, itemCell, this.m_selectUseable, true, false); component.text = this.m_selectUseable.m_name; text2.text = this.m_selectUseable.GetSalableCount().ToString(); if ((selectUseable.m_itemData.wBatchUseCnt > 0) && (selectUseable.m_itemData.wBatchUseCnt <= this.m_selectUseable.GetSalableCount())) { text3.text = this.m_useCount + "/" + selectUseable.m_itemData.wBatchUseCnt; } else { text3.text = this.m_useCount + "/" + this.m_selectUseable.GetSalableCount(); } } if (CItem.IsHeroExChangeCoupons(selectUseable.m_baseID)) { Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Mall_GoToRecommendHeroTab); } else if (CItem.IsSkinExChangeCoupons(selectUseable.m_baseID)) { Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Mall_GoToRecommendSkinTab); } else if (selectUseable.m_itemData.bType == 8) { Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Union_Battle_ClickEntry); } else if (selectUseable.m_itemData.bType == 9) { stUIEventParams par = new stUIEventParams { commonUInt32Param1 = selectUseable.m_itemData.dwID }; Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Speaker_Form_Open, par); } } } else if (this.m_selectUseable.m_type == COM_ITEM_TYPE.COM_OBJTYPE_ITEMSYMBOL) { if (Singleton <CFunctionUnlockSys> .instance.FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SYMBOL)) { Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Symbol_OpenForm); } else { Singleton <CUIManager> .GetInstance().OpenTips("Symbol_Lock_Tip", true, 1f, null, new object[0]); } } }
private void OnShopTimeEnd(CUIEvent uiEvent) { Singleton <CUIManager> .GetInstance().OpenTips("神秘商店已关闭", false, 1.5f, null, new object[0]); Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Mall_CloseForm); }
private void OnBag_SaleItem(CUIEvent uiEvent) { }
private void OnQuitGame(CUIEvent uiEvent) { SGameApplication.Quit(); }
private void OnBag_SelectItem(CUIEvent uiEvent) { this.RefreshSelectItem(uiEvent.m_srcFormScript, uiEvent.m_srcFormScript.gameObject, uiEvent.m_srcWidgetIndexInBelongedList); }
public void OnOpenTongCaiConfirm(CUIEvent uiEvent) { ApolloAccountInfo accountInfo = Singleton <ApolloHelper> .GetInstance().GetAccountInfo(false); MonoSingleton <CTongCaiSys> .instance.OpenTongCaiH5(accountInfo); }
private void OnBag_UseItemWithAnimation(CUIEvent uiEvent) { this.PlayItemUseAnimation(uiEvent.m_eventParams.iconUseable, uiEvent.m_eventParams.tag); }
private void OnSurrenderTimeUp(CUIEvent cuiEvent) { this.CloseSurrenderForm(); this.m_haveRights = true; }
private void OnExitGame(CUIEvent uiEvent) { Singleton <CUIEventManager> .GetInstance().RemoveUIEventListener(enUIEventID.CheckDevice_Quit, new CUIEventManager.OnUIEventHandler(this.OnExitGame)); CVersionUpdateSystem.QuitApp(); }