262 幻境阁系统-客户端 形象底图改形象底图品质
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年11月18日 |
| | | // [ Date ]: 2025年11月25日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public int ID; |
| | | public int TabType; |
| | | public string Name; |
| | | public string FaceBg; |
| | | public int ModelBgColor; |
| | | public int SkinID; |
| | | public int ExpireMinutes; |
| | | public int UnlockWay; |
| | |
| | | |
| | | Name = tables[2]; |
| | | |
| | | FaceBg = tables[3]; |
| | | int.TryParse(tables[3],out ModelBgColor); |
| | | |
| | | int.TryParse(tables[4],out SkinID); |
| | | |
| | |
| | | { |
| | | return GetModelSkinID(PlayerDatas.Instance.baseData.modelMark); |
| | | } |
| | | |
| | | public int GetModelBgColor(int id) |
| | | { |
| | | int defaultColor = 1; |
| | | if (!ModelConfig.HasKey(id)) |
| | | return defaultColor; |
| | | return ModelConfig.Get(id).ModelBgColor; |
| | | } |
| | | |
| | | public string GetModelBgColorStr(int id) |
| | | { |
| | | int bgColor = GetModelBgColor(id); |
| | | return StringUtility.Contact("ModelBgColor", bgColor); |
| | | } |
| | | } |
| | |
| | | int resourceType = manager.GetResourceType(type, id); |
| | | string resourceValue = manager.GetResourceValue(type, id); |
| | | |
| | | imgBg.SetSprite(model.FaceBg); |
| | | imgBg.SetSprite(manager.GetModelBgColorStr(id)); |
| | | |
| | | manager.UpdateItemRedPoint(imgRed, type, id); |
| | | } |