KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UEvaluationTotal.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 "UEvaluationTotal.h"
4
5#include "UGameDataManager.h"
6#include "ULingoGameHelper.h"
7#include "Components/Image.h"
8#include "Components/TextBlock.h"
9#include "Onepiece/Onepiece.h"
10
11void UEvaluationTotal::InitPanel(const FTotalResult& InTotalResult)
12{
13 Txt_Desc->SetText(FText::FromString(InTotalResult.feedback_summary));
14 Txt_Desc->SetLineHeightPercentage( DefineData::LineHeightPercentage );
15
16 auto GradeTexture = ULingoGameHelper::ConvertGradeString(InTotalResult.grade);
17 if (UTexture2D* Texture = UGameDataManager::Get(this)->GetTexture(GradeTexture))
18 {
19 Image_Grade->SetBrushFromTexture(Texture);
20 }
21}
UGameDataManager 클래스를 선언합니다.
TObjectPtr< class UTextBlock > Txt_Desc
void InitPanel(const FTotalResult &InTotalResult)
전체 결과 데이터로 패널 초기화
TObjectPtr< class UImage > Image_Grade
static EResourceTextureType ConvertGradeString(const FString &Grade)
static const float LineHeightPercentage
Definition Onepiece.h:63
전체 결과 구조체입니다.
FString feedback_summary