private void OnBtnVideoMgrClick(CUIEvent cuiEvent) { this.m_enmCheckWhiteListStatus = CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_VIDEOMGRCLICK; Singleton <CUIManager> .GetInstance().OpenSendMsgAlert(null, 3, enUIEventID.Record_Check_WhiteList_TimeUp); this.CheckWhiteList(); }
private void OnGameJoyCheckAvailabilityResult(bool bRes) { if (this.m_enmCheckWhiteListStatus != CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_TIMEUP && this.m_enmCheckWhiteListStatus != CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_AUTOCHECK) { Singleton <CUIManager> .GetInstance().CloseSendMsgAlert(); if (!bRes) { Singleton <CUIManager> .get_instance().OpenTips("GamejoyCheckAvailabilityFailed", true, 1.5f, null, new object[0]); this.SetKingBarSliderState(false); } if (this.m_enmCheckWhiteListStatus == CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_VIDEOMGRCLICK) { if (bRes) { Singleton <GameJoy> .get_instance().ShowVideoListDialog(); } this.m_enmCheckWhiteListStatus = CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_INVALID; return; } this.m_enmCheckWhiteListStatus = ((!bRes) ? CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_RESULTFAILED : CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_RESULTOK); if (this.m_enmCheckWhiteListStatus == CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_RESULTOK) { this.CheckStorageAndPermission(); } } else if (this.m_enmCheckWhiteListStatus == CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_AUTOCHECK) { this.m_enmCheckWhiteListStatus = ((!bRes) ? CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_RESULTFAILED : CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_RESULTOK); } }
private void OnCheckWhiteListTimeUp(CUIEvent uiEvent) { if (this.m_enmCheckWhiteListStatus == CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_INVALID) { this.SetKingBarSliderState(false); } this.m_enmCheckWhiteListStatus = CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_TIMEUP; }
public bool OpenRecorderCheck(GameObject KingBar) { this.m_objKingBar = KingBar; this.m_enmCheckWhiteListStatus = CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_INVALID; Singleton <CUIManager> .GetInstance().OpenSendMsgAlert(null, 3, enUIEventID.Record_Check_WhiteList_TimeUp); this.CheckWhiteList(); return(false); }
public override void Init() { base.Init(); this.Reset(); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_FightPrepare, new RefAction <DefaultGameEventParam>(this.OnFightPrepare)); Singleton <GameEventSys> .get_instance().AddEventHandler <GameDeadEventParam>(GameEventDef.Event_ActorDead, new RefAction <GameDeadEventParam>(this.OnActorDead)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_DoubleKill, new RefAction <DefaultGameEventParam>(this.OnActorDoubleKill)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_TripleKill, new RefAction <DefaultGameEventParam>(this.OnActorTripleKill)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_QuataryKill, new RefAction <DefaultGameEventParam>(this.OnActorQuataryKill)); Singleton <GameEventSys> .get_instance().AddEventHandler <DefaultGameEventParam>(GameEventDef.Event_PentaKill, new RefAction <DefaultGameEventParam>(this.OnActorPentaKill)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Record_Save_Moment_Video, new CUIEventManager.OnUIEventHandler(this.OnSaveMomentVideo)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Record_Save_Moment_Video_Cancel, new CUIEventManager.OnUIEventHandler(this.OnSaveMomentVideoCancel)); Singleton <EventRouter> .GetInstance().AddEventHandler <bool>(EventID.GAMEJOY_STARTRECORDING_RESULT, new Action <bool>(this.OnGameJoyStartRecordResult)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.OB_Video_Btn_VideoMgr_Click, new CUIEventManager.OnUIEventHandler(this.OnBtnVideoMgrClick)); Singleton <EventRouter> .GetInstance().AddEventHandler <bool>(EventID.GAMEJOY_SDK_PERMISSION_CHECK_RESULT, new Action <bool>(this.OnGameJoyCheckPermissionResult)); Singleton <EventRouter> .GetInstance().AddEventHandler <bool>(EventID.GAMEJOY_AVAILABILITY_CHECK_RESULT, new Action <bool>(this.OnGameJoyCheckAvailabilityResult)); Singleton <CUIEventManager> .GetInstance().AddUIEventListener(enUIEventID.Record_Check_WhiteList_TimeUp, new CUIEventManager.OnUIEventHandler(this.OnCheckWhiteListTimeUp)); Singleton <EventRouter> .GetInstance().AddEventHandler <long>(EventID.GAMEJOY_STOPRECORDING_RESULT, new Action <long>(this.OnGameJoyStopRecordResult)); if (GameSettings.EnableKingTimeMode) { this.m_enmCheckWhiteListStatus = CRecordUseSDK.CHECK_WHITELIST_STATUS.CHECK_WHITELIST_STATUS_TYPE_AUTOCHECK; this.CheckWhiteList(); } }