| | |
| | | typeof(ActBillboardAwardConfig),
|
| | | typeof(ActHeroAppearArtConfig),
|
| | | typeof(ActHeroAppearConfig),
|
| | | typeof(ActHeroAppearSkinArtConfig),
|
| | | typeof(ActHeroAppearStarConfig),
|
| | | typeof(ActHeroReturnArtConfig),
|
| | | typeof(ActHeroReturnSkinArtConfig),
|
| | | typeof(ActLunhuidianTypeConfig),
|
| | | typeof(ActSignAwardConfig),
|
| | | typeof(ADAwardConfig),
|
| | |
| | | ClearConfigDictionary<ActHeroAppearArtConfig>();
|
| | | // 清空 ActHeroAppearConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearConfig>();
|
| | | // 清空 ActHeroAppearSkinArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearSkinArtConfig>();
|
| | | // 清空 ActHeroAppearStarConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearStarConfig>();
|
| | | // 清空 ActHeroReturnArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroReturnArtConfig>();
|
| | | // 清空 ActHeroReturnSkinArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroReturnSkinArtConfig>();
|
| | | // 清空 ActLunhuidianTypeConfig 字典
|
| | | ClearConfigDictionary<ActLunhuidianTypeConfig>();
|
| | | // 清空 ActSignAwardConfig 字典
|
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2026年3月26日 |
| | | // [ Date ]: Tuesday, March 31, 2026 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int HeroID; |
| | | public int[][] HeroNameColor; |
| | | public int[][] CallBubbleItems; |
| | | public string EntryBgImage; |
| | | public string EntryTitleText; |
| | | public string PopBgImage; |
| | | public string PopTitleBgImage; |
| | | public string PopTitleImage; |
| | | public string PopInfoBgImage; |
| | | public int PopInfoBgUIEffectId; |
| | | public string PopInfoText; |
| | | public int[] PopInfoColor; |
| | | public string MainBgImage; |
| | | public string MainTitleImage; |
| | | public int MainSkinID; |
| | | public string StarUpHeroImage; |
| | | public string GiftBgImage; |
| | | public string GiftHeroImage; |
| | | public string RankAwardHeroImage; |
| | | public string CheckInBgImage; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | |
| | | |
| | | CallBubbleItems = JsonMapper.ToObject<int[][]>(tables[2].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | EntryBgImage = tables[3]; |
| | | EntryTitleText = tables[3]; |
| | | |
| | | EntryTitleText = tables[4]; |
| | | int.TryParse(tables[4],out PopInfoBgUIEffectId); |
| | | |
| | | PopBgImage = tables[5]; |
| | | PopInfoText = tables[5]; |
| | | |
| | | PopTitleBgImage = tables[6]; |
| | | |
| | | PopTitleImage = tables[7]; |
| | | |
| | | PopInfoBgImage = tables[8]; |
| | | |
| | | int.TryParse(tables[9],out PopInfoBgUIEffectId); |
| | | |
| | | PopInfoText = tables[10]; |
| | | |
| | | if (tables[11].Contains("[")) |
| | | if (tables[6].Contains("[")) |
| | | { |
| | | PopInfoColor = JsonMapper.ToObject<int[]>(tables[11]); |
| | | PopInfoColor = JsonMapper.ToObject<int[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] PopInfoColorStringArray = tables[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] PopInfoColorStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | PopInfoColor = new int[PopInfoColorStringArray.Length]; |
| | | for (int i=0;i<PopInfoColorStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | MainBgImage = tables[12]; |
| | | |
| | | MainTitleImage = tables[13]; |
| | | |
| | | int.TryParse(tables[14],out MainSkinID); |
| | | |
| | | StarUpHeroImage = tables[15]; |
| | | |
| | | GiftBgImage = tables[16]; |
| | | |
| | | GiftHeroImage = tables[17]; |
| | | |
| | | RankAwardHeroImage = tables[18]; |
| | | |
| | | CheckInBgImage = tables[19]; |
| | | int.TryParse(tables[7],out MainSkinID); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2026年3月26日 |
| | | // [ Date ]: 2026年3月31日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int HeroID; |
| | | public int[][] HeroNameColor; |
| | | public int[][] CallBubbleItems; |
| | | public string EntryBgImage; |
| | | public string EntryTitleText; |
| | | public string PopBgImage; |
| | | public string PopTitleBgImage; |
| | | public string PopTitleImage; |
| | | public string PopInfoBgImage; |
| | | public int PopInfoBgUIEffectId; |
| | | public string PopInfoText; |
| | | public int[] PopInfoColor; |
| | | public string MainBgImage; |
| | | public string MainTitleImage; |
| | | public int MainSkinID; |
| | | public string StarUpHeroImage; |
| | | public string GiftBgImage; |
| | | public string GiftHeroImage; |
| | | public string RankAwardHeroImage; |
| | | public string CheckInBgImage; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | |
| | | |
| | | CallBubbleItems = JsonMapper.ToObject<int[][]>(tables[2].Replace("(", "[").Replace(")", "]")); |
| | | |
| | | EntryBgImage = tables[3]; |
| | | EntryTitleText = tables[3]; |
| | | |
| | | EntryTitleText = tables[4]; |
| | | int.TryParse(tables[4],out PopInfoBgUIEffectId); |
| | | |
| | | PopBgImage = tables[5]; |
| | | PopInfoText = tables[5]; |
| | | |
| | | PopTitleBgImage = tables[6]; |
| | | |
| | | PopTitleImage = tables[7]; |
| | | |
| | | PopInfoBgImage = tables[8]; |
| | | |
| | | int.TryParse(tables[9],out PopInfoBgUIEffectId); |
| | | |
| | | PopInfoText = tables[10]; |
| | | |
| | | if (tables[11].Contains("[")) |
| | | if (tables[6].Contains("[")) |
| | | { |
| | | PopInfoColor = JsonMapper.ToObject<int[]>(tables[11]); |
| | | PopInfoColor = JsonMapper.ToObject<int[]>(tables[6]); |
| | | } |
| | | else |
| | | { |
| | | string[] PopInfoColorStringArray = tables[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] PopInfoColorStringArray = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | PopInfoColor = new int[PopInfoColorStringArray.Length]; |
| | | for (int i=0;i<PopInfoColorStringArray.Length;i++) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | MainBgImage = tables[12]; |
| | | |
| | | MainTitleImage = tables[13]; |
| | | |
| | | int.TryParse(tables[14],out MainSkinID); |
| | | |
| | | StarUpHeroImage = tables[15]; |
| | | |
| | | GiftBgImage = tables[16]; |
| | | |
| | | GiftHeroImage = tables[17]; |
| | | |
| | | RankAwardHeroImage = tables[18]; |
| | | |
| | | CheckInBgImage = tables[19]; |
| | | int.TryParse(tables[7],out MainSkinID); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | |
| | | xbTypeInfo = HappyXBModel.Instance.GetXBInfoByType(treasureType); |
| | | if (xbTypeInfo == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.MainBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutCallBG_", heroID.ToString())); |
| | | |
| | | lhController.Create(skinID, 1, motionName: "", isLh: true); |
| | | uiHeroController.Create(skinID, modleSize); |
| | |
| | | var skinConfig = HeroSkinConfig.Get(skinID); |
| | | if (skinConfig == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.EntryBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutEntryBg_", heroID.ToString())); |
| | | manager.SetHeroSquareIcon(heroImage, skinConfig.SquareIcon); |
| | | titleText.text = artConfig.EntryTitleText; |
| | | } |
| | |
| | | var list = ActSignAwardConfig.GetDayNumSortList(templateID); |
| | | if (list == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.CheckInBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutCheckInBG_", heroID.ToString())); |
| | | |
| | | |
| | | for (int i = 0; i < cells.Length; i++) |
| | |
| | | var artConfig = ActHeroAppearArtConfig.Get(heroID); |
| | | if (artConfig == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.GiftBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutGiftBG_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | heroImage.SetSprite(artConfig.GiftHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroDebutGiftHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | OnSecondEvent(); |
| | |
| | | uiEffectPlayer.effectId = artConfig.PopInfoBgUIEffectId; |
| | | uiEffectPlayer.Play(); |
| | | |
| | | bgImage.SetSprite(artConfig.PopBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutPopBG_", heroID.ToString())); |
| | | bgImage.SetNativeSize(); |
| | | |
| | | qaulityBgImage.SetSprite($"HeroDebutPopQaulityBG{heroConfig.Quality}"); |
| | |
| | | qaulityImage.SetSprite($"HeroDebutPopQaulity{heroConfig.Quality}"); |
| | | qaulityImage.SetNativeSize(); |
| | | |
| | | titleBgImage.SetSprite(artConfig.PopTitleBgImage); |
| | | titleBgImage.SetSprite(StringUtility.Concat("HeroDebutPopTitleBG_", heroID.ToString())); |
| | | titleBgImage.SetNativeSize(); |
| | | |
| | | titleImage.SetSprite(artConfig.PopTitleImage); |
| | | titleImage.SetSprite(StringUtility.Concat("HeroDebutPopTitle_", heroID.ToString())); |
| | | titleImage.SetNativeSize(); |
| | | |
| | | infoBgImage.SetSprite(artConfig.PopInfoBgImage); |
| | | infoBgImage.SetSprite(StringUtility.Concat("HeroDebutPopInfoBG_", heroID.ToString())); |
| | | infoBgImage.SetNativeSize(); |
| | | |
| | | infoText.text = artConfig.PopInfoText; |
| | |
| | | public void Display() |
| | | { |
| | | int heroID = manager.GetCurrentDisplayCallHeroId(); |
| | | var artConfig = ActHeroAppearArtConfig.Get(heroID); |
| | | if (artConfig == null) return; |
| | | |
| | | if (functionOrder == 0) |
| | | { |
| | |
| | | else |
| | | { |
| | | CreateAwardScroller(); |
| | | heroImage.SetSprite(artConfig.RankAwardHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroDebutRankAwardHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | DisplayAwardMyRank(); |
| | | } |
| | |
| | | if (list?.Count <= index) return; |
| | | |
| | | var skinID = list[index]; |
| | | var skinArtConfig = ActHeroAppearSkinArtConfig.Get(skinID); |
| | | if (skinArtConfig == null) return; |
| | | |
| | | tabBgImage.SetSprite(skinArtConfig.TabInfoImage); |
| | | tabBgImage.SetSprite(StringUtility.Concat("HeroDebutSkinTabInfo_", skinID.ToString())); |
| | | tabBgImage.SetNativeSize(); |
| | | maskRect.SetActive(manager.currentChooseSkinID != skinID); |
| | | chooseRect.SetActive(manager.currentChooseSkinID == skinID); |
| | |
| | | if (heroConfig == null) return; |
| | | |
| | | int skinID = manager.currentChooseSkinID; |
| | | var skinArtConfig = ActHeroAppearSkinArtConfig.Get(skinID); |
| | | if (skinArtConfig == null) return; |
| | | |
| | | var heroSkinAttrConfig = HeroSkinAttrConfig.Get(skinID); |
| | | if (heroSkinAttrConfig == null) return; |
| | |
| | | if (!RechargeManager.Instance.TryGetRechargeCount(ctgId, out var rechargeCount)) return; |
| | | if (!RechargeManager.Instance.TryGetRechargeItem(ctgId, out var rechargeItemList)) return; |
| | | |
| | | bgImage.SetTexture2D(skinArtConfig.BGImage); |
| | | bgImage.SetTexture2D(StringUtility.Concat("HeroDebutSkinBG_", skinID.ToString())); |
| | | |
| | | heroNameImage.SetSprite(skinArtConfig.HeroNameImage); |
| | | heroNameImage.SetSprite(StringUtility.Concat("HeroDebutSkinHeroName_", skinID.ToString())); |
| | | heroNameImage.SetNativeSize(); |
| | | |
| | | skinInfoImage.SetSprite(skinArtConfig.SkinInfoImage); |
| | | skinInfoImage.SetSprite(StringUtility.Concat("HeroDebutSkinInfo_", skinID.ToString())); |
| | | skinInfoImage.SetNativeSize(); |
| | | |
| | | awardBgImage.SetSprite(skinArtConfig.AwardBGImage); |
| | | awardBgImage.SetSprite(StringUtility.Concat("HeroDebutSkinAwardBG_", skinID.ToString())); |
| | | awardBgImage.SetNativeSize(); |
| | | |
| | | uiHeroController.Create(skinID, modelScale); |
| | |
| | | heroNameText.text = heroConfig.Name; |
| | | manager.SetGradientTextColor(heroNameText, artConfig.HeroNameColor); |
| | | |
| | | heroImage.SetSprite(artConfig.StarUpHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroDebutStarUpHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | CreateScroller(config, heroConfig); |
| | |
| | | if (artConfig == null) return; |
| | | |
| | | int skinID = manager.GetDefaultSkinID(heroID); |
| | | var skinConfig = HeroSkinConfig.Get(skinID); |
| | | if (skinConfig == null) return; |
| | | |
| | | var skinArtConfig = ActHeroAppearSkinArtConfig.Get(artConfig.MainSkinID); |
| | | if (skinArtConfig == null) return; |
| | | |
| | | uiHeroController.Create(skinID, modleSize); |
| | | uiHeroController.transform.localScale = new Vector3(-modleSize, modleSize, modleSize); |
| | |
| | | |
| | | callRedImage.SetActive(!manager.IsShopVisitedToday || manager.HasGiftCanHave()); |
| | | |
| | | bgImage.SetSprite(artConfig.MainBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroDebutMainBG_", heroID.ToString())); |
| | | bgImage.SetNativeSize(); |
| | | |
| | | titleImage.SetSprite(artConfig.MainTitleImage); |
| | | titleImage.SetSprite(StringUtility.Concat("HeroDebutMainTitle_", heroID.ToString())); |
| | | titleImage.SetNativeSize(); |
| | | |
| | | skinImage.SetSprite(skinArtConfig.MainSkinBuyBgImage); |
| | | skinImage.SetSprite(StringUtility.Concat("HeroDebutSkinEnterBG_", artConfig.MainSkinID.ToString())); |
| | | OnSecondEvent(); |
| | | } |
| | | |
| | |
| | | topTransform.SetActive(!canChooseHero || isChooseHero); |
| | | heroInfoTransform.SetActive(!canChooseHero || isChooseHero); |
| | | |
| | | bgImage.SetSprite(artConfig.MainBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnCallBG_", heroID.ToString())); |
| | | |
| | | lhController.Create(skinID, 1, motionName: "", isLh: true); |
| | | uiHeroController.Create(skinID, modleSize); |
| | |
| | | var skinConfig = HeroSkinConfig.Get(skinID); |
| | | if (skinConfig == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.EntryBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnEntryBg_", heroID.ToString())); |
| | | manager.SetHeroSquareIcon(heroImage, skinConfig.SquareIcon); |
| | | titleText.text = artConfig.EntryTitleText; |
| | | } |
| | |
| | | var list = ActSignAwardConfig.GetDayNumSortList(templateID); |
| | | if (list == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.CheckInBgImage); |
| | | |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnCheckInBG_", heroID.ToString())); |
| | | for (int i = 0; i < cells.Length; i++) |
| | | { |
| | | if (i < list.Count) |
| | |
| | | var artConfig = ActHeroReturnArtConfig.Get(heroID); |
| | | if (artConfig == null) return; |
| | | |
| | | bgImage.SetSprite(artConfig.GiftBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnGiftBG_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | heroImage.SetSprite(artConfig.GiftHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroReturnGiftHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | OnSecondEvent(); |
| | |
| | | uiEffectPlayer.effectId = artConfig.PopInfoBgUIEffectId; |
| | | uiEffectPlayer.Play(); |
| | | |
| | | bgImage.SetSprite(artConfig.PopBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnPopBG_", heroID.ToString())); |
| | | bgImage.SetNativeSize(); |
| | | |
| | | qaulityBgImage.SetSprite($"HeroDebutPopQaulityBG{heroConfig.Quality}"); |
| | |
| | | qaulityImage.SetSprite($"HeroDebutPopQaulity{heroConfig.Quality}"); |
| | | qaulityImage.SetNativeSize(); |
| | | |
| | | titleBgImage.SetSprite(artConfig.PopTitleBgImage); |
| | | titleBgImage.SetSprite(StringUtility.Concat("HeroReturnPopTitleBG_", heroID.ToString())); |
| | | titleBgImage.SetNativeSize(); |
| | | |
| | | titleImage.SetSprite(artConfig.PopTitleImage); |
| | | titleImage.SetSprite(StringUtility.Concat("HeroReturnPopTitle_", heroID.ToString())); |
| | | titleImage.SetNativeSize(); |
| | | |
| | | infoBgImage.SetSprite(artConfig.PopInfoBgImage); |
| | | infoBgImage.SetSprite(StringUtility.Concat("HeroReturnPopInfoBG_", heroID.ToString())); |
| | | infoBgImage.SetNativeSize(); |
| | | |
| | | infoText.text = artConfig.PopInfoText; |
| | |
| | | public void Display() |
| | | { |
| | | int heroID = manager.GetFirstHeroId(); |
| | | var artConfig = ActHeroReturnArtConfig.Get(heroID); |
| | | if (artConfig == null) return; |
| | | |
| | | if (functionOrder == 0) |
| | | { |
| | |
| | | else |
| | | { |
| | | CreateAwardScroller(); |
| | | heroImage.SetSprite(artConfig.RankAwardHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroReturnRankAwardHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | DisplayAwardMyRank(); |
| | | } |
| | |
| | | if (list?.Count <= index) return; |
| | | |
| | | var skinID = list[index]; |
| | | var skinArtConfig = ActHeroReturnSkinArtConfig.Get(skinID); |
| | | if (skinArtConfig == null) return; |
| | | |
| | | tabBgImage.SetSprite(skinArtConfig.TabInfoImage); |
| | | tabBgImage.SetSprite(StringUtility.Concat("HeroReturnSkinTabInfo_", skinID.ToString())); |
| | | tabBgImage.SetNativeSize(); |
| | | maskRect.SetActive(manager.currentChooseSkinID != skinID); |
| | | chooseRect.SetActive(manager.currentChooseSkinID == skinID); |
| | |
| | | if (heroConfig == null) return; |
| | | |
| | | int skinID = manager.currentChooseSkinID; |
| | | var skinArtConfig = ActHeroReturnSkinArtConfig.Get(skinID); |
| | | if (skinArtConfig == null) return; |
| | | |
| | | var heroSkinAttrConfig = HeroSkinAttrConfig.Get(skinID); |
| | | if (heroSkinAttrConfig == null) return; |
| | |
| | | if (!RechargeManager.Instance.TryGetRechargeCount(ctgId, out var rechargeCount)) return; |
| | | if (!RechargeManager.Instance.TryGetRechargeItem(ctgId, out var rechargeItemList)) return; |
| | | |
| | | bgImage.SetTexture2D(skinArtConfig.BGImage); |
| | | bgImage.SetTexture2D(StringUtility.Concat("HeroReturnSkinBG_", skinID.ToString())); |
| | | |
| | | heroNameImage.SetSprite(skinArtConfig.HeroNameImage); |
| | | heroNameImage.SetSprite(StringUtility.Concat("HeroReturnSkinHeroName_", skinID.ToString())); |
| | | heroNameImage.SetNativeSize(); |
| | | |
| | | skinInfoImage.SetSprite(skinArtConfig.SkinInfoImage); |
| | | skinInfoImage.SetSprite(StringUtility.Concat("HeroReturnSkinInfo_", skinID.ToString())); |
| | | skinInfoImage.SetNativeSize(); |
| | | |
| | | awardBgImage.SetSprite(skinArtConfig.AwardBGImage); |
| | | awardBgImage.SetSprite(StringUtility.Concat("HeroReturnSkinAwardBG_", skinID.ToString())); |
| | | awardBgImage.SetNativeSize(); |
| | | |
| | | uiHeroController.Create(skinID, modelScale); |
| | |
| | | heroNameText.text = heroConfig.Name; |
| | | manager.SetGradientTextColor(heroNameText, artConfig.HeroNameColor); |
| | | |
| | | heroImage.SetSprite(artConfig.StarUpHeroImage); |
| | | heroImage.SetSprite(StringUtility.Concat("HeroReturnStarUpHero_", heroID.ToString())); |
| | | heroImage.SetNativeSize(); |
| | | |
| | | CreateScroller(config, heroConfig); |
| | |
| | | var skinConfig = HeroSkinConfig.Get(skinID); |
| | | if (skinConfig == null) return; |
| | | |
| | | var skinArtConfig = ActHeroReturnSkinArtConfig.Get(artConfig.MainSkinID); |
| | | if (skinArtConfig == null) return; |
| | | int mainSkinID = artConfig.MainSkinID; |
| | | |
| | | if (withAnimation) |
| | | { |
| | |
| | | |
| | | seq.OnComplete(() => |
| | | { |
| | | UpdateHeroDisplay(heroID, skinID, artConfig, skinArtConfig); |
| | | UpdateHeroDisplay(heroID, skinID, artConfig, mainSkinID); |
| | | // 淡入 |
| | | bgImage.DOFade(1f, FadeDuration); |
| | | lhCanvasGroup.DOFade(1f, FadeDuration); |
| | |
| | | } |
| | | else |
| | | { |
| | | UpdateHeroDisplay(heroID, skinID, artConfig, skinArtConfig); |
| | | UpdateHeroDisplay(heroID, skinID, artConfig, mainSkinID); |
| | | CanvasGroup lhCanvasGroup = lhController.GetComponent<CanvasGroup>(); |
| | | if (lhCanvasGroup != null) |
| | | { |
| | |
| | | /// <summary> |
| | | /// 更新武将显示资源 |
| | | /// </summary> |
| | | private void UpdateHeroDisplay(int heroID, int skinID, ActHeroReturnArtConfig artConfig, ActHeroReturnSkinArtConfig skinArtConfig) |
| | | private void UpdateHeroDisplay(int heroID, int skinID, ActHeroReturnArtConfig artConfig, int mainSkinID) |
| | | { |
| | | int chosenHeroSkinID = manager.GetDefaultSkinID( |
| | | manager.LoadCallChooseHeroStateKey(manager.GetOperationHeroAppearInfo()) ? |
| | |
| | | lhController.Create(skinID, 1, motionName: "", isLh: true); |
| | | |
| | | // 更新背景 |
| | | bgImage.SetSprite(artConfig.MainBgImage); |
| | | bgImage.SetSprite(StringUtility.Concat("HeroReturnMainBG_", heroID.ToString())); |
| | | bgImage.SetNativeSize(); |
| | | |
| | | // 更新标题 |
| | | titleImage.SetSprite(artConfig.MainTitleImage); |
| | | titleImage.SetSprite(StringUtility.Concat("HeroReturnMainTitle_", heroID.ToString())); |
| | | titleImage.SetNativeSize(); |
| | | |
| | | // 更新皮肤图片 |
| | | int firstHeroID = manager.GetFirstHeroId(); |
| | | var firstHeroIDArtConfig = ActHeroReturnArtConfig.Get(firstHeroID); |
| | | if (firstHeroIDArtConfig == null) return; |
| | | var firstSkinArtConfig = ActHeroReturnSkinArtConfig.Get(firstHeroIDArtConfig.MainSkinID); |
| | | if (firstSkinArtConfig == null) return; |
| | | skinImage.SetSprite(firstSkinArtConfig.MainSkinBuyBgImage); |
| | | skinImage.SetSprite(StringUtility.Concat("HeroReturnSkinEnterBG_", firstHeroIDArtConfig.MainSkinID.ToString())); |
| | | } |
| | | |
| | | /// <summary> |