// Token: 0x06010A0F RID: 68111 RVA: 0x00452154 File Offset: 0x00450354 private void CreateSpineGraphic(ConfigDataSoldierInfo soldierInfo, bool isGet, int soldierSkinId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateSpineGraphicConfigDataSoldierInfoBooleanInt32_hotfix != null) { this.m_CreateSpineGraphicConfigDataSoldierInfoBooleanInt32_hotfix.call(new object[] { this, soldierInfo2, isGet, soldierSkinId }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataSoldierInfo soldierInfo = soldierInfo2; this.DestroySpineGraphic(); if (soldierInfo == null) { return; } float num = (float)soldierInfo.UI_ModelScale * 0.01f; Vector2 position = new Vector2((float)soldierInfo.UI_ModelOffsetX, (float)soldierInfo.UI_ModelOffsetY); this.m_graphic = new UISpineGraphic(); if (soldierSkinId != 0) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataSoldierSkinInfo configDataSoldierSkinInfo = configDataLoader.GetConfigDataSoldierSkinInfo(soldierSkinId); int skinResourceId = configDataSoldierSkinInfo.SpecifiedSoldier.Find((Soldier2SkinResource item) => item.SoldierId == soldierInfo.ID).SkinResourceId; ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = configDataLoader.GetConfigDataModelSkinResourceInfo(skinResourceId); this.m_graphic.Create(configDataModelSkinResourceInfo.Model); } else { this.m_graphic.Create(soldierInfo.Model); } this.m_graphic.SetParent(this.m_soldierGrapgic); this.m_graphic.SetDirection(1); this.m_graphic.SetPosition(position); this.m_graphic.SetScale(num); this.m_graphic.SetRectTransformSize(new Vector2(500f / num, 500f / num)); this.m_graphic.SetReplaceAnimations(soldierInfo.ReplaceAnims); this.m_graphic.PlayAnimation("idle", true, 0); if (!isGet) { this.m_graphic.SetColor(UIUtility.MyGrayColor); } this.m_graphic.ForceUpdate(); }
// Token: 0x060097EF RID: 38895 RVA: 0x002B5D94 File Offset: 0x002B3F94 public void UpdateGraphics() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateGraphics_hotfix != null) { this.m_UpdateGraphics_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (this.m_hero == null) { return; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; bool flag = false; ConfigDataJobConnectionInfo jobConnectionInfo = this.m_hero.GetActiveJob().JobConnectionInfo; if (jobConnectionInfo != null) { string heroModelAssetPath = UIUtility.GetHeroModelAssetPath(this.m_hero); flag = this.UpdateGraphic(0, heroModelAssetPath, (float)jobConnectionInfo.BF_ModelScale * 0.01f, jobConnectionInfo.ReplaceAnims); } ConfigDataSoldierInfo selectedSoldierInfo = this.m_hero.SelectedSoldierInfo; if (selectedSoldierInfo != null) { ConfigDataModelSkinResourceInfo selectedSoldierModelSkinResourceInfo = this.m_hero.GetSelectedSoldierModelSkinResourceInfo(configDataLoader); string text = string.Empty; if (selectedSoldierModelSkinResourceInfo != null) { text = selectedSoldierModelSkinResourceInfo.Model; } if (string.IsNullOrEmpty(text)) { text = selectedSoldierInfo.Model; } for (int i = 1; i <= this.m_soldierCount; i++) { flag |= this.UpdateGraphic(i, text, (float)selectedSoldierInfo.BF_ModelScale * 0.01f, selectedSoldierInfo.ReplaceAnims); } } if (flag) { this.PlayAnimation("idle", true); } }
public static int get_m_rangeSkillInfo(IntPtr l) { int result; try { ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = (ConfigDataModelSkinResourceInfo)LuaObject.checkSelf(l); LuaObject.pushValue(l, true); LuaObject.pushValue(l, configDataModelSkinResourceInfo.m_rangeSkillInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int constructor(IntPtr l) { int result; try { ConfigDataModelSkinResourceInfo o = new ConfigDataModelSkinResourceInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, o); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetModelSkinResourceInfo(IntPtr l) { int result; try { HeroJob heroJob = (HeroJob)LuaObject.checkSelf(l); ConfigDataModelSkinResourceInfo modelSkinResourceInfo = heroJob.GetModelSkinResourceInfo(); LuaObject.pushValue(l, true); LuaObject.pushValue(l, modelSkinResourceInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x060136A2 RID: 79522 RVA: 0x004F2C88 File Offset: 0x004F0E88 protected void SetSoldierDefaultAndSkinItemInfo(string skinName, List <Soldier2SkinResource> soldier2SkinResList) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSoldierDefaultAndSkinItemInfoStringList ` 1_hotfix != null) { this.m_SetSoldierDefaultAndSkinItemInfoStringList ` 1_hotfix.call(new object[] { this, skinName, soldier2SkinResList }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (soldier2SkinResList.Count > 2) { global::Debug.LogError("StoreSoldierDetailUIController::SetSoldierSkinSpineAnim::Too Many Spine Need !"); return; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; for (int i = 0; i < this.m_soldierDefaultSkinItemCtrlList.Count; i++) { if (i < soldier2SkinResList.Count) { Soldier2SkinResource soldier2SkinResource = soldier2SkinResList[i]; ConfigDataSoldierInfo configDataSoldierInfo = configDataLoader.GetConfigDataSoldierInfo(soldier2SkinResource.SoldierId); this.m_soldierDefaultSkinItemCtrlList[i].m_nameText.text = configDataSoldierInfo.Name; this.SetSpineAnim(configDataSoldierInfo.Model, ref this.m_soldierDefaultSkinItemCtrlList[i].m_soldierSkinGraphic, this.m_soldierDefaultSkinItemCtrlList[i].m_spineObj, configDataSoldierInfo); this.m_soldierDefaultSkinItemCtrlList[i].m_itemStateCtrl.SetToUIState((!projectLPlayerContext.IsExistSoliderId(soldier2SkinResource.SoldierId)) ? "Lock" : "Normal", false, true); ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = configDataLoader.GetConfigDataModelSkinResourceInfo(soldier2SkinResource.SkinResourceId); this.m_soldierBuySkinItemCtrlList[i].m_nameText.text = configDataModelSkinResourceInfo.Name; this.SetSpineAnim(configDataModelSkinResourceInfo.Model, ref this.m_soldierBuySkinItemCtrlList[i].m_soldierSkinGraphic, this.m_soldierBuySkinItemCtrlList[i].m_spineObj, configDataSoldierInfo); this.m_soldierBuySkinItemCtrlList[i].m_itemStateCtrl.SetToUIState("Normal", false, true); this.m_soldierDefaultSkinItemCtrlList[i].SetActive(true); this.m_soldierBuySkinItemCtrlList[i].SetActive(true); } else { this.m_soldierDefaultSkinItemCtrlList[i].SetActive(false); this.m_soldierBuySkinItemCtrlList[i].SetActive(false); } } }
// Token: 0x06008BE8 RID: 35816 RVA: 0x0028D264 File Offset: 0x0028B464 public void CreateGraphic(ConfigDataJobConnectionInfo jobConnectionInfo, ConfigDataModelSkinResourceInfo heroSkinResInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreateGraphicConfigDataJobConnectionInfoConfigDataModelSkinResourceInfo_hotfix != null) { this.m_CreateGraphicConfigDataJobConnectionInfoConfigDataModelSkinResourceInfo_hotfix.call(new object[] { this, jobConnectionInfo, heroSkinResInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (jobConnectionInfo == null) { return; } string text = string.Empty; if (heroSkinResInfo != null) { text = heroSkinResInfo.Model; } if (string.IsNullOrEmpty(text)) { text = jobConnectionInfo.Model; } if (this.m_graphic != null && this.m_graphic.AssetName == text) { return; } this.DestroyGraphic(); this.m_graphic = this.m_clientWorld.CreateGraphic(text, 0.6f); if (this.m_graphic != null) { this.m_graphic.SetReplaceAnimations(jobConnectionInfo.ReplaceAnims); this.m_graphic.SetName("Player"); this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation); this.m_graphic.SetSortingOrder(2); } this.Locate(this.m_position, this.m_direction); this.PlayAnimation("idle", true); }
public static int set_m_meleeSkillInfo(IntPtr l) { int result; try { ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = (ConfigDataModelSkinResourceInfo)LuaObject.checkSelf(l); ConfigDataSkillInfo meleeSkillInfo; LuaObject.checkType <ConfigDataSkillInfo>(l, 2, out meleeSkillInfo); configDataModelSkinResourceInfo.m_meleeSkillInfo = meleeSkillInfo; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_Skill_ID(IntPtr l) { int result; try { ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = (ConfigDataModelSkinResourceInfo)LuaObject.checkSelf(l); int skill_ID; LuaObject.checkType(l, 2, out skill_ID); configDataModelSkinResourceInfo.Skill_ID = skill_ID; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int set_CombatModel(IntPtr l) { int result; try { ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = (ConfigDataModelSkinResourceInfo)LuaObject.checkSelf(l); string combatModel; LuaObject.checkType(l, 2, out combatModel); configDataModelSkinResourceInfo.CombatModel = combatModel; LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x06013736 RID: 79670 RVA: 0x004F4DFC File Offset: 0x004F2FFC protected void SetSoldierSpineAnim(ConfigDataSoldierSkinInfo soldierSkinInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetSoldierSpineAnimConfigDataSoldierSkinInfo_hotfix != null) { this.m_SetSoldierSpineAnimConfigDataSoldierSkinInfo_hotfix.call(new object[] { this, soldierSkinInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = this.m_configDataLoader.GetConfigDataModelSkinResourceInfo(soldierSkinInfo.ShowInListSkinResInfo[0].SkinResourceId); ConfigDataSoldierInfo configDataSoldierInfo = this.m_configDataLoader.GetConfigDataSoldierInfo(soldierSkinInfo.ShowInListSkinResInfo[0].SoldierId); string model = configDataModelSkinResourceInfo.Model; float scale = (float)configDataSoldierInfo.UI_ModelScale * 0.012f; Vector2 offset = new Vector2((float)configDataSoldierInfo.UI_ModelOffsetX + (float)Math.Abs(configDataSoldierInfo.UI_ModelOffsetX) * 0.2f, (float)configDataSoldierInfo.UI_ModelOffsetY + (float)Math.Abs(configDataSoldierInfo.UI_ModelOffsetY) * 0.4f); HeroDetailUIController.CreateSpineGraphic(ref this.m_soldierGraphic, model, this.m_spineAnimObj, 1, offset, scale, configDataSoldierInfo.ReplaceAnims); }
public static int GetSoldierModelSkinResourceInfo_s(IntPtr l) { int result; try { IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 1, out configDataLoader); int soldierSkinId; LuaObject.checkType(l, 2, out soldierSkinId); int soldierId; LuaObject.checkType(l, 3, out soldierId); ConfigDataModelSkinResourceInfo soldierModelSkinResourceInfo = BattleUtility.GetSoldierModelSkinResourceInfo(configDataLoader, soldierSkinId, soldierId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, soldierModelSkinResourceInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public static int GetHeroModelSkinResourceInfo_s(IntPtr l) { int result; try { IConfigDataLoader configDataLoader; LuaObject.checkType <IConfigDataLoader>(l, 1, out configDataLoader); int heroSkinId; LuaObject.checkType(l, 2, out heroSkinId); int activeJobRelatedId; LuaObject.checkType(l, 3, out activeJobRelatedId); ConfigDataModelSkinResourceInfo heroModelSkinResourceInfo = BattleUtility.GetHeroModelSkinResourceInfo(configDataLoader, heroSkinId, activeJobRelatedId); LuaObject.pushValue(l, true); LuaObject.pushValue(l, heroModelSkinResourceInfo); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
// Token: 0x0600B3DD RID: 46045 RVA: 0x0031AF2C File Offset: 0x0031912C public void InitSoldierItem(ConfigDataSoldierInfo soldierInfo, ConfigDataModelSkinResourceInfo soldierSkinResInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitSoldierItemConfigDataSoldierInfoConfigDataModelSkinResourceInfo_hotfix != null) { this.m_InitSoldierItemConfigDataSoldierInfoConfigDataModelSkinResourceInfo_hotfix.call(new object[] { this, soldierInfo, soldierSkinResInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.SoldierInfo = soldierInfo; this.m_solderSkinResInfo = soldierSkinResInfo; this.m_soldierIconImg.sprite = AssetUtility.Instance.GetSprite(this.SoldierInfo.m_armyInfo.Icon); this.m_typeBgImage.gameObject.SetActive(this.SoldierInfo.IsMelee); this.m_typeBgImage2.gameObject.SetActive(!this.SoldierInfo.IsMelee); this.m_soldierRangeText.text = this.SoldierInfo.BF_AttackDistance.ToString(); this.m_soldierMoveText.text = this.SoldierInfo.BF_MovePoint.ToString(); this.m_soldierNameText.text = this.SoldierInfo.Name; this.CreateSpineGraphic(); }
// Token: 0x060136D9 RID: 79577 RVA: 0x004F39BC File Offset: 0x004F1BBC protected override bool IsNeedLoadDynamicRes() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null) { return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[] { this }))); } BJLuaObjHelper.IsSkipLuaHotfix = false; base.ClearAssetList(); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataSoldierSkinInfo configDataSoldierSkinInfo = configDataLoader.GetConfigDataSoldierSkinInfo(this.m_soldierSkinConfigId); base.CollectSpriteAsset(configDataSoldierSkinInfo.Icon); foreach (Soldier2SkinResource soldier2SkinResource in configDataSoldierSkinInfo.SpecifiedSoldier) { ConfigDataSoldierInfo configDataSoldierInfo = configDataLoader.GetConfigDataSoldierInfo(soldier2SkinResource.SoldierId); base.CollectAsset(configDataSoldierInfo.Model); ConfigDataModelSkinResourceInfo configDataModelSkinResourceInfo = configDataLoader.GetConfigDataModelSkinResourceInfo(soldier2SkinResource.SkinResourceId); base.CollectAsset(configDataModelSkinResourceInfo.Model); } return(this.m_assets.Count > 0); }
// Token: 0x0600D7A1 RID: 55201 RVA: 0x003AADC4 File Offset: 0x003A8FC4 public void InitSoldierDesc(ConfigDataSoldierInfo soldierInfo, Hero hero) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitSoldierDescConfigDataSoldierInfoHero_hotfix != null) { this.m_InitSoldierDescConfigDataSoldierInfoHero_hotfix.call(new object[] { this, soldierInfo, hero }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (soldierInfo == null || hero == null) { return; } IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; HeroPropertyComputer heroPropertyComputer = new HeroPropertyComputer(); heroPropertyComputer.Init(configDataLoader); heroPropertyComputer.ComputeSoldierCommandProperties(hero, soldierInfo); this.ShowPanel(); string text = string.Empty; ConfigDataModelSkinResourceInfo soldierModelSkinResourceInfo = BattleUtility.GetSoldierModelSkinResourceInfo(configDataLoader, hero.GetSoldierSkinId(hero.SelectedSoldierId), hero.SelectedSoldierId); if (soldierModelSkinResourceInfo != null) { text = soldierModelSkinResourceInfo.Model; } if (string.IsNullOrEmpty(text)) { text = soldierInfo.Model; } this.SetSoldierDetailPanel(soldierInfo, heroPropertyComputer, text); }