From 7e8b96cb842a1ec36d96d15d0c644625fff32061 Mon Sep 17 00:00:00 2001 From: jyelon Date: Tue, 27 May 2025 18:21:00 -0400 Subject: [PATCH] Add 'Set Look At Changed' as a temporary way for a widget to refresh itself. --- Content/Widgets/WB_Hotkeys.uasset | 4 ++-- Source/Integration/LuprexGameModeBase.cpp | 6 ++++++ Source/Integration/LuprexGameModeBase.h | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Content/Widgets/WB_Hotkeys.uasset b/Content/Widgets/WB_Hotkeys.uasset index 4694cee7..7789b4ec 100644 --- a/Content/Widgets/WB_Hotkeys.uasset +++ b/Content/Widgets/WB_Hotkeys.uasset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:069915db68f5303ce8ba8e522ba70e8fa5abe6e2062c5d8d9a233ef59259b83d -size 208309 +oid sha256:1049d4f84d4222621d7c28de7594201fb935fd16be325282ff823856098c7b2b +size 213050 diff --git a/Source/Integration/LuprexGameModeBase.cpp b/Source/Integration/LuprexGameModeBase.cpp index f94a4004..ada0939a 100644 --- a/Source/Integration/LuprexGameModeBase.cpp +++ b/Source/Integration/LuprexGameModeBase.cpp @@ -360,6 +360,12 @@ void ALuprexGameModeBase::SetLookAt(const UObject *Context, const FHitResult &Hi Mode->CurrentLookAt = HitResult; } +void ALuprexGameModeBase::SetLookAtChanged(const UObject *Context) +{ + ALuprexGameModeBase *Mode = FromContext(Context); + Mode->MustCallLookAtChanged = true; +} + FVector2D ALuprexGameModeBase::GetLookAtPixel(const UObject *Context) { ALuprexGameModeBase *Mode = FromContext(Context); diff --git a/Source/Integration/LuprexGameModeBase.h b/Source/Integration/LuprexGameModeBase.h index afcae2bf..0b38f951 100644 --- a/Source/Integration/LuprexGameModeBase.h +++ b/Source/Integration/LuprexGameModeBase.h @@ -80,6 +80,9 @@ public: UFUNCTION(BlueprintPure, meta = (WorldContext = "Context"),Category = "Luprex|Look-At Detection") static FVector2D GetLookAtPixel(const UObject *Context); + + UFUNCTION(BlueprintCallable, meta = (WorldContext = "Context"), Category = "Luprex|Look-At Detection") + static void SetLookAtChanged(const UObject* Context); // // Look-At Related Events