KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPopup_SpeakResultItem.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
5#include "ULingoGameHelper.h"
6#include "UGameDataManager.h"
7#include "Components/TextBlock.h"
8#include "Components/Image.h"
9#include "Onepiece/Onepiece.h"
10
12{
13 Txt_Index->SetText(FText::FromString(FString::Printf(TEXT("Q%d"), InItemData.Index)));
14 Txt_Question->SetText(FText::FromString(InItemData.Question));
15 Txt_Feedback->SetText(FText::FromString(InItemData.Feedback));
16
17 Txt_Feedback->SetLineHeightPercentage( DefineData::LineHeightPercentage );
18
19
20 auto GradeTexture = ULingoGameHelper::ConvertGradeScore(InItemData.Score);
21 if (UTexture2D* Texture = UGameDataManager::Get(this)->GetTexture(GradeTexture))
22 {
23 Image_Grade->SetBrushFromTexture(Texture);
24 }
25}
UGameDataManager 클래스를 선언합니다.
static EResourceTextureType ConvertGradeScore(const float Score)
TObjectPtr< class UTextBlock > Txt_Question
void InitData(const FSpeakResultItem &InItemData)
TObjectPtr< class UImage > Image_Grade
TObjectPtr< class UTextBlock > Txt_Index
TObjectPtr< class UTextBlock > Txt_Feedback
static const float LineHeightPercentage
Definition Onepiece.h:63