KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPopup_MsgBox 클래스 참조

#include <UPopup_MsgBox.h>

+ UPopup_MsgBox에 대한 상속 다이어그램 :
+ UPopup_MsgBox에 대한 협력 다이어그램:

Public 멤버 함수

void InitPopup (const FString &InTitle, const FString &InDescription, EMsgBoxType InType, const FOnMsgBoxOkDelegate &InOkDelegate)
 
void InitPopup (const FString &InTitle, const FString &InDescription, EMsgBoxType InType, const FOnMsgBoxOkDelegate &InOkDelegate, const FOnMsgBoxCancelDelegate &InCancelDelegate)
 
virtual void NativeTick (const FGeometry &MyGeometry, float InDeltaTime) override
 
void OpenAnimation ()
 팝업 오픈 애니메이션을 재생합니다
 

Public 속성

bool bAllowPlayerControl = false
 이 팝업이 활성화되어 있을 때 플레이어 조작을 허용할지 여부
 
class UImageButtonBtn_Cancel
 
class UTextureButtonBtn_Close
 
class UImageButtonBtn_Ok
 
class USpacer * Spacing_OkCancel
 
class UTextBlock * Txt_Desc
 
class UTextBlock * Txt_Title
 

Protected 멤버 함수

virtual void NativeConstruct () override
 
void UpdateAnimation (float InDeltaTime)
 스크립트 오픈 애니메이션 업데이트
 

Protected 속성

bool bIsOpenAnim = false
 애니메이션 재생 중 여부
 
UWidgetAnimation * BlueprintOpenAnimation
 블루프린트에서 정의한 오픈 애니메이션
 
EGameSoundType OpenAnimSound = EGameSoundType::UI_PopupOpen
 팝업 오픈 시 재생될 사운드 타입
 
float OpenDuration = 0.2f
 애니메이션 지속 시간
 
EEaseType OpenEaseType = EEaseType::EaseOutBack
 Easing 타입
 
float OpenElapsedTime = 0.0f
 경과 시간
 
FVector2D OpenPivot = FVector2D(0.5f, 0.5f)
 애니메이션 중심점 (0~1 범위)
 
float OpenStartScale = 0.8f
 시작 스케일
 
float OpenTargetScale = 1.0f
 목표 스케일
 
EPopupType PopupType
 

Private 멤버 함수

void InitButton (EMsgBoxType InType)
 
void OnClickCancel ()
 
void OnClickOk ()
 
void SetDesc (const FString &InDescription)
 
void SetTitle (const FString &InTitle)
 

Private 속성

FOnMsgBoxCancelDelegate OnCancelDelegate
 
FOnMsgBoxOkDelegate OnOkDelegate
 

상세한 설명

UPopup_MsgBox.h 파일의 11 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ InitButton()

void UPopup_MsgBox::InitButton ( EMsgBoxType  InType)
private

UPopup_MsgBox.cpp 파일의 20 번째 라인에서 정의되었습니다.

21{
22 // 중복 바인딩 방지: 기존 바인딩 제거 후 재바인딩
23 if (Btn_Close)
24 {
27 }
28 if (Btn_Ok)
29 {
32 }
33 if (Btn_Cancel)
34 {
37 }
38
39 switch (InType)
40 {
41 case EMsgBoxType::OK:
42 Btn_Ok->SetVisibility(ESlateVisibility::Visible);
43 Btn_Cancel->SetVisibility(ESlateVisibility::Collapsed);
44 Spacing_OkCancel->SetVisibility(ESlateVisibility::Collapsed);
45 break;
46
48 Btn_Ok->SetVisibility(ESlateVisibility::Visible);
49 Btn_Cancel->SetVisibility(ESlateVisibility::Visible);
50 Spacing_OkCancel->SetVisibility(ESlateVisibility::Visible);
51 break;
52 }
53}
FOnImageButtonClickedEvent OnButtonClickedEvent
버튼 클릭 시 발생하는 이벤트
class UImageButton * Btn_Ok
class UTextureButton * Btn_Close
class USpacer * Spacing_OkCancel
class UImageButton * Btn_Cancel
FOnTextureButtonClickedEvent OnButtonClickedEvent
버튼 클릭 이벤트

다음을 참조함 : Btn_Cancel, Btn_Close, Btn_Ok, OK, OK_CANCEL, UImageButton::OnButtonClickedEvent, UTextureButton::OnButtonClickedEvent, OnClickCancel(), OnClickOk(), Spacing_OkCancel.

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

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

