少年修仙传客户端代码仓库
QD_LCJ
2018-08-10 b953d5bf35f9dc800e47b6b85743a6e61ea4bdf6
2030【前端】境界界面修改
2个文件已修改
13 ■■■■■ 已修改文件
System/Realm/RealmProgressBehaviour.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/PropertyBehaviour.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Realm/RealmProgressBehaviour.cs
@@ -102,7 +102,7 @@
                        break;
                    }
                }
                m_SpecialProperty.DisplayUpper(config.specialProperty, config.AddAttrNum[index]);
                m_SpecialProperty.DisplayColon(config.specialProperty, config.AddAttrNum[index]);
                m_HurtRemind.text = UIHelper.ReplaceNewLine(Language.Get("RealmSuppressHurt", UIHelper.GetTextColorByItemColor(config.Quality, config.Name), (float)model.realmSuppressHurt / 1000));
            }
        }
System/Role/PropertyBehaviour.cs
@@ -32,6 +32,17 @@
                    config.ISPercentage == 1 ? "%" : string.Empty);
            }
        }
        public void DisplayColon(int _property, int _value)
        {
            var config = ConfigManager.Instance.GetTemplate<PlayerPropertyConfig>(_property);
            if (config != null)
            {
                m_PropertyName.text = StringUtility.Contact(config.Name, ":");
                m_PropertyValue.text = StringUtility.Contact("+", UIHelper.ReplaceLargeNum(UIHelper.ReplacePercentage(_value, config.ISPercentage)),
                    config.ISPercentage == 1 ? "%" : string.Empty);
            }
        }
    }
}