KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UWordWidget.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 "UWordWidget.h"
4
5#include "URichText.h"
6#include "NetworkData.h"
7#include "UPopupManager.h"
8#include "UPopup_Word.h"
9#include "Components/TextBlock.h"
10
12{
13 Super::NativeConstruct();
14
15 if (Rich_Kor)
16 Rich_Kor->SetText(FText::FromString(TEXT("")));
17
18 if (Txt_Eng)
19 Txt_Eng->SetText(FText::FromString(TEXT("")));
20}
21
22void UWordWidget::InitWordData(const FWordData& InWordData)
23{
24 Rich_Kor->SetText(InWordData);
25 Rich_Kor->SetOnClickHyperLink(FOnClickHyperLink::CreateUObject(this, &UWordWidget::OnClickHyperLink));
26
27 Txt_Eng->SetText(FText::FromString(InWordData.Eng));
28}
29
31{
32 if (auto Popup = UPopupManager::ShowPopupAs<UPopup_Word>(GetWorld(), EPopupType::Word))
33 {
34 Popup->InitPopup(Data);
35 }
36
37 // FString Msg = FString::Printf( TEXT("%s, %s"), *Data.Kor, *Data.Pronunciation);
38 // UPopupManager::Get(GetWorld())->ShowMsgBox(TEXT("Notice"), Msg,
39 // EMsgBoxType::OK, FOnMsgBoxOkDelegate());
40}
네트워크 요청과 응답에 사용되는 구조체 및 설정을 정의합니다.
virtual void NativeConstruct() override
TObjectPtr< class UTextBlock > Txt_Eng
Definition UWordWidget.h:36
void InitWordData(const FWordData &InWordData)
TObjectPtr< class URichText > Rich_Kor
Definition UWordWidget.h:33
void OnClickHyperLink(const FPhonemeData &Data)
단어 데이터 구조체입니다.
단어 데이터 구조체입니다.
FString Eng