◆ InitPopup() [1/2]

void UPopup_MsgBox::InitPopup ( const FString &  InTitle,
const FString &  InDescription,
EMsgBoxType  InType,
const FOnMsgBoxOkDelegate &  InOkDelegate 
)

UPopup_MsgBox.cpp 파일의 80 번째 라인에서 정의되었습니다.

85{
86 this->SetTitle(InTitle);
87 this->SetDesc(InDescription);
88 this->InitButton(InType);
89
90 OnOkDelegate = InOkDelegate;
91 OnCancelDelegate.Unbind();
92}
FOnMsgBoxOkDelegate OnOkDelegate
void InitButton(EMsgBoxType InType)
FOnMsgBoxCancelDelegate OnCancelDelegate
void SetTitle(const FString &InTitle)
void SetDesc(const FString &InDescription)

다음을 참조함 : InitButton(), OnCancelDelegate, OnOkDelegate, SetDesc(), SetTitle().

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

◆ InitPopup() [2/2]

void UPopup_MsgBox::InitPopup ( const FString &  InTitle,
const FString &  InDescription,
EMsgBoxType  InType,
const FOnMsgBoxOkDelegate &  InOkDelegate,
const FOnMsgBoxCancelDelegate &  InCancelDelegate 
)

UPopup_MsgBox.cpp 파일의 94 번째 라인에서 정의되었습니다.

100{
101 this->SetTitle(InTitle);
102 this->SetDesc(InDescription);
103 this->InitButton(InType);
104
105 OnOkDelegate = InOkDelegate;
106 OnCancelDelegate = InCancelDelegate;
107}

다음을 참조함 : InitButton(), OnCancelDelegate, OnOkDelegate, SetDesc(), SetTitle().

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

◆ NativeConstruct()

void UPopup_MsgBox::NativeConstruct ( )
overrideprotectedvirtual

UPopup_MsgBox.cpp 파일의 12 번째 라인에서 정의되었습니다.

13{
14 Super::NativeConstruct();
15}

◆ NativeTick()

void UBasePopup::NativeTick ( const FGeometry &  MyGeometry,
float  InDeltaTime 
)
overridevirtualinherited

UBasePopup.cpp 파일의 7 번째 라인에서 정의되었습니다.

8{
9 Super::NativeTick(MyGeometry, InDeltaTime);
10
11 if (bIsOpenAnim)
12 {
13 UpdateAnimation(InDeltaTime);
14 }
15}
bool bIsOpenAnim
애니메이션 재생 중 여부
Definition UBasePopup.h:57
void UpdateAnimation(float InDeltaTime)
스크립트 오픈 애니메이션 업데이트

다음을 참조함 : UBasePopup::bIsOpenAnim, UBasePopup::UpdateAnimation().

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

◆ OnClickCancel()

void UPopup_MsgBox::OnClickCancel ( )
private

UPopup_MsgBox.cpp 파일의 67 번째 라인에서 정의되었습니다.

