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
4#include "Components/TextBlock.h"
5#include "Onepiece/Onepiece.h"
6
7void 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}
TObjectPtr< class UTextBlock > Txt_Index
문제 번호 텍스트
TObjectPtr< class UTextBlock > Txt_Question
질문 텍스트 (한국어 단어)
TObjectPtr< class UTextBlock > Txt_Feedback
피드백 텍스트
void InitData(const int32 Index, const FString &Question, const FString &FeedBack, const int32 Score)
아이템 데이터로 위젯 초기화
TObjectPtr< class UTextBlock > Txt_Score
점수 텍스트
static const float LineHeightPercentage
Definition Onepiece.h:63