KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
ULuggageInfoWidget.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
5
6#include "UGameDataManager.h"
7#include "Components/TextBlock.h"
8
9void ULuggageInfoWidget::InitLuggage(const FString& Type1, const FString& Type2)
10{
11 UpdateType1Data(Type1);
12 UpdateType2Data(Type2);
13}
14
15void ULuggageInfoWidget::UpdateType1Data(const FString& TypeData)
16{
17 Txt_Type1->SetText(FText::FromString(TypeData));
18}
19
20void ULuggageInfoWidget::UpdateType2Data(const FString& TypeData)
21{
22 Txt_Type2->SetText(FText::FromString(TypeData));
23}
UGameDataManager 클래스를 선언합니다.
void UpdateType2Data(const FString &TypeData)
void InitLuggage(const FString &Type1, const FString &Type2)
TObjectPtr< class UTextBlock > Txt_Type1
void UpdateType1Data(const FString &TypeData)
TObjectPtr< class UTextBlock > Txt_Type2