Skip to content

Commit

Permalink
Refactor BlueprintHookHelper variable getters, add array and set helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Dec 8, 2024
1 parent 32fea3d commit e0988f5
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 255 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void UItemTooltipSubsystem::InitializePatches() {

UBlueprintHookManager* HookManager = GEngine->GetEngineSubsystem<UBlueprintHookManager>();
HookManager->HookBlueprintFunction(Function, [](FBlueprintHookHelper& HookHelper) {
UUserWidget* TooltipWidget = Cast<UUserWidget>(*HookHelper.GetOutVariablePtr<FObjectProperty>());
UUserWidget* TooltipWidget = Cast<UUserWidget>(*HookHelper.GetOutVariableHelper()->GetVariablePtr<FObjectProperty>(TEXT("ReturnValue")));
UUserWidget* SlotWidget = Cast<UUserWidget>(HookHelper.GetContext());

if (TooltipWidget != nullptr) {
Expand Down
Loading

0 comments on commit e0988f5

Please sign in to comment.