Working on look-at Widgets, not done yet.

This commit is contained in:
2025-03-17 15:35:51 -04:00
parent c9fd224a38
commit 6b8c86a03c
7 changed files with 107 additions and 60 deletions

View File

@@ -115,7 +115,13 @@ public:
// Convert an actor to a tangible.
//
static UlxTangible *GetActorTangible(AActor *actor);
// The logging version of this function will generate a log
// message if the actor is not a tangible, and it will then return
// nullptr. The quiet version will just return nullptr.
//
static UlxTangible *GetActorTangibleQuiet(AActor *actor);
static UlxTangible *GetActorTangibleOrLog(AActor *actor);
private:
// Set the actor's blueprint, and recreate the actor if necessary.
@@ -143,8 +149,11 @@ public:
UFUNCTION(BlueprintCallable, Meta = (DefaultToSelf = "target"), Category = "Luprex|Tangible")
static void SetTangiblePlane(AActor* target, const FString& plane);
UFUNCTION(BlueprintCallable, Meta = (DefaultToSelf = "target"), Category = "Luprex|Tangible")
UFUNCTION(BlueprintPure, Meta = (DefaultToSelf = "target"), Category = "Luprex|Tangible")
static bool IsCurrentPlayer(AActor *target);
UFUNCTION(BlueprintPure, Meta = (DefaultToSelf = "target"), Category = "Luprex|Tangible")
static bool IsLuprexTangible(AActor *target);
};