KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPopup_MsgBox.h
이 파일의 문서화 페이지로 가기
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#pragma once
4
5#include "CoreMinimal.h"
6#include "UBasePopup.h"
7#include "Blueprint/UserWidget.h"
8#include "UPopup_MsgBox.generated.h"
9
10UCLASS()
11class ONEPIECE_API UPopup_MsgBox : public UBasePopup
12{
13 GENERATED_BODY()
14
15public:
16 void InitPopup(
17 const FString& InTitle,
18 const FString& InDescription,
19 EMsgBoxType InType,
20 const FOnMsgBoxOkDelegate& InOkDelegate,
21 const FOnMsgBoxCancelDelegate& InCancelDelegate);
22
23 void InitPopup(
24 const FString& InTitle,
25 const FString& InDescription,
26 EMsgBoxType InType,
27 const FOnMsgBoxOkDelegate& InOkDelegate);
28
29protected:
30 virtual void NativeConstruct() override;
31
32private:
33 void SetTitle(const FString& InTitle);
34 void SetDesc(const FString& InDescription);
35 void InitButton(EMsgBoxType InType);
36
37 UFUNCTION()
38 void OnClickOk();
39
40 UFUNCTION()
41 void OnClickCancel();
42
43public:
44 UPROPERTY(meta = (BindWidget))
45 class UTextBlock* Txt_Title;
46
47 UPROPERTY(meta = (BindWidget))
48 class UTextBlock* Txt_Desc;
49
50 UPROPERTY(meta = (BindWidget))
51 class UTextureButton* Btn_Close;
52
53 UPROPERTY(meta = (BindWidget))
54 class UImageButton* Btn_Ok;
55
56 UPROPERTY(meta = (BindWidget))
57 class USpacer* Spacing_OkCancel;
58
59 UPROPERTY(meta = (BindWidget))
60 class UImageButton* Btn_Cancel;
61
62private:
63 FOnMsgBoxOkDelegate OnOkDelegate;
64 FOnMsgBoxCancelDelegate OnCancelDelegate;
65};
EMsgBoxType
Definition EPopupType.h:49
모든 팝업의 기본 클래스
Definition UBasePopup.h:19
UImageButton
심플한 텍스쳐 기반 버튼 위젯