Lots more progress on the name overhaul
This commit is contained in:
@@ -55,10 +55,7 @@
|
||||
// Name sanitization
|
||||
// ============================================================
|
||||
|
||||
FString WingUtils::ExternalizeID(const FString &InName)
|
||||
{
|
||||
return WingTokenizer::ExternalizeID(InName);
|
||||
}
|
||||
FName WingUtils::GetFName(const FWingProperty &Prop) { return Prop.Prop->GetFName(); }
|
||||
|
||||
FString WingUtils::ExternalizeID(FName Name)
|
||||
{
|
||||
@@ -126,7 +123,7 @@ FString WingUtils::FormatName(const UBlueprint *BP)
|
||||
|
||||
FString WingUtils::FormatName(const UActorComponent *C)
|
||||
{
|
||||
return ExternalizeID(C->GetName());
|
||||
return ExternalizeID(C->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const USCS_Node *Node)
|
||||
@@ -136,22 +133,22 @@ FString WingUtils::FormatName(const USCS_Node *Node)
|
||||
|
||||
FString WingUtils::FormatName(const UEdGraph *Graph)
|
||||
{
|
||||
return ExternalizeID(Graph->GetName());
|
||||
return ExternalizeID(Graph->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const TObjectPtr<UEdGraph> &Graph)
|
||||
{
|
||||
return ExternalizeID(Graph->GetName());
|
||||
return ExternalizeID(Graph->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const UEdGraphNode* Node)
|
||||
{
|
||||
return ExternalizeID(Node->GetName());
|
||||
return ExternalizeID(Node->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const UEdGraphPin *Pin)
|
||||
{
|
||||
return ExternalizeID(Pin->GetName());
|
||||
return ExternalizeID(Pin->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const FMemberReference &Ref)
|
||||
@@ -168,7 +165,7 @@ FString WingUtils::FormatName(const UStruct *Struct)
|
||||
{
|
||||
if (Cast<UScriptStruct>(Struct) || Cast<UClass>(Struct))
|
||||
return UWingTypes::TypeToTextOrDie(Struct);
|
||||
return ExternalizeID(Struct->GetName());
|
||||
return ExternalizeID(Struct->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const UClass *Class)
|
||||
@@ -193,7 +190,7 @@ FString WingUtils::FormatName(const UMaterialFunction *MaterialFunction)
|
||||
|
||||
FString WingUtils::FormatName(const UMaterialExpression *Expression)
|
||||
{
|
||||
return ExternalizeID(Expression->GetName());
|
||||
return ExternalizeID(Expression->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const UStaticMesh *Mesh)
|
||||
@@ -233,7 +230,7 @@ FString WingUtils::FormatName(const UEnum *Enum)
|
||||
|
||||
FString WingUtils::FormatName(const FProperty *Prop)
|
||||
{
|
||||
return ExternalizeID(Prop->GetName());
|
||||
return ExternalizeID(Prop->GetFName());
|
||||
}
|
||||
|
||||
FString WingUtils::FormatName(const FUserPinInfo &Pin)
|
||||
@@ -253,7 +250,7 @@ FString WingUtils::FormatName(const UWingComponentReference *Ref)
|
||||
|
||||
FString WingUtils::FormatName(const UWidget *Widget)
|
||||
{
|
||||
return ExternalizeID(Widget->GetName());
|
||||
return ExternalizeID(Widget->GetFName());
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user