Base class for user widgets in the PixoCore module.
More...
#include <BasicWidget.h>
|
void | PlayerWentAway () |
| UFUNCTION(BlueprintNativeEvent, meta=(DisplayName="PlayerWentAwayHandler"))
|
|
Base class for user widgets in the PixoCore module.
UCLASS()
Definition at line 23 of file BasicWidget.h.
◆ GENERATED_BODY()
UBasicWidget::GENERATED_BODY |
( |
| ) |
|
|
private |
◆ GetGuid()
const FGuid & UBasicWidget::GetGuid |
( |
| ) |
const |
|
inline |
◆ GetWidgetInfoName()
const FString & UBasicWidget::GetWidgetInfoName |
( |
| ) |
|
|
inlineBlueprintCallable |
◆ Init()
◆ NativeOnInitialized()
PRAGMA_DISABLE_OPTIMIZATION void UBasicWidget::NativeOnInitialized |
( |
| ) |
|
|
overridevirtual |
◆ OnClickExitMenuEvent()
void UBasicWidget::OnClickExitMenuEvent |
( |
FText | ButtonName | ) |
|
|
virtual |
Event handler for the "ExitMenu" button click event.
- Parameters
-
ButtonName | The name of the clicked button. |
UFUNCTION(Category = "Buttons")
Definition at line 51 of file BasicWidget.cpp.
◆ PlayerWentAway()
void UBasicWidget::PlayerWentAway |
( |
| ) |
|
|
protectedBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, meta=(DisplayName="PlayerWentAwayHandler"))
◆ PlayerWentAwayHandler()
virtual void UBasicWidget::PlayerWentAwayHandler |
( |
const float | SquaredDistanceToPlayerCm | ) |
|
|
inlinevirtual |
Handler for when the player goes away.
- Parameters
-
SquaredDistanceToPlayerCm | The squared distance to the player in centimeters. |
Definition at line 68 of file BasicWidget.h.
◆ ProcessSquaredDistanceToPlayer()
void UBasicWidget::ProcessSquaredDistanceToPlayer |
( |
const float | SquaredDistanceToPlayerCm, |
|
|
const float | DeltaSec ) |
Processes the squared distance to the player.
- Parameters
-
SquaredDistanceToPlayerCm | The squared distance to the player in centimeters. |
DeltaSec | The time elapsed since the last update. |
Definition at line 29 of file BasicWidget.cpp.
◆ SetCustomGuid()
void UBasicWidget::SetCustomGuid |
( |
const FGuid & | NewGuid | ) |
|
|
inline |
◆ bIsClosingByDistance
bool UBasicWidget::bIsClosingByDistance = false |
|
private |
Flag indicating if the widget should be closed by distance.
Definition at line 106 of file BasicWidget.h.
◆ DistanceCalculationDelay
float UBasicWidget::DistanceCalculationDelay = 0.0f |
|
private |
◆ Heading
FText UBasicWidget::Heading = FText::FromString(TEXT("Heading")) |
|
protectedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
Heading of the widget
Definition at line 94 of file BasicWidget.h.
◆ MaxDistanceCalculationDelaySec
float UBasicWidget::MaxDistanceCalculationDelaySec = 5.0f |
|
protectedBlueprintReadWrite |
UPROPERTY(BlueprintReadWrite)
How frequently should we check closing distance.
Definition at line 99 of file BasicWidget.h.
◆ MaxSquaredClosingDistance
int32 UBasicWidget::MaxSquaredClosingDistance = -1 |
|
private |
◆ OnExitMenuEventDelegate
FExitMenuEventDelegate UBasicWidget::OnExitMenuEventDelegate |
Event delegate for the "ExitMenu" event.
- Todo
- Investigate and probably remove because not all widgets have exit.
Definition at line 86 of file BasicWidget.h.
◆ OnPlayerWentAway
FOnPlayerWentAway UBasicWidget::OnPlayerWentAway |
Event for when the player goes away.
Definition at line 87 of file BasicWidget.h.
◆ WidgetGuid
FGuid UBasicWidget::WidgetGuid |
|
private |
◆ WidgetInfoName
FString UBasicWidget::WidgetInfoName |
|
private |
Name of widget info used for creating this widget.
Definition at line 102 of file BasicWidget.h.
The documentation for this class was generated from the following files:
- SDKDemo/Plugins/UnrealEngineSDK/PixoCore/Source/PixoCore/Public/UI/BasicWidget.h
- SDKDemo/Plugins/UnrealEngineSDK/PixoCore/Source/PixoCore/Private/UI/BasicWidget.cpp