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

#include <UDailyKioskWidget.h>

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

Public 멤버 함수

void InitInfo (const FString InKey, const FString InDesc)
 
void UpdateBestScore ()
 Daily Best Score를 로드하고 UI에 표시
 
void UpdateDesc (const FString &NewDesc)
 

Protected 멤버 함수

virtual void NativeConstruct () override
 

Protected 속성

TObjectPtr< class UTextBlock > Txt_BestScore
 Best Score 표시 텍스트 (Blueprint에서 바인딩)
 
TObjectPtr< class UTextBlock > Txt_Desc
 
TObjectPtr< class UTextBlock > Txt_Key
 

상세한 설명

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

멤버 함수 문서화

◆ InitInfo()

void UInteractWidget::InitInfo ( const FString  InKey,
const FString  InDesc 
)
inherited

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

9{
10 Txt_Key->SetText(FText::FromString(InKey));
11 Txt_Desc->SetText(FText::FromString(InDesc));
12}
TObjectPtr< class UTextBlock > Txt_Key
TObjectPtr< class UTextBlock > Txt_Desc

다음을 참조함 : UInteractWidget::Txt_Desc, UInteractWidget::Txt_Key.

◆ NativeConstruct()

void UDailyKioskWidget::NativeConstruct ( )
overrideprotectedvirtual

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

10{
11 Super::NativeConstruct();
12
13 // Best Score 로드 및 표시
15}
void UpdateBestScore()
Daily Best Score를 로드하고 UI에 표시

다음을 참조함 : UpdateBestScore().

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

◆ UpdateBestScore()

void UDailyKioskWidget::UpdateBestScore ( )

Daily Best Score를 로드하고 UI에 표시

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

18{
19 // 플레이어 UserID 가져오기
20 const int32 UserId = ULingoGameHelper::GetUserId(this);
21
22 // ConfigLibrary에서 Daily Best Score 읽기
23 const int32 BestScore = UConfigLibrary::GetUserInt(UserId, TEXT("DailyBestScore"), 0);
24
25 // TextBlock에 표시
26 if (Txt_BestScore)
27 {
28 FString ScoreText = FString::Printf(TEXT("Daily Best: %d"), BestScore);
29 Txt_BestScore->SetText(FText::FromString(ScoreText));
30
31 PRINTLOG(TEXT("[DailyKioskWidget] User %d - Best Score: %d"), UserId, BestScore);
32 }
33 else
34 {
35 PRINTLOG(TEXT("[DailyKioskWidget] ERROR: Txt_BestScore is null!"));
36 }
37}
#define PRINTLOG(fmt,...)
Definition GameLogging.h:30
static int32 GetUserInt(int32 UserId, const FString &Key, int32 DefaultValue=0)
유저별 정수 설정 읽기
TObjectPtr< class UTextBlock > Txt_BestScore
Best Score 표시 텍스트 (Blueprint에서 바인딩)
static int32 GetUserId(const UObject *WorldContextObject)

다음을 참조함 : ULingoGameHelper::GetUserId(), UConfigLibrary::GetUserInt(), PRINTLOG, Txt_BestScore.

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

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

◆ UpdateDesc()

void UInteractWidget::UpdateDesc ( const FString &  NewDesc)
inherited

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

15{
16 if (Txt_Desc)
17 Txt_Desc->SetText(FText::FromString(NewDesc));
18}

다음을 참조함 : UInteractWidget::Txt_Desc.

멤버 데이터 문서화

◆ Txt_BestScore

TObjectPtr<class UTextBlock> UDailyKioskWidget::Txt_BestScore
protected

Best Score 표시 텍스트 (Blueprint에서 바인딩)

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

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

◆ Txt_Desc

TObjectPtr<class UTextBlock> UInteractWidget::Txt_Desc
protectedinherited

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

다음에 의해서 참조됨 : UInteractWidget::InitInfo(), UInteractWidget::UpdateDesc().

◆ Txt_Key

TObjectPtr<class UTextBlock> UInteractWidget::Txt_Key
protectedinherited

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

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


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