| | |
| | | return string.Empty; |
| | | } |
| | | |
| | | if (config.Name.Contains("%s")) |
| | | if (config.ShowName.Contains("%s")) |
| | | { |
| | | if (id == 52) |
| | | { |
| | | return Regex.Replace(config.Name, "%s", (value * 0.0001f).ToString("f2")); |
| | | return Regex.Replace(config.ShowName, "%s", (value * 0.0001f).ToString("f2")); |
| | | } |
| | | else |
| | | { |
| | | return Regex.Replace(config.Name, "%s", value.ToString()); |
| | | return Regex.Replace(config.ShowName, "%s", value.ToString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return string.Format("{0} +{1}", config.Name, GetValueDescription(id, value)); |
| | | return string.Format("{0} +{1}", config.ShowName, GetValueDescription(id, value)); |
| | | } |
| | | } |
| | | |