Lots of refactoring
This commit is contained in:
@@ -338,6 +338,16 @@ FString FWingProperty::GetTruncatedText(int32 MaxLen) const
|
||||
}
|
||||
|
||||
|
||||
void FWingProperty::Print(WingOut Out) const
|
||||
{
|
||||
bool bEditable = !Prop->HasAnyPropertyFlags(CPF_EditConst);
|
||||
Out.Printf(TEXT(" %s %s %s = %s\n"),
|
||||
bEditable ? TEXT("editable") : TEXT("readonly"),
|
||||
*UWingTypes::TypeToText(Prop),
|
||||
*WingUtils::FormatName(Prop),
|
||||
*GetTruncatedText(100));
|
||||
}
|
||||
|
||||
FString FWingProperty::GetCategory() const
|
||||
{
|
||||
FString Result = Prop->GetMetaData(TEXT("Category"));
|
||||
|
||||
Reference in New Issue
Block a user