public void OpenForm() { this.m_form = Singleton <CUIManager> .GetInstance().GetForm(CBattleStatCompetitionSystem.s_equipFormPath); if (this.m_form == null) { this.m_form = Singleton <CUIManager> .GetInstance().OpenForm(CBattleStatCompetitionSystem.s_equipFormPath, true, true); } this.m_form.gameObject.CustomSetActive(true); this.tabList = this.m_form.GetWidget(0).GetComponent <CUIListScript>(); this.heatmapView = this.m_form.GetWidget(3); this.teamFightListGo = this.m_form.GetWidget(8); this.teamFightDataView = this.m_form.GetWidget(7); this.heatmapView.CustomSetActive(false); this.teamFightDataView.CustomSetActive(false); this.timeStartGo = this.m_form.GetWidget(9); this.timeEndGo = this.m_form.GetWidget(10); this.startInput = this.timeStartGo.transform.Find("InputField").GetComponent <InputField>(); this.endInput = this.timeEndGo.transform.Find("InputField").GetComponent <InputField>(); this.startInput.set_text("0000"); this.endInput.set_text("0000"); this.startTimeText = this.timeStartGo.transform.Find("TimeDisp").GetComponent <Text>(); this.endTimeText = this.timeEndGo.transform.Find("TimeDisp").GetComponent <Text>(); this.startTimeText.set_text("00:00"); this.startTimeText.set_text("00:00"); this.updateTimer = this.m_form.GetWidget(2).GetComponent <CUITimerScript>(); this.IRViewScprit = this.m_form.GetWidget(1).GetComponent <CUIGraphIRViewScript>(); this.imgMapBg = this.m_form.GetWidget(4).GetComponent <Image>(); this.m_IRListLeft = this.m_form.GetWidget(5).GetComponent <CUIListScript>(); this.m_IRListRight = this.m_form.GetWidget(6).GetComponent <CUIListScript>(); this.teamFightTypeToggleList = this.m_form.GetWidget(11).GetComponent <CUIToggleListScript>(); this.m_curIRViewIdx = 12; string[] array = new string[] { Singleton <CTextManager> .GetInstance().GetText("BattleStatCompetition_IRView_Title"), Singleton <CTextManager> .GetInstance().GetText("BattleStatCompetition_GroDPSView_Title") }; this.tabList.SetElementAmount(array.Length); for (int i = 0; i < array.Length; i++) { Text component = this.tabList.GetElemenet(i).transform.Find("Text").GetComponent <Text>(); component.set_text(array[i]); } this.SetHeroList(); this.ResetIRView(); this.ResetTeamFightView(); this.tabList.SelectElement(0, true); this.OnTabSelect(null); this.m_IRListLeft.SelectElement(-1, true); this.m_IRListRight.SelectElement(-1, true); this.m_teamFightDataStart = -1; this.m_teamFightDataEnd = -1; }
public void StoreIRViewData() { List <PoolObjHandle <ActorRoot> > heroActors = Singleton <GameObjMgr> .GetInstance().HeroActors; int num = 0; using (List <PoolObjHandle <ActorRoot> > .Enumerator enumerator = heroActors.GetEnumerator()) { while (enumerator.MoveNext()) { PoolObjHandle <ActorRoot> current = enumerator.get_Current(); List <Vector3> positionRecords = current.handle.PositionRecords; CUIGraphIRViewScript.StoreTextureData(positionRecords, this.m_heatmapStorage[num], this.m_isIRStoreInited); this.m_heatmapStorage[num].objID = current.handle.ObjID; num++; } } CUIGraphIRViewScript.StoreTextureData(Singleton <GameObjMgr> .GetInstance().PositionCamp1Records, this.m_heatmapStorage[10], this.m_isIRStoreInited); CUIGraphIRViewScript.StoreTextureData(Singleton <GameObjMgr> .GetInstance().PositionCamp2Records, this.m_heatmapStorage[11], this.m_isIRStoreInited); CUIGraphIRViewScript.StoreTextureData(Singleton <GameObjMgr> .GetInstance().PositionCampTotalRecords, this.m_heatmapStorage[12], this.m_isIRStoreInited); this.m_isIRStoreInited = true; }
public void PreLoadForm() { this.ClearAllData(); for (int i = 0; i < this.m_heatmapStorage.Length; i++) { this.m_heatmapStorage[i].Reset(); } if (this.m_form == null) { this.m_form = Singleton <CUIManager> .GetInstance().OpenForm(CBattleStatCompetitionSystem.s_equipFormPath, true, true); } this.IRViewScprit = this.m_form.GetWidget(1).GetComponent <CUIGraphIRViewScript>(); if (this.IRViewScprit) { for (int j = 0; j < this.m_heatmapStorage.Length; j++) { CUIGraphIRViewScript.SetSettingDataByPrefab(this.IRViewScprit, this.m_heatmapStorage[j], Singleton <BattleLogic> .GetInstance().GetCurLvelContext().m_mapWidth, Singleton <BattleLogic> .GetInstance().GetCurLvelContext().m_mapHeight); } } this.m_form.gameObject.CustomSetActive(false); this.m_isIRStoreInited = false; }