KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
UPopup_LevelSelect.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 "UPopup_LevelSelect.generated.h"
8
10DECLARE_DELEGATE(FOnPopupClosedDelegate);
11
16UCLASS()
17class ONEPIECE_API UPopup_LevelSelect : public UBasePopup
18{
19 GENERATED_BODY()
20
21protected:
22 virtual void NativeConstruct() override;
23
24public:
28 UFUNCTION(BlueprintCallable, Category = "PopupLevelSelect")
29 void InitPopup();
30
31protected:
36 void OnLevelSelected(int32 SelectedLevel);
37
38 UFUNCTION()
39 void OnClickClose();
40
41public:
43 FOnPopupClosedDelegate OnPopupClosed;
44
45protected:
47 UPROPERTY(meta = (BindWidget))
48 TObjectPtr<class UHorizontalBox> HorizontalBox;
49
51 UPROPERTY(meta = (BindWidget))
52 TObjectPtr<class UTextureButton> Btn_Close;
53
55 UPROPERTY(EditAnywhere, Category = "PopupLevelSelect")
56 TSubclassOf<class ULevelSelectItem> LevelSelectItemClass;
57
59 UPROPERTY(EditAnywhere, Category = "PopupLevelSelect")
60 int32 TotalLevels = 3;
61
63 UPROPERTY(EditAnywhere, Category = "PopupLevelSelect")
64 TArray<FString> LevelNames = {TEXT("Begginer"), TEXT("Intermediate"), TEXT("Advanced")};
65};
DECLARE_DELEGATE(FOnPopupClosedDelegate)
팝업 닫힘 델리게이트
모든 팝업의 기본 클래스
Definition UBasePopup.h:19
레벨 선택 아이템 위젯
레벨 선택 팝업 위젯
FOnPopupClosedDelegate OnPopupClosed
팝업이 닫힐 때 호출되는 델리게이트
심플한 텍스쳐 기반 버튼 위젯