private void OnSkillEnable(ref DefaultSkillEventParam _param) { if (WatchForm.IsNeedShowCampMidInterface()) { HeroInfoSideItem heroInfoSideItem = null; if (this._heroWrapSideDict.TryGetValue(_param.actor.handle.ObjID, out heroInfoSideItem) && _param.slot == SkillSlotType.SLOT_SKILL_3) { heroInfoSideItem.ValidateSkill3(); } } }
private void InitCampInfoUIList(COM_PLAYERCAMP listCamp, List <HeroKDA> heroList, CUIListScript baseInfoUIList, CUIListScript equipInfoUIList, CUIListScript sideInfoList = null) { if (null == baseInfoUIList || heroList == null || heroList.get_Count() == 0) { return; } baseInfoUIList.SetElementAmount(5); equipInfoUIList.SetElementAmount(5); if (sideInfoList != null) { sideInfoList.SetElementAmount(5); } for (int i = 0; i < 5; i++) { GameObject gameObject = baseInfoUIList.GetElemenet(i).gameObject; GameObject gameObject2 = equipInfoUIList.GetElemenet(i).gameObject; GameObject gameObject3 = null; if (sideInfoList != null) { gameObject3 = sideInfoList.GetElemenet(i).gameObject; } if (i < heroList.get_Count()) { HeroKDA heroKDA = heroList.get_Item(i); HeroInfoItem value = new HeroInfoItem(listCamp, i, heroKDA, gameObject, gameObject2); if (gameObject3 != null) { HeroInfoSideItem value2 = new HeroInfoSideItem(listCamp, heroKDA, i, gameObject3); this._heroWrapSideDict.Add(heroKDA.actorHero.handle.ObjID, value2); } this._heroWrapDict.Add(heroKDA.actorHero.handle.ObjID, value); } else { HeroInfoItem.MakeEmpty(gameObject, gameObject2); if (sideInfoList != null) { HeroInfoSideItem.MakeEmpty(gameObject3); } } } }
private void OnSkillCDChanged(ref DefaultSkillEventParam _param) { if (this._heroInfoHud != null && _param.actor.handle.ObjID == this._heroInfoHud.PickedHeroID) { this._heroInfoHud.TheSkillHud.ValidateCD(_param.slot); } HeroInfoItem heroInfoItem = null; if (this._heroWrapDict.TryGetValue(_param.actor.handle.ObjID, out heroInfoItem)) { heroInfoItem.ValidateCD(_param.slot, _param.actor); } if (WatchForm.IsNeedShowCampMidInterface()) { HeroInfoSideItem heroInfoSideItem = null; if (this._heroWrapSideDict.TryGetValue(_param.actor.handle.ObjID, out heroInfoSideItem) && _param.slot == SkillSlotType.SLOT_SKILL_3) { heroInfoSideItem.ValidateSkill3(); } } }