Пример #1
0
    public static string GetDetailInfoName(DetailInfo detailInfo)
    {
        if (detailInfo.type != DetailType.DT.Equipment)
        {
            return(detailInfo.label);
        }
        Items items = DataReader <Items> .Get(detailInfo.cfgId);

        if (items != null)
        {
            return(GameDataUtils.GetItemNameCustom(items, "[" + GameDataUtils.GetChineseContent(items.name, false) + "]"));
        }
        return(string.Empty);
    }