68{
69 // PopupManager를 통해 팝업 닫기 (마우스 커서 처리 포함)
70 if (UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
71 {
72 PopupMgr->HideCurrentPopup();
73 }
74
75 if (OnCancelDelegate.IsBound())
76 OnCancelDelegate.Execute();
77}
팝업 관리자

다음을 참조함 : OnCancelDelegate.

다음에 의해서 참조됨 : InitButton().

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

◆ OnClickOk()

void UPopup_MsgBox::OnClickOk ( )
private

UPopup_MsgBox.cpp 파일의 55 번째 라인에서 정의되었습니다.

56{
57 // PopupManager를 통해 팝업 닫기 (마우스 커서 처리 포함)
58 if (UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
59 {
60 PopupMgr->HideCurrentPopup();
61 }
62
63 if (OnOkDelegate.IsBound())
64 OnOkDelegate.Execute();
65}

다음을 참조함 : OnOkDelegate.

다음에 의해서 참조됨 : InitButton().

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

◆ OpenAnimation()

void UBasePopup::OpenAnimation ( )
inherited

팝업 오픈 애니메이션을 재생합니다

UBasePopup.cpp 파일의 17 번째 라인에서 정의되었습니다.

18{
19 if (!IsInViewport())
20 {
21 AddToViewport();
22 }
23
24 // 팝업 오픈 사운드 재생 (None이 아닐 때만)
26 {
27 if (UGameSoundManager* SoundManager = UGameSoundManager::Get(this))
28 {
29 SoundManager->PlaySound2D(OpenAnimSound);
30 }
31 }
32
33 // 블루프린트에서 정의한 애니메이션이 있으면 해당 애니메이션 재생
35 {
36 PlayAnimation(BlueprintOpenAnimation);
37 return;
38 }
39
40 // 블루프린트 애니메이션이 없으면 기본 스크립트 애니메이션 사용
41 SetRenderTransformPivot(OpenPivot);
42 SetRenderScale(FVector2D(OpenStartScale, OpenStartScale));
43
44 bIsOpenAnim = OpenDuration > KINDA_SMALL_NUMBER;
45 OpenElapsedTime = 0.0f;
46
47 if (!bIsOpenAnim)
48 {
49 SetRenderScale(FVector2D(OpenTargetScale, OpenTargetScale));
50 }
51}
EGameSoundType OpenAnimSound
팝업 오픈 시 재생될 사운드 타입
Definition UBasePopup.h:96
float OpenDuration
애니메이션 지속 시간
Definition UBasePopup.h:64
float OpenElapsedTime
경과 시간
Definition UBasePopup.h:60
float OpenStartScale
시작 스케일
Definition UBasePopup.h:68
FVector2D OpenPivot
애니메이션 중심점 (0~1 범위)
Definition UBasePopup.h:76
float OpenTargetScale
목표 스케일
Definition UBasePopup.h:72
UWidgetAnimation * BlueprintOpenAnimation
블루프린트에서 정의한 오픈 애니메이션
Definition UBasePopup.h:45
게임 내 모든 사운드 재생을 관리하는 중앙 사운드 관리 서브시스템입니다.

다음을 참조함 : UBasePopup::bIsOpenAnim, UBasePopup::BlueprintOpenAnimation, None, UBasePopup::OpenAnimSound, UBasePopup::OpenDuration, UBasePopup::OpenElapsedTime, UBasePopup::OpenPivot, UBasePopup::OpenStartScale, UBasePopup::OpenTargetScale.

◆ SetDesc()

void UPopup_MsgBox::SetDesc ( const FString &  InDescription)
private

UPopup_MsgBox.cpp 파일의 18 번째 라인에서 정의되었습니다.

18{ Txt_Desc->SetText(FText::FromString(InDescription)); }
class UTextBlock * Txt_Desc

다음을 참조함 : Txt_Desc.

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

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

◆ SetTitle()

void UPopup_MsgBox::SetTitle ( const FString &  InTitle)
private

UPopup_MsgBox.cpp 파일의 17 번째 라인에서 정의되었습니다.

17{ Txt_Title->SetText(FText::FromString(InTitle)); }
class UTextBlock * Txt_Title

다음을 참조함 : Txt_Title.

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

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

◆ UpdateAnimation()

void UBasePopup::UpdateAnimation ( float  InDeltaTime)
protectedinherited

스크립트 오픈 애니메이션 업데이트

UBasePopup.cpp 파일의 53 번째 라인에서 정의되었습니다.

54{
55 if (!bIsOpenAnim)
56 {
57 return;
58 }
59
60 OpenElapsedTime += InDeltaTime;
61
62 const float Alpha = FMath::Clamp(OpenElapsedTime / OpenDuration, 0.0f, 1.0f);
63 const float EasedAlpha = FEaseHelper::Ease(Alpha, OpenEaseType);
64 const float NewScale = FMath::Lerp(OpenStartScale, OpenTargetScale, EasedAlpha);
65
66 SetRenderScale(FVector2D(NewScale, NewScale));
67
68 if (Alpha >= 1.0f)
69 {
70 bIsOpenAnim = false;
71 }
72}
EEaseType OpenEaseType
Easing 타입
Definition UBasePopup.h:83
static float Ease(float Alpha, EEaseType Type)
Definition FEaseHelper.h:45

다음을 참조함 : UBasePopup::bIsOpenAnim, FEaseHelper::Ease(), UBasePopup::OpenDuration, UBasePopup::OpenEaseType, UBasePopup::OpenElapsedTime, UBasePopup::OpenStartScale, UBasePopup::OpenTargetScale.

다음에 의해서 참조됨 : UBasePopup::NativeTick().

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

멤버 데이터 문서화

◆ bAllowPlayerControl

bool UBasePopup::bAllowPlayerControl = false
inherited

이 팝업이 활성화되어 있을 때 플레이어 조작을 허용할지 여부

true면 이 팝업이 열려있어도 플레이어가 캐릭터를 조작할 수 있습니다. 기본값은 false (대부분의 팝업은 플레이어 조작을 차단)

UBasePopup.h 파일의 105 번째 라인에서 정의되었습니다.

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

◆ bIsOpenAnim

bool UBasePopup::bIsOpenAnim = false
protectedinherited

애니메이션 재생 중 여부

UBasePopup.h 파일의 57 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::NativeTick(), UBasePopup::OpenAnimation(), UBasePopup::UpdateAnimation().

◆ BlueprintOpenAnimation

UWidgetAnimation* UBasePopup::BlueprintOpenAnimation
protectedinherited

블루프린트에서 정의한 오픈 애니메이션

설정된 경우 스크립트 애니메이션 대신 이 애니메이션을 재생합니다.

UBasePopup.h 파일의 45 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation().

◆ Btn_Cancel

class UImageButton* UPopup_MsgBox::Btn_Cancel

UPopup_MsgBox.h 파일의 60 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitButton().

◆ Btn_Close

class UTextureButton* UPopup_MsgBox::Btn_Close

UPopup_MsgBox.h 파일의 51 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitButton().

◆ Btn_Ok

class UImageButton* UPopup_MsgBox::Btn_Ok

UPopup_MsgBox.h 파일의 54 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitButton().

◆ OnCancelDelegate

FOnMsgBoxCancelDelegate UPopup_MsgBox::OnCancelDelegate
private

UPopup_MsgBox.h 파일의 64 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitPopup(), InitPopup(), OnClickCancel().

◆ OnOkDelegate

FOnMsgBoxOkDelegate UPopup_MsgBox::OnOkDelegate
private

UPopup_MsgBox.h 파일의 63 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitPopup(), InitPopup(), OnClickOk().

◆ OpenAnimSound

EGameSoundType UBasePopup::OpenAnimSound = EGameSoundType::UI_PopupOpen
protectedinherited

팝업 오픈 시 재생될 사운드 타입

블루프린트에서 팝업별로 다른 사운드를 설정할 수 있습니다. None으로 설정하면 사운드를 재생하지 않습니다. 기본값은 UI_PopupOpen입니다.

UBasePopup.h 파일의 96 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation().

◆ OpenDuration

float UBasePopup::OpenDuration = 0.2f
protectedinherited

애니메이션 지속 시간

UBasePopup.h 파일의 64 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation(), UBasePopup::UpdateAnimation().

◆ OpenEaseType

EEaseType UBasePopup::OpenEaseType = EEaseType::EaseOutBack
protectedinherited

Easing 타입

애니메이션의 보간 곡선을 선택합니다. 기본값은 EaseOutBack (탄성 효과)

UBasePopup.h 파일의 83 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::UpdateAnimation().

◆ OpenElapsedTime

float UBasePopup::OpenElapsedTime = 0.0f
protectedinherited

경과 시간

UBasePopup.h 파일의 60 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation(), UBasePopup::UpdateAnimation().

◆ OpenPivot

FVector2D UBasePopup::OpenPivot = FVector2D(0.5f, 0.5f)
protectedinherited

애니메이션 중심점 (0~1 범위)

UBasePopup.h 파일의 76 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation().

◆ OpenStartScale

float UBasePopup::OpenStartScale = 0.8f
protectedinherited

시작 스케일

UBasePopup.h 파일의 68 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation(), UBasePopup::UpdateAnimation().

◆ OpenTargetScale

float UBasePopup::OpenTargetScale = 1.0f
protectedinherited

목표 스케일

UBasePopup.h 파일의 72 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UBasePopup::OpenAnimation(), UBasePopup::UpdateAnimation().

◆ PopupType

EPopupType UBasePopup::PopupType
protectedinherited

UBasePopup.h 파일의 34 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : UPopup_InputMsg::InitPopup(), UPopup_InputMsg::OnClickOk().

◆ Spacing_OkCancel

class USpacer* UPopup_MsgBox::Spacing_OkCancel

UPopup_MsgBox.h 파일의 57 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : InitButton().

◆ Txt_Desc

class UTextBlock* UPopup_MsgBox::Txt_Desc

UPopup_MsgBox.h 파일의 48 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetDesc().

◆ Txt_Title

class UTextBlock* UPopup_MsgBox::Txt_Title

UPopup_MsgBox.h 파일의 45 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : SetTitle().


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