(e9f10995d) Merge branch 'bugreporterUI' into dev
This commit is contained in:
@@ -294,7 +294,8 @@ namespace Barotrauma
|
||||
{
|
||||
value = "";
|
||||
}
|
||||
string displayName = property.GetAttribute<Editable>().DisplayName;
|
||||
string propertyName = (entity.GetType().Name + "." + property.PropertyInfo.Name).ToLowerInvariant();
|
||||
string displayName = TextManager.Get(propertyName, returnNull: true) ?? property.GetAttribute<Editable>().DisplayName;
|
||||
if (displayName == null)
|
||||
{
|
||||
displayName = property.Name.FormatCamelCaseWithSpaces();
|
||||
|
||||
Reference in New Issue
Block a user