| | |
| | | return GetFullDescription(property.x, property.y); |
| | | } |
| | | |
| | | public static string GetFullDescription(int id, long value) |
| | | public static string GetFullDescription(int id, long value, string format="{0}+{1}") |
| | | { |
| | | var config = Get(id); |
| | | if (config == null) |
| | |
| | | |
| | | if (config.ShowName.Contains("%s")) |
| | | { |
| | | if (id == 52) |
| | | { |
| | | return Regex.Replace(config.ShowName, "%s", (value * 0.0001f).ToString("f2")); |
| | | } |
| | | else |
| | | // if (id == 52) |
| | | // { |
| | | // return Regex.Replace(config.ShowName, "%s", (value * 0.0001f).ToString("f2")); |
| | | // } |
| | | // else |
| | | { |
| | | return Regex.Replace(config.ShowName, "%s", value.ToString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return string.Format("{0} +{1}", config.ShowName, GetValueDescription(id, value)); |
| | | return string.Format(format, config.ShowName, GetValueDescription(id, value)); |
| | | } |
| | | } |
| | | |