//--------------------------------------------------------
|
// [Author]: YYL
|
// [ Date ]: 2026年3月26日
|
//--------------------------------------------------------
|
|
using System.Collections.Generic;
|
using System;
|
using UnityEngine;
|
using LitJson;
|
|
public partial class ActHeroAppearArtConfig : ConfigBase<int, ActHeroAppearArtConfig>
|
{
|
static ActHeroAppearArtConfig()
|
{
|
// 访问过静态构造函数
|
visit = true;
|
}
|
|
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)
|
{
|
int key = GetKey(_key);
|
return key;
|
}
|
|
public override void LoadConfig(string input)
|
{
|
try {
|
string[] tables = input.Split('\t');
|
int.TryParse(tables[0],out HeroID);
|
|
HeroNameColor = JsonMapper.ToObject<int[][]>(tables[1].Replace("(", "[").Replace(")", "]"));
|
|
CallBubbleItems = JsonMapper.ToObject<int[][]>(tables[2].Replace("(", "[").Replace(")", "]"));
|
|
EntryBgImage = tables[3];
|
|
EntryTitleText = tables[4];
|
|
PopBgImage = tables[5];
|
|
PopTitleBgImage = tables[6];
|
|
PopTitleImage = tables[7];
|
|
PopInfoBgImage = tables[8];
|
|
int.TryParse(tables[9],out PopInfoBgUIEffectId);
|
|
PopInfoText = tables[10];
|
|
if (tables[11].Contains("["))
|
{
|
PopInfoColor = JsonMapper.ToObject<int[]>(tables[11]);
|
}
|
else
|
{
|
string[] PopInfoColorStringArray = tables[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
PopInfoColor = new int[PopInfoColorStringArray.Length];
|
for (int i=0;i<PopInfoColorStringArray.Length;i++)
|
{
|
int.TryParse(PopInfoColorStringArray[i],out PopInfoColor[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];
|
}
|
catch (Exception exception)
|
{
|
Debug.LogError(exception);
|
}
|
}
|
}
|