#include <HpBarUserWidget.h>
◆ NativeDestruct()
| void UHpBarUserWidget::NativeDestruct |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ OnHealthChanged()
| void UHpBarUserWidget::OnHealthChanged |
( |
const FOnAttributeChangeData & |
ChangeData | ) |
|
|
protectedvirtual |
◆ OnMaxHealthChanged()
| void UHpBarUserWidget::OnMaxHealthChanged |
( |
const FOnAttributeChangeData & |
ChangeData | ) |
|
|
protectedvirtual |
◆ SetAbilitySystemComponent()
| void UHpBarUserWidget::SetAbilitySystemComponent |
( |
AActor * |
InOwner | ) |
|
|
overridevirtual |
UUserWidgetBase(으)로부터 재구현되었습니다.
UDelayedHpBarWidget, UEnemyHpBarWidget에서 재구현되었습니다.
13{
14 Super::SetAbilitySystemComponent(InOwner);
15
17 {
19 return;
20 }
21
23 {
25 }
27 {
29 }
30
31 HealthChangedDelegateHandle =
ASC->GetGameplayAttributeValueChangeDelegate(UBaseAttributeSet::GetHealthAttribute()).AddUObject(
this, &ThisClass::OnHealthChanged);
32 MaxHealthChangedDelegateHandle =
ASC->GetGameplayAttributeValueChangeDelegate(UBaseAttributeSet::GetMaxHealthAttribute()).AddUObject(
this, &ThisClass::OnMaxHealthChanged);
33
34
36 {
40 return;
41 }
42
43 const UWorld* World = GetWorld();
44
45 if (World && World->IsGameWorld() && World->HasBegunPlay())
46 {
47 LOG_ERROR(LogCK,
"Failed to get attribute set");
48 }
49}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
Definition BaseAttributeSet.h:58
◆ UpdateHpBar()
| void UHpBarUserWidget::UpdateHpBar |
( |
| ) |
|
|
protectedvirtual |
◆ CurrentHealth
| float UHpBarUserWidget::CurrentHealth = 0.0f |
|
protected |
◆ CurrentMaxHealth
| float UHpBarUserWidget::CurrentMaxHealth = 1.0f |
|
protected |
◆ HealthChangedDelegateHandle
| FDelegateHandle UHpBarUserWidget::HealthChangedDelegateHandle |
|
private |
◆ HealthProgressBar
| TObjectPtr<UProgressBar> UHpBarUserWidget::HealthProgressBar |
|
protected |
◆ MaxHealthChangedDelegateHandle
| FDelegateHandle UHpBarUserWidget::MaxHealthChangedDelegateHandle |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: