|
Space Plunder
|
User widget representing a button prompt for It provides functionality for displaying a button icon, a progress bar, and handling button events. More...
#include <ButtonPromptWidget.h>
Public Member Functions | |
| UButtonPromptWidget (const FObjectInitializer &ObjectInitializer) | |
| void | StartButtonProgress (const float Time) |
| void | ButtonProgress () |
| void | StopButtonProgress () |
| float | GetButtonProgress () const |
| void | SetAvailable (const bool bValue=true) |
| void | SetHasProgress (const bool bValue) |
| bool | GetHasProgress () const |
| void | SetInputAction (UInputAction *Action) |
| void | SetInputActionFromTable (const FName &Name) |
| void | SetShowText (const bool bValue) |
| void | SetSizeValue (const float Value) |
| void | SetSize (const ESize Value) |
Public Attributes | |
| FOnButtonPressed | OnButtonPressed |
| class UMaterialInstance * | ProgressBar = nullptr |
| float | Progress = 0.0f |
| float | ProgressTickTime = 0.01f |
| float | ProgressIncrementRate = 1.0f |
| bool | bUseInputAction = false |
| bool | bUseDataTable = false |
| bool | bShowText = false |
| bool | bKeepProgressSize = false |
Protected Member Functions | |
| virtual bool | Initialize () override |
| virtual void | NativePreConstruct () override |
| virtual void | NativeConstruct () override |
Protected Attributes | |
| bool | bHasProgressBar = false |
| float | SizeValue = 52.0f |
| ESize | Size = ESize::Medium |
| float | DefaultSize = 52.0f |
| UInputAction * | InputAction = nullptr |
| class UDataTable * | InputActionDT |
| FDataTableRowHandle | InputActionRow |
| class UCommonActionWidget * | ButtonIconAction = nullptr |
| class UImage * | ProgressBarImage = nullptr |
| class UTextBlock * | PromptText = nullptr |
| class USizeBox * | SizeContainer = nullptr |
| bool | bAvailable = true |
| UMaterialInstanceDynamic * | DynamicMaterial = nullptr |
Private Member Functions | |
| void | SetProgressBarMaterial () |
Private Attributes | |
| FTimerHandle | ProgressTimerHandle |
User widget representing a button prompt for It provides functionality for displaying a button icon, a progress bar, and handling button events.
The button prompt widget can be set to be available or unavailable, depending on the state of the When the button is pressed, the OnButtonPressed event is broadcasted.
|
explicit |
| void UButtonPromptWidget::ButtonProgress | ( | ) |
|
inline |
|
inline |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| void UButtonPromptWidget::SetAvailable | ( | const bool | bValue = true | ) |
| void UButtonPromptWidget::SetHasProgress | ( | const bool | bValue | ) |
| void UButtonPromptWidget::SetInputAction | ( | UInputAction * | Action | ) |
| void UButtonPromptWidget::SetInputActionFromTable | ( | const FName & | Name | ) |
|
private |
| void UButtonPromptWidget::SetShowText | ( | const bool | bValue | ) |
| void UButtonPromptWidget::SetSize | ( | const ESize | Value | ) |
| void UButtonPromptWidget::SetSizeValue | ( | const float | Value | ) |
| void UButtonPromptWidget::StartButtonProgress | ( | const float | Time | ) |
| void UButtonPromptWidget::StopButtonProgress | ( | ) |
|
protected |
|
protected |
| bool UButtonPromptWidget::bKeepProgressSize = false |
| bool UButtonPromptWidget::bShowText = false |
| bool UButtonPromptWidget::bUseDataTable = false |
| bool UButtonPromptWidget::bUseInputAction = false |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| FOnButtonPressed UButtonPromptWidget::OnButtonPressed |
| float UButtonPromptWidget::Progress = 0.0f |
| class UMaterialInstance* UButtonPromptWidget::ProgressBar = nullptr |
|
protected |
| float UButtonPromptWidget::ProgressIncrementRate = 1.0f |
| float UButtonPromptWidget::ProgressTickTime = 0.01f |
|
private |
|
protected |
|
protected |
|
protected |
|
protected |