#include <HpBarUserWidget.h>
◆ NativeDestruct()
| void UHpBarUserWidget::NativeDestruct |
( |
| ) |
|
|
overrideprotectedvirtual |
38{
40 {
43 }
44
45 Super::NativeDestruct();
46}
◆ OnHealthChanged()
| void UHpBarUserWidget::OnHealthChanged |
( |
const FOnAttributeChangeData & |
ChangeData | ) |
|
|
protectedvirtual |
◆ OnMaxHealthChanged()
| void UHpBarUserWidget::OnMaxHealthChanged |
( |
const FOnAttributeChangeData & |
ChangeData | ) |
|
|
protectedvirtual |
◆ SetAbilitySystemComponent()
| void UHpBarUserWidget::SetAbilitySystemComponent |
( |
AActor * |
InOwner | ) |
|
|
overridevirtual |
UUserWidgetBase(으)로부터 재구현되었습니다.
11{
12 Super::SetAbilitySystemComponent(InOwner);
13
15 {
17 {
19 }
21 {
23 }
24
25 HealthChangedDelegateHandle =
ASC->GetGameplayAttributeValueChangeDelegate(UBaseAttributeSet::GetHealthAttribute()).AddUObject(
this, &ThisClass::OnHealthChanged);
26 MaxHealthChangedDelegateHandle =
ASC->GetGameplayAttributeValueChangeDelegate(UBaseAttributeSet::GetMaxHealthAttribute()).AddUObject(
this, &ThisClass::OnMaxHealthChanged);
27
29 {
33 }
34 }
35}
Definition BaseAttributeSet.h:21
◆ UpdateHpBar()
| void UHpBarUserWidget::UpdateHpBar |
( |
| ) |
|
|
protected |
61{
63 {
65 HpBar->SetPercent(Percent);
66 }
67}
◆ CurrentHealth
| float UHpBarUserWidget::CurrentHealth = 0.0f |
|
protected |
◆ CurrentMaxHealth
| float UHpBarUserWidget::CurrentMaxHealth = 1.0f |
|
protected |
◆ HealthChangedDelegateHandle
| FDelegateHandle UHpBarUserWidget::HealthChangedDelegateHandle |
|
private |
◆ HpBar
| TObjectPtr<class UProgressBar> UHpBarUserWidget::HpBar |
|
protected |
◆ MaxHealthChangedDelegateHandle
| FDelegateHandle UHpBarUserWidget::MaxHealthChangedDelegateHandle |
|
private |
이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: