private void OnExpiredDeleteConfirmed(CUIEvent evt) { try { for (int i = this.OBLocalList.Count - 1; i >= 0; i--) { GameReplayModule.ReplayFileInfo replayFileInfo = this.OBLocalList[i]; if (replayFileInfo.isExpired) { File.Delete(replayFileInfo.path); this.OBLocalList.RemoveAt(i); } } Singleton <CUIManager> .instance.OpenTips("OB_Desc_8", true, 1.5f, null, new object[0]); } catch (Exception var_2_6E) { Singleton <CUIManager> .instance.OpenTips("OB_Desc_9", true, 1.5f, null, new object[0]); } this.UpdateView(); }
private void OnVideoEnter(CUIEvent cuiEvent) { COBSystem.enOBTab curTab = this.CurTab; if (curTab == COBSystem.enOBTab.Local) { CUIFormScript form = Singleton <CUIManager> .instance.GetForm(COBSystem.OB_FORM_PATH); if (form == null) { return; } CUIListScript componetInChild = Utility.GetComponetInChild <CUIListScript>(form.gameObject, "ContentList"); if (componetInChild == null) { return; } int selectedIndex = componetInChild.GetSelectedIndex(); GameReplayModule.ReplayFileInfo replayFileInfo = this.OBLocalList[selectedIndex]; if (replayFileInfo != null && replayFileInfo.isExpired) { Singleton <CUIManager> .GetInstance().OpenTips(Singleton <CTextManager> .GetInstance().GetText("OB_Desc_CannotPlayExpiredFile"), false, 1.5f, null, new object[0]); return; } } if (this.curStatus == COBSystem.enStatus.Editor) { return; } if (Singleton <CMatchingSystem> .GetInstance().IsInMatching) { Singleton <CUIManager> .GetInstance().OpenTips("PVP_Matching", true, 1.5f, null, new object[0]); return; } Singleton <CUIManager> .instance.OpenMessageBoxWithCancel(Singleton <CTextManager> .instance.GetText("OB_Desc_11"), enUIEventID.OB_Video_Enter_Confirm, enUIEventID.None, false); }
private void UpdateElement(GameObject element, GameReplayModule.ReplayFileInfo OBLocal) { this.UpdateElement(element, OBLocal.userName, OBLocal.userHead, OBLocal.userRankGrade, OBLocal.userRankClass, OBLocal.heroId, enOBTab.Local, 0, this.curStatus, OBLocal.startTime, OBLocal.mapType, OBLocal.mapId); }
private void UpdateElement(GameObject element, GameReplayModule.ReplayFileInfo OBLocal) { this.UpdateElement(element, OBLocal.userName, OBLocal.userHead, OBLocal.userRankGrade, OBLocal.userRankClass, OBLocal.heroId, COBSystem.enOBTab.Local, 0, OBLocal.isExpired, this.curStatus, OBLocal.startTime, OBLocal.mapType, OBLocal.mapId, string.Empty); }