Documentation for the Unreal C++ Plugin
Loading...
Searching...
No Matches
ABaseWristMenu Class Reference

UCLASS() More...

#include <BaseWristMenu.h>

Inheritance diagram for ABaseWristMenu:
[legend]

Public Member Functions

 ABaseWristMenu ()
 
void OnBeginOverlapPointingFingerCollision (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 Change hand animation to pointing finger.
 
void OnEndOverlapPointingFingerCollision (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex)
 Change hand animation to default.
 
virtual void Tick (float DeltaTime) override
 

Public Attributes

APlayerCameraManager * CameraManagerRef
 
FOnWristMenuButtonPressedDelegate OnWristMenuButtonPressedDelegate
 UPROPERTY(BlueprintAssignable, Category = "WristMenu")
 
UBoxComponent * PointingFingerCollisionComp
 UPROPERTY(BlueprintReadWrite, EditDefaultsOnly)
 
float WristAngleTolerance { 25.0f }
 UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "WristMenu")
 
UChildActorComponent * WristMenuButton
 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "WristMenu")
 
UWidgetComponent * WristMenuWidget
 UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "WristMenu")
 

Protected Member Functions

virtual void BeginPlay () override
 
void HideWristMenu ()
 UFUNCTION(BlueprintCallable, Category = "WristMenu")
 
bool IsWristMenuOpened ()
 UFUNCTION(BlueprintCallable, Category = "WristMenu")
 
void OnWristMenuButtonPressed ()
 UFUNCTION(BlueprintCallable, Category = "WristMenu")
 
void SetButtonVisibility (bool IsVisible)
 UFUNCTION(BlueprintCallable, Category = "WristMenu")
 
void SetUIVisibility (bool IsVisible)
 UFUNCTION(BlueprintCallable, Category = "WristMenu")
 

Static Protected Attributes

static bool bCanOpenWristMenu = true
 

Private Member Functions

 GENERATED_BODY ()
 
void OnPointingFingerCollisionOverlapChange (AActor *OtherActor, bool IsBeginOverlap) const
 Change hand animation.
 

Detailed Description

UCLASS()

Definition at line 18 of file BaseWristMenu.h.

Constructor & Destructor Documentation

◆ ABaseWristMenu()

ABaseWristMenu::ABaseWristMenu ( )

Definition at line 12 of file BaseWristMenu.cpp.

Member Function Documentation

◆ BeginPlay()

void ABaseWristMenu::BeginPlay ( )
overrideprotectedvirtual

Definition at line 33 of file BaseWristMenu.cpp.

Here is the call graph for this function:

◆ GENERATED_BODY()

ABaseWristMenu::GENERATED_BODY ( )
private

◆ HideWristMenu()

void ABaseWristMenu::HideWristMenu ( )
protectedBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "WristMenu")

Definition at line 132 of file BaseWristMenu.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsWristMenuOpened()

bool ABaseWristMenu::IsWristMenuOpened ( )
protectedBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "WristMenu")

Definition at line 143 of file BaseWristMenu.cpp.

Here is the caller graph for this function:

◆ OnBeginOverlapPointingFingerCollision()

void ABaseWristMenu::OnBeginOverlapPointingFingerCollision ( UPrimitiveComponent * OverlappedComponent,
AActor * OtherActor,
UPrimitiveComponent * OtherComp,
int32 OtherBodyIndex,
bool bFromSweep,
const FHitResult & SweepResult )

Change hand animation to pointing finger.

UFUNCTION()

Definition at line 148 of file BaseWristMenu.cpp.

Here is the call graph for this function:

◆ OnEndOverlapPointingFingerCollision()

void ABaseWristMenu::OnEndOverlapPointingFingerCollision ( UPrimitiveComponent * OverlappedComponent,
AActor * OtherActor,
UPrimitiveComponent * OtherComp,
int32 OtherBodyIndex )

Change hand animation to default.

UFUNCTION()

Definition at line 155 of file BaseWristMenu.cpp.

Here is the call graph for this function:

◆ OnPointingFingerCollisionOverlapChange()

void ABaseWristMenu::OnPointingFingerCollisionOverlapChange ( AActor * OtherActor,
bool IsBeginOverlap ) const
private

Change hand animation.

Definition at line 161 of file BaseWristMenu.cpp.

Here is the caller graph for this function:

◆ OnWristMenuButtonPressed()

void ABaseWristMenu::OnWristMenuButtonPressed ( )
protectedBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "WristMenu")

Definition at line 119 of file BaseWristMenu.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetButtonVisibility()

void ABaseWristMenu::SetButtonVisibility ( bool IsVisible)
protectedBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "WristMenu")

Definition at line 93 of file BaseWristMenu.cpp.

Here is the caller graph for this function:

◆ SetUIVisibility()

void ABaseWristMenu::SetUIVisibility ( bool IsVisible)
protectedBlueprintCallable

UFUNCTION(BlueprintCallable, Category = "WristMenu")

Definition at line 108 of file BaseWristMenu.cpp.

Here is the caller graph for this function:

◆ Tick()

void ABaseWristMenu::Tick ( float DeltaTime)
overridevirtual

Definition at line 64 of file BaseWristMenu.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bCanOpenWristMenu

bool ABaseWristMenu::bCanOpenWristMenu = true
staticprotected

Definition at line 69 of file BaseWristMenu.h.

◆ CameraManagerRef

APlayerCameraManager* ABaseWristMenu::CameraManagerRef

Definition at line 58 of file BaseWristMenu.h.

◆ OnWristMenuButtonPressedDelegate

FOnWristMenuButtonPressedDelegate ABaseWristMenu::OnWristMenuButtonPressedDelegate
BlueprintAssignable

UPROPERTY(BlueprintAssignable, Category = "WristMenu")

Definition at line 64 of file BaseWristMenu.h.

◆ PointingFingerCollisionComp

UBoxComponent* ABaseWristMenu::PointingFingerCollisionComp
EditDefaultsOnlyBlueprintReadWrite

UPROPERTY(BlueprintReadWrite, EditDefaultsOnly)

Box Collision related to wrist menu widget.

Definition at line 56 of file BaseWristMenu.h.

◆ WristAngleTolerance

float ABaseWristMenu::WristAngleTolerance { 25.0f }
EditDefaultsOnlyBlueprintReadWrite

UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "WristMenu")

Definition at line 46 of file BaseWristMenu.h.

◆ WristMenuButton

UChildActorComponent* ABaseWristMenu::WristMenuButton
VisibleAnywhereBlueprintReadWrite

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "WristMenu")

Definition at line 39 of file BaseWristMenu.h.

◆ WristMenuWidget

UWidgetComponent* ABaseWristMenu::WristMenuWidget
VisibleAnywhereBlueprintReadWrite

UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "WristMenu")

Definition at line 32 of file BaseWristMenu.h.


The documentation for this class was generated from the following files: