54 lines
1.3 KiB
C#
54 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using Framework;
|
|
using Gameplay.Common;
|
|
|
|
public partial class LegionManager
|
|
{
|
|
/// <summary>
|
|
/// 头像路径列表
|
|
/// </summary>
|
|
public static List<string> HeadIconList = new()
|
|
{
|
|
"Assets/Art_Out/UI/Texture/Icon/HeadPic/Icon_HeadPic_A00001.png",
|
|
"Assets/Art_Out/UI/Texture/Icon/HeadPic/Icon_HeadPic_A00002.png",
|
|
"Assets/Art_Out/UI/Texture/Icon/HeadPic/Icon_HeadPic_A00003.png",
|
|
"Assets/Art_Out/UI/Texture/Icon/HeadPic/Icon_HeadPic_A00004.png",
|
|
"Assets/Art_Out/UI/Texture/Icon/HeadPic/Icon_HeadPic_A00005.png",
|
|
};
|
|
|
|
public static int GetHeadIndex(int index)
|
|
{
|
|
return index;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 反索引获取
|
|
/// </summary>
|
|
/// <param name="index"></param>
|
|
/// <returns></returns>
|
|
public static int GetHeadListIdx(int index)
|
|
{
|
|
return index;
|
|
}
|
|
|
|
public static string GetLegionHeadPath(int idx, bool isRealIdx = false)
|
|
{
|
|
if (!isRealIdx)
|
|
{
|
|
|
|
}
|
|
|
|
return idx < HeadIconList.Count ? HeadIconList[idx] : string.Empty;
|
|
//return GLConfig.Inst.data.LegionHeadPicFrontPath;
|
|
}
|
|
|
|
public static int GetHeadListCount()
|
|
{
|
|
return HeadIconList.Count;
|
|
}
|
|
|
|
public static List<string> GetHeadIconList()
|
|
{
|
|
return HeadIconList;
|
|
}
|
|
} |