| | |
| | | } |
| | | } |
| | | |
| | | public static string GetFullDescriptionOrgName(int id, long value, string format="{0}+{1}") |
| | | { |
| | | var config = Get(id); |
| | | if (config == null) |
| | | { |
| | | return string.Empty; |
| | | } |
| | | |
| | | if (config.Name.Contains("%s")) |
| | | { |
| | | // if (id == 52) |
| | | // { |
| | | // return Regex.Replace(config.ShowName, "%s", (value * 0.0001f).ToString("f2")); |
| | | // } |
| | | // else |
| | | { |
| | | return Regex.Replace(config.Name, "%s", value.ToString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return string.Format(format, config.Name, GetValueDescription(id, value)); |
| | | } |
| | | } |
| | | //基础属性描述 |
| | | public static string GetBaseFullDescription(int id, long value, string format = "{0}+{1}") |
| | | { |