A small refactor in UEWingman, for readability

This commit is contained in:
2026-05-20 18:16:58 -04:00
parent e1f3c81cbd
commit cc34e36cd2
35 changed files with 76 additions and 155 deletions

View File

@@ -25,7 +25,7 @@ class UWing_Widget_Add : public UWingHandler
public:
UPROPERTY(EditAnywhere, meta=(Description="Widget blueprint to add the widget to"))
FString Blueprint;
FString BlueprintPath;
UPROPERTY(EditAnywhere, meta=(Description="Widget type, from Widget_SearchTypes"))
FString Type;
@@ -49,7 +49,7 @@ public:
{
// Fetch the widget blueprint.
WingFetcher F(WingOut::Stdout);
UWidgetBlueprint* BP = F.Walk(Blueprint).Cast<UWidgetBlueprint>();
UWidgetBlueprint* BP = F.Walk(BlueprintPath).Cast<UWidgetBlueprint>();
if (!BP) return;
// Resolve the widget type.