Payback 0.0.1
CK Graduation Project
로딩중...
검색중...
일치하는것 없음
UIContext.h
이 파일의 문서화 페이지로 가기
1#pragma once
2#include "CoreMinimal.h"
3#include "CK_UE.h"
4#include "GameplayTagContainer.h"
5#include "UI/UserWidgetBase.h"
6#include "UIContext.generated.h"
7
8USTRUCT(Blueprintable)
10{
11 GENERATED_BODY()
12
13public:
14 bool IsValid(const UStruct* BaseClass) const
15 {
16 return WidgetClass.Get() && LayerTag.IsValid() && WidgetClass->IsChildOf(BaseClass);
17 }
18
19 bool IsValid() const
20 {
21 return WidgetClass.Get() && LayerTag.IsValid();
22 }
23
24public:
25 // UI 타입입니다. Stack 방식의 Layer로 관리되며, 마지막에 들어온 UI일 수록 앞쪽에 쌓입니다.
26 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Context", meta = (Categories = "UI.Layer"))
27 FGameplayTag LayerTag;
28
29 //값이 클 수록 앞쪽에 배치됩니다.
30 UPROPERTY(EditAnywhere, BlueprintReadWrite)
31 int32 ZOrder = 0;
32
33 // Primary가 켜져있다면, PopAllWidget에서 제거되지 않음.
34 UPROPERTY(EditAnywhere, BlueprintReadWrite)
35 bool Primary = false;
36
37 // false면 Push 직후 Activate()를 호출하지 않는다. 레이어 가시성과 무관하게 적용됨.
38 UPROPERTY(EditAnywhere, BlueprintReadWrite)
39 bool bActivateOnPush = true;
40
41 // true면 SnapshotSubsystem에 Push 명령을 기록할 수 있다.
42 UPROPERTY(EditAnywhere, BlueprintReadWrite)
43 bool bCanIncludeInSnapshot = false;
44
45 UPROPERTY(EditAnywhere, BlueprintReadWrite)
46 TSubclassOf<UUserWidgetBase> WidgetClass;
47};
Definition UserWidgetBase.h:35
Definition UIContext.h:10
bool IsValid() const
Definition UIContext.h:19
bool IsValid(const UStruct *BaseClass) const
Definition UIContext.h:14