少年修仙传客户端代码仓库
client_Wu Xijin
2019-04-27 125729d688184b769ac44abeba280fae5c4dca9a
3393 【2.0】装备属性显示格式
1个文件已修改
10 ■■■■■ 已修改文件
System/ItemTip/TipBasePropertyWidget.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/TipBasePropertyWidget.cs
@@ -68,25 +68,27 @@
                {
                    var starValue = PlayerPropertyConfig.GetValueDescription((int)PropertyType.ATK, attack.z);
                    var starDescription = UIHelper.AppendColor(TextColType.Green, string.Format(" ({0}星+{1})", data.star, starValue));
                    lines[lineIndex++] = string.Format("{0} +{1}-{2}{3}", name, attack.x, attack.y, starDescription);
                    lines[lineIndex++] = string.Format("{0}: {1}-{2}{3}", name, attack.x, attack.y, starDescription);
                }
                else
                {
                    lines[lineIndex++] = string.Format("{0} +{1}-{2}", name, attack.x, attack.y);
                    lines[lineIndex++] = string.Format("{0}: {1}-{2}", name, attack.x, attack.y);
                }
            }
            foreach (var property in normalProperties)
            {
                var config = PlayerPropertyConfig.Get(property.x);
                var name = config.Name;
                if (property.z > 0)
                {
                    var starValue = PlayerPropertyConfig.GetValueDescription(property.x, property.z);
                    var starDescription = UIHelper.AppendColor(TextColType.Green, string.Format(" ({0}星+{1})", data.star, starValue));
                    lines[lineIndex++] = string.Format("{0}{1}", PlayerPropertyConfig.GetFullDescription(property.x, property.y), starDescription);
                    lines[lineIndex++] = string.Format("{0}: {1}{2}", name, PlayerPropertyConfig.GetValueDescription(property.x, property.y), starDescription);
                }
                else
                {
                    lines[lineIndex++] = PlayerPropertyConfig.GetFullDescription(property.x,property.y);
                    lines[lineIndex++] = string.Format("{0}: {1}", name, PlayerPropertyConfig.GetValueDescription(property.x, property.y));
                }
            }