Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UDemoClearWidget 클래스 참조

#include <DemoClearWidget.h>

UDemoClearWidget에 대한 상속 다이어그램 :
Inheritance graph
UDemoClearWidget에 대한 협력 다이어그램:
Collaboration graph

Public 멤버 함수

virtual void OnActivated () override
 
virtual void OnDeactivated () override
 
- UStageEventListenableUserWidget(으)로부터 상속된 Public 멤버 함수
virtual EEventListenableUI GetListeningUIEvent ()
 
virtual UUIEventProxyGetEventProxy () const
 
- UUserWidgetBase(으)로부터 상속된 Public 멤버 함수
virtual void SetAbilitySystemComponent (AActor *InOwner)
 
virtual UAbilitySystemComponent * GetAbilitySystemComponent () const override
 
void Activate ()
 
void Deactivate ()
 
FORCEINLINE FGameplayTag GetLayerTag () const
 
FORCEINLINE void SetLayerTag (const FGameplayTag InTag)
 
FORCEINLINE bool IsPrimary () const
 
FORCEINLINE void SetPrimary (const bool InPrimary)
 
FORCEINLINE EWidgetState GetWidgetState () const
 
FORCEINLINE void SetWidgetState (const EWidgetState InState)
 
FORCEINLINE UWaitForWidgetActivationGetActivationHandle ()
 
FORCEINLINE bool HasAppearanceAnim () const
 
FORCEINLINE bool HasDisappearanceAnim () const
 

Protected 속성

TObjectPtr< UButton > BTN_Close
 
TObjectPtr< UTextBlock > TXT_Message
 
- UStageEventListenableUserWidget(으)로부터 상속된 Protected 속성
TObjectPtr< UUIEventProxyEventProxy
 
- UUserWidgetBase(으)로부터 상속된 Protected 속성
EWidgetState WidgetState
 
TObjectPtr< UAbilitySystemComponent > ASC
 
FGameplayTag LayerTag
 
bool bPrimary = false
 
TObjectPtr< UWidgetAnimation > AppearanceAnim
 
TObjectPtr< UWidgetAnimation > DisappearanceAnim
 

추가로 상속된 멤버들

- UStageEventListenableUserWidget(으)로부터 상속된 Protected 멤버 함수
virtual void OnPushedToLayer () override
 
virtual void OnPoppedFromLayer () override
 
- UUserWidgetBase(으)로부터 상속된 Protected 멤버 함수
virtual void OnWidgetActivated ()
 
virtual void OnWidgetDeactivated ()
 
void OnPushedToLayer_Internal ()
 
void OnPoppedFromLayer_Internal ()
 
void OnActivated_Internal ()
 
void OnDeactivated_Internal ()
 

멤버 함수 문서화

◆ OnActivated()

void UDemoClearWidget::OnActivated ( )
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

15{
16 Super::OnActivated();
17
18 ACharacter* Character = Cast<ACharacter>(GetOwningPlayerPawn());
19
20 if (Character == nullptr)
21 {
22 LOG_WARNING(LogCK, "플레이어 캐릭터를 얻어올 수 없습니다. ");
23 return;
24 }
25
26 UCharacterMovementComponent* MovementComponent = Character->GetCharacterMovement();
27
28 if (MovementComponent == nullptr)
29 {
30 LOG_WARNING(LogCK, "플레이어 이동 컴포넌트를 얻어올 수 없습니다. ");
31 return;
32 }
33
34 IAbilitySystemInterface* ASI = Cast<IAbilitySystemInterface>(Character);
35
36 if (ASI == nullptr)
37 {
38 LOG_ERROR(LogCK, "%s을 얻어올 수 없습니다. ", NAMEOF(IAbilitySystemInterface));
39 return;
40 }
41
42 UAbilitySystemComponent* AbilitySystemComponent = ASI->GetAbilitySystemComponent();
43
44 if (AbilitySystemComponent == nullptr)
45 {
46 LOG_ERROR(LogCK, "%s을 얻어올 수 없습니다. ", NAMEOF(UAbilitySystemComponent));
47 return;
48 }
49
50 MovementComponent->DisableMovement();
51 AbilitySystemComponent->AddLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKMOVEMENT);
52 AbilitySystemComponent->AddLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKINPUT);
53 AbilitySystemComponent->CancelAllAbilities();
54}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:40
#define NAMEOF(Type)
Definition CK_UE.h:30
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:39

◆ OnDeactivated()

void UDemoClearWidget::OnDeactivated ( )
overridevirtual

UUserWidgetBase(으)로부터 재구현되었습니다.

58{
59 Super::OnDeactivated();
60
61 ACharacter* Character = Cast<ACharacter>(GetOwningPlayerPawn());
62
63 if (Character == nullptr)
64 {
65 LOG_WARNING(LogCK, "플레이어 캐릭터를 얻어올 수 없습니다. ");
66 return;
67 }
68
69 UCharacterMovementComponent* MovementComponent = Character->GetCharacterMovement();
70
71 if (MovementComponent == nullptr)
72 {
73 LOG_WARNING(LogCK, "플레이어 이동 컴포넌트를 얻어올 수 없습니다. ");
74 return;
75 }
76
77 IAbilitySystemInterface* ASI = Cast<IAbilitySystemInterface>(Character);
78
79 if (ASI == nullptr)
80 {
81 LOG_ERROR(LogCK, "%s을 얻어올 수 없습니다. ", NAMEOF(IAbilitySystemInterface));
82 return;
83 }
84
85 UAbilitySystemComponent* AbilitySystemComponent = ASI->GetAbilitySystemComponent();
86
87 if (AbilitySystemComponent == nullptr)
88 {
89 LOG_ERROR(LogCK, "%s을 얻어올 수 없습니다. ", NAMEOF(UAbilitySystemComponent));
90 return;
91 }
92
93 AbilitySystemComponent->RemoveLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKMOVEMENT);
94 AbilitySystemComponent->RemoveLooseGameplayTag(TAG_CHARACTER_STATE_ISBLOCKINPUT);
95 MovementComponent->SetMovementMode(MOVE_Walking);
96}

멤버 데이터 문서화

◆ BTN_Close

TObjectPtr<UButton> UDemoClearWidget::BTN_Close
protected

◆ TXT_Message

TObjectPtr<UTextBlock> UDemoClearWidget::TXT_Message
protected

이 클래스에 대한 문서화 페이지는 다음의 파일들로부터 생성되었습니다.: