Paradies Project
Loading...
Searching...
No Matches
ULoadingWidget Class Reference

비동기 로딩 진행률을 시각적으로 표시하는 위젯 클래스. More...

#include <LoadingWidget.h>

Inheritance diagram for ULoadingWidget:
Inheritance graph
Collaboration diagram for ULoadingWidget:
Collaboration graph

Public Member Functions

 ULoadingWidget (const FObjectInitializer &ObjectInitializer)
void InitLoadingImage (FName CurrentLevel, FName TargetLevel, TSoftObjectPtr< UTexture2D > InDefaultStageImage)
 현재 맵과 목표 맵 정보를 바탕으로 최적의 배경 이미지를 초기화합니다.
void SetLoadingPercent (float Percent)
 로딩 진행률을 설정하고 UI를 갱신합니다.
void SetLoadingText (FText InName, FText InDesc)
 로딩 팁이나 상태 메시지를 변경합니다.
void SetBackgroundImage (UTexture2D *InTexture)
 로딩 배경 이미지를 교체합니다.
void InitAsCovered ()
 Progress=1로 즉시 화면을 덮습니다. (L_Loading/목적지 레벨 플래시 방지).
void PlayDisappearAnim ()
 Anim_Disappear를 재생합니다.
void ShowContent ()
 MPC Progress를 0으로 리셋하여 내용물을 표시합니다.

Protected Member Functions

virtual void NativeConstruct () override
virtual void OnAnimationFinished_Implementation (const UWidgetAnimation *Animation) override
 애니메이션 종료 시점 감지 (Disappear 종료 시 로직 처리용)
void OnLoadingComplete ()
 로딩이 완료되었을 때(100%) 호출되는 이벤트.

Protected Attributes

FSpecialLoadingImages SpecialImages
 기획자가 WBP_Loading 디테일 패널에서 직접 설정할 이미지 뭉치
TObjectPtr< UMaterialParameterCollection > MPC_Loading = nullptr
 Progress 파라미터를 즉시 제어하기 위한 MPC 레퍼런스

Detailed Description

비동기 로딩 진행률을 시각적으로 표시하는 위젯 클래스.

ParadiseGameInstance에서 계산된 로딩 퍼센트(0.0 ~ 1.0)를 받아 ProgressBar와 텍스트를 갱신합니다.

Member Function Documentation

◆ InitLoadingImage()

void ULoadingWidget::InitLoadingImage ( FName CurrentLevel,
FName TargetLevel,
TSoftObjectPtr< UTexture2D > InDefaultStageImage )

현재 맵과 목표 맵 정보를 바탕으로 최적의 배경 이미지를 초기화합니다.

Parameters
CurrentLevel현재 맵 이름
TargetLevel목표 맵 이름
InDefaultStageImage스테이지 데이터 테이블에서 넘어온 로딩 이미지
Here is the call graph for this function:

◆ OnLoadingComplete()

void ULoadingWidget::OnLoadingComplete ( )
protected

로딩이 완료되었을 때(100%) 호출되는 이벤트.

블루프린트에서 페이드 아웃 애니메이션 등을 구현 (일부러 BlueprintImplementableEvent 써서 기획자가 알아서 하도록 만들었음)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetBackgroundImage()

void ULoadingWidget::SetBackgroundImage ( UTexture2D * InTexture)

로딩 배경 이미지를 교체합니다.

Parameters
InTexture교체할 배경 텍스처 (nullptr이면 기본 설정 유지)
Here is the caller graph for this function:

◆ SetLoadingPercent()

void ULoadingWidget::SetLoadingPercent ( float Percent)

로딩 진행률을 설정하고 UI를 갱신합니다.

Parameters
Percent진행률 (0.0 ~ 1.0 범위)

◆ SetLoadingText()

void ULoadingWidget::SetLoadingText ( FText InName,
FText InDesc )

로딩 팁이나 상태 메시지를 변경합니다.

Parameters
NewText표시할 텍스트

The documentation for this class was generated from the following files:
  • Source/Paradise/Public/UI/Widgets/Loading/LoadingWidget.h
  • Source/Paradise/Private/UI/Widgets/Loading/LoadingWidget.cpp