Minor code cleanup
This commit is contained in:
@@ -156,7 +156,6 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
private bool _readOnly;
|
||||
private bool _notNullItems;
|
||||
private bool _canEditKeys;
|
||||
private bool _canEditValues;
|
||||
private bool _keyEdited;
|
||||
private CollectionAttribute.DisplayType _displayType;
|
||||
|
||||
|
||||
@@ -299,14 +299,12 @@ namespace FlaxEngine.GUI
|
||||
LocalizedString text = _text;
|
||||
switch (CaseOption)
|
||||
{
|
||||
case TextCaseOptions.None: break;
|
||||
case TextCaseOptions.Uppercase:
|
||||
text = text.ToString().ToUpper();
|
||||
break;
|
||||
case TextCaseOptions.Lowercase:
|
||||
text = text.ToString().ToLower();
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
@@ -162,14 +162,12 @@ namespace FlaxEngine.GUI
|
||||
string text = _text;
|
||||
switch (CaseOption)
|
||||
{
|
||||
case TextCaseOptions.None: break;
|
||||
case TextCaseOptions.Uppercase:
|
||||
text = text.ToUpper();
|
||||
break;
|
||||
case TextCaseOptions.Lowercase:
|
||||
text = text.ToLower();
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user