#include <HealthWidget.h>
◆ UHealthWidget()
| UHealthWidget::UHealthWidget |
( |
const FObjectInitializer & | ObjectInitializer | ) |
|
|
explicit |
10 :Super(ObjectInitializer)
11{
12
13
14
15
16
17}
◆ Initialize()
| bool UHealthWidget::Initialize |
( |
| ) |
|
|
overrideprotectedvirtual |
20{
21 const bool Success = Super::Initialize();
23 if (!ensure(
HealthBar !=
nullptr))
return false;
24 if (!ensure(
ShieldBar !=
nullptr))
return false;
27 if (!ensure(
Spacer !=
nullptr))
return false;
28 return true;
29}
◆ InjuredBodyPart()
| void UHealthWidget::InjuredBodyPart |
( |
EBodyPartName | InjuredBodyPart, |
|
|
FVector | HitLocation, |
|
|
const TArray< FBodyPart > & | AllBodyParts ) |
◆ NativeConstruct()
| void UHealthWidget::NativeConstruct |
( |
| ) |
|
|
overrideprotectedvirtual |
43{
44 Super::NativeConstruct();
46 {
48 }
49}
◆ NativePreConstruct()
| void UHealthWidget::NativePreConstruct |
( |
| ) |
|
|
overrideprotectedvirtual |
32{
33 Super::NativePreConstruct();
35 {
37 }
38
39
40}
◆ SetHasShield()
| void UHealthWidget::SetHasShield |
( |
const bool | in_bHasShield | ) |
|
54{
57 {
58 ShieldBar->SetVisibility(ESlateVisibility::Collapsed);
59 }
60}
◆ ShieldBroken()
| void UHealthWidget::ShieldBroken |
( |
| ) |
|
◆ UpdateHealth()
| void UHealthWidget::UpdateHealth |
( |
const float | CurrentHealth, |
|
|
const float | MaxHealth, |
|
|
const class UDamageType * | DamageType ) |
◆ UpdateHealthAndShield()
| void UHealthWidget::UpdateHealthAndShield |
( |
const float | CurrentHealth, |
|
|
const float | MaxHealth, |
|
|
const float | CurrentShieldHealth, |
|
|
const float | MaxShieldHealth, |
|
|
const class UDamageType * | DamageType = nullptr ) |
◆ BarSize
| FVector2D UHealthWidget::BarSize |
◆ bHasShield
| bool UHealthWidget::bHasShield = false |
|
private |
◆ HealthBar
| class UProgressBar* UHealthWidget::HealthBar |
|
protected |
◆ HealthDamageStyle
| FProgressBarStyle UHealthWidget::HealthDamageStyle |
◆ HealthOverlay
| class UOverlay* UHealthWidget::HealthOverlay |
|
protected |
◆ HealthStyle
| FProgressBarStyle UHealthWidget::HealthStyle |
◆ ShieldBar
| class UProgressBar* UHealthWidget::ShieldBar |
|
protected |
◆ ShieldDamageStyle
| FProgressBarStyle UHealthWidget::ShieldDamageStyle |
◆ ShieldOverlay
| class UOverlay* UHealthWidget::ShieldOverlay |
|
protected |
◆ ShieldStyle
| FProgressBarStyle UHealthWidget::ShieldStyle |
◆ Spacer
| class USpacer* UHealthWidget::Spacer |
|
protected |
◆ SpacerSize
| FVector2D UHealthWidget::SpacerSize = FVector2D(0.0f, 4.0f) |
The documentation for this class was generated from the following files:
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/Health/Source/Health/Public/Widgets/HealthWidget.h
- T:/Unreal/Unreal Projects/SpaceAdventure52/SpaceAdventure/Plugins/Health/Source/Health/Private/Widgets/HealthWidget.cpp