KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
Popup_AskTutorial.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
4#include "Popup_AskTutorial.h"
5
6#include "APlayerControl.h"
7#include "UImageButton.h"
8#include "ULingoGameHelper.h"
9#include "UPopupManager.h"
10#include "UConfigLibrary.h"
11
13{
14 Super::NativeConstruct();
15
16 if (Btn_Yes)
17 {
20 }
21
22 if (Btn_Skip)
23 {
26 }
27}
28
30{
31 if (UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
32 {
33 PopupMgr->HideCurrentPopup();
34 }
35
36 if (APlayerController* PC = GetWorld()->GetFirstPlayerController())
37 {
38 if (APlayerControl* PlayerControl = Cast<APlayerControl>(PC))
39 {
40 PlayerControl->StartTutorialManually();
41 }
42 }
43}
44
46{
47 // 세이브 시스템에 여부 저장
48 const int32 UserId = ULingoGameHelper::GetUserId(GetWorld());
49 UConfigLibrary::SetUserBool(UserId, TEXT("TutorialCompleted"), true);
50
51 // 일단 그냥 창 닫히게
52 if (UPopupManager* PopupMgr = UPopupManager::Get(GetWorld()))
53 {
54 PopupMgr->HideCurrentPopup();
55 }
56}
APlayerControl 선언에 대한 Doxygen 주석을 제공합니다.
GConfig 래퍼 설정 관리 시스템
static void SetUserBool(int32 UserId, const FString &Key, bool bValue, bool bAutoSave=true)
유저별 불린 설정 저장
FOnImageButtonClickedEvent OnButtonClickedEvent
버튼 클릭 시 발생하는 이벤트
static int32 GetUserId(const UObject *WorldContextObject)
팝업 관리자
class UImageButton * Btn_Skip
class UImageButton * Btn_Yes
virtual void NativeConstruct() override