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

#include <StreamingProgressWidget.h>

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

Public 멤버 함수

void RebuildFromSituations (const TArray< FSituationDisplayData > &Situations)
 
void AddIcon (const UCardWidget *Card)
 
void RemoveIcon ()
 

Protected 멤버 함수

virtual void NativeConstruct () override
 
void ResetIcons ()
 
void ActivateNextIcon (UTexture2D *IconTexture)
 

Protected 속성

TObjectPtr< UWrapBox > IconContainer
 
int32 ActivatedIconIndex = 0
 

멤버 함수 문서화

◆ ActivateNextIcon()

void UStreamingProgressWidget::ActivateNextIcon ( UTexture2D *  IconTexture)
protected
63{
64 if (IconContainer == nullptr)
65 {
66 LOG_WARNING(LogCK, "%s 가 Nullptr 이라서 선택 아이콘을 켤 수 없습니다.", NAMEOF_VAR(IconContainer));
67 return;
68 }
69
70 // 새로 만들지 않고 미리 배치된 자식을 순서대로 하나씩 켠다.
71 UCardIcon* CardIcon = Cast<UCardIcon>(IconContainer->GetChildAt(ActivatedIconIndex));
72
73 if (CardIcon == nullptr)
74 {
75 // 미리 깔아둔 칸을 다 썼다. WBP 의 아이콘 수가 최대 선택 횟수보다 적다는 뜻이다.
76 LOG_WARNING(LogCK, "%s 에 남은 아이콘 칸이 없습니다. (요청 %d / 자식 %d)", NAMEOF_VAR(IconContainer), ActivatedIconIndex, IconContainer->GetChildrenCount());
77 return;
78 }
79
80 CardIcon->SetIcon(IconTexture);
81 CardIcon->ShowIcon();
83}
#define NAMEOF_VAR(Expr)
Definition CK_UE.h:35
#define LOG_WARNING(Category, Format,...)
Definition CK_UE.h:40
Definition CardIcon.h:16
void ShowIcon()
Definition CardIcon.cpp:16
void SetIcon(UTexture2D *InIcon)
Definition CardIcon.cpp:10
TObjectPtr< UWrapBox > IconContainer
Definition StreamingProgressWidget.h:45
int32 ActivatedIconIndex
Definition StreamingProgressWidget.h:49

다음을 참조함 : ActivatedIconIndex, IconContainer, LOG_WARNING, NAMEOF_VAR, UCardIcon::SetIcon(), UCardIcon::ShowIcon().

다음에 의해서 참조됨 : AddIcon(), RebuildFromSituations().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ AddIcon()

void UStreamingProgressWidget::AddIcon ( const UCardWidget *  Card)
57{
59}
FORCEINLINE UTexture2D * GetIconTexture() const
Definition CardWidget.h:51
void ActivateNextIcon(UTexture2D *IconTexture)
Definition StreamingProgressWidget.cpp:62

다음을 참조함 : ActivateNextIcon(), UCardWidget::GetIconTexture().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ NativeConstruct()

void UStreamingProgressWidget::NativeConstruct ( )
overrideprotectedvirtual
15{
16 Super::NativeConstruct();
17
18 ResetIcons();
19}
void ResetIcons()
Definition StreamingProgressWidget.cpp:22

다음을 참조함 : ResetIcons().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ RebuildFromSituations()

void UStreamingProgressWidget::RebuildFromSituations ( const TArray< FSituationDisplayData > &  Situations)
45{
46 ResetIcons();
47
48 for (const FSituationDisplayData& Situation : Situations)
49 {
50 // 아이콘은 소프트 참조라 표시 직전에 로드한다. 카드가 쓰는 그림과 같은 것이다.
51 ActivateNextIcon(Situation.Icon);
52 }
53}
Definition SituationDisplayData.h:34

다음을 참조함 : ActivateNextIcon(), ResetIcons().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

◆ RemoveIcon()

void UStreamingProgressWidget::RemoveIcon ( )
87{
88 if (ActivatedIconIndex <= 0 || IconContainer == nullptr)
89 {
90 return;
91 }
92
93 // 가장 최근에 켠 칸을 되돌린다.
95
96 if (UCardIcon* CardIcon = Cast<UCardIcon>(IconContainer->GetChildAt(ActivatedIconIndex)))
97 {
98 CardIcon->HideIcon();
99 }
100 else
101 {
102 LOG_ERROR(LogCK, "아니, 이걸 카드 아이콘으로 설정 안해뒀다고?");
103 }
104}
#define LOG_ERROR(Category, Format,...)
Definition CK_UE.h:41

다음을 참조함 : ActivatedIconIndex, IconContainer, LOG_ERROR.

◆ ResetIcons()

void UStreamingProgressWidget::ResetIcons ( )
protected
23{
25
26 if (IconContainer == nullptr)
27 {
28 LOG_WARNING(LogCK, "%s 가 Nullptr 이라서 선택 아이콘을 초기화할 수 없습니다.", NAMEOF_VAR(IconContainer));
29 return;
30 }
31
32 // BP 기본값에 기대지 않고 여기서 전부 꺼둔다.
33 const int32 ChildCount = IconContainer->GetChildrenCount();
34
35 for (int32 Index = 0; Index < ChildCount; ++Index)
36 {
37 UCardIcon* CardIcon = Cast<UCardIcon>(IconContainer->GetChildAt(Index));
38 checkf(CardIcon, TEXT("아니 이걸 카드 아이콘으로 설정 안해뒀다고?"));
39 CardIcon->HideIcon();
40 }
41}
void HideIcon()
Definition CardIcon.cpp:25

다음을 참조함 : ActivatedIconIndex, UCardIcon::HideIcon(), IconContainer, LOG_WARNING, NAMEOF_VAR.

다음에 의해서 참조됨 : NativeConstruct(), RebuildFromSituations().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

멤버 데이터 문서화

◆ ActivatedIconIndex

int32 UStreamingProgressWidget::ActivatedIconIndex = 0
protected

다음에 의해서 참조됨 : ActivateNextIcon(), RemoveIcon(), ResetIcons().

◆ IconContainer

TObjectPtr<UWrapBox> UStreamingProgressWidget::IconContainer
protected

다음에 의해서 참조됨 : ActivateNextIcon(), RemoveIcon(), ResetIcons().


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