KLingo Project Documentation
1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPopup_DailyResultItem.cpp
이 파일의 문서화 페이지로 가기
1
// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3
#include "
UPopup_DailyResultItem.h
"
4
#include "Components/TextBlock.h"
5
#include "
Onepiece/Onepiece.h
"
6
7
void
UPopup_DailyResultItem::InitData
(
const
int32 Index,
const
FString& Question,
const
FString& FeedBack,
const
int32
Score
)
8
{
9
Txt_Index
->SetText(FText::FromString(FString::Printf(TEXT(
"Q%d"
), Index)));
10
11
// 질문 설정 (한국어 단어)
12
Txt_Question
->SetText(FText::FromString(Question));
13
14
// 피드백 설정
15
if
(!FeedBack.IsEmpty())
16
{
17
Txt_Feedback
->SetText(FText::FromString(FeedBack));
18
}
19
else
20
{
21
Txt_Feedback
->SetText(FText::FromString(TEXT(
"-"
)));
22
}
23
24
Txt_Feedback
->SetLineHeightPercentage(
DefineData::LineHeightPercentage
);
25
26
// 점수 설정
27
Txt_Score
->SetText(FText::FromString(FString::Printf(TEXT(
"%d"
),
Score
)));
28
}
EResourceTextureType::Score
@ Score
Onepiece.h
UPopup_DailyResultItem.h
UPopup_DailyResultItem::Txt_Index
TObjectPtr< class UTextBlock > Txt_Index
문제 번호 텍스트
Definition
UPopup_DailyResultItem.h:32
UPopup_DailyResultItem::Txt_Question
TObjectPtr< class UTextBlock > Txt_Question
질문 텍스트 (한국어 단어)
Definition
UPopup_DailyResultItem.h:36
UPopup_DailyResultItem::Txt_Feedback
TObjectPtr< class UTextBlock > Txt_Feedback
피드백 텍스트
Definition
UPopup_DailyResultItem.h:40
UPopup_DailyResultItem::InitData
void InitData(const int32 Index, const FString &Question, const FString &FeedBack, const int32 Score)
아이템 데이터로 위젯 초기화
Definition
UPopup_DailyResultItem.cpp:7
UPopup_DailyResultItem::Txt_Score
TObjectPtr< class UTextBlock > Txt_Score
점수 텍스트
Definition
UPopup_DailyResultItem.h:44
DefineData::LineHeightPercentage
static const float LineHeightPercentage
Definition
Onepiece.h:63
Source
Onepiece
MessageBox
Private
UPopup_DailyResultItem.cpp
생성시간 : 금 1월 9 2026 00:25:57, 프로젝트명 : KLingo Project Documentation, 생성자 :
1.9.8