A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
DialogueClassViewerFilters.h
Go to the documentation of this file.
1
// Copyright Csaba Molnar, Daniel Butum. All Rights Reserved.
2
#pragma once
3
4
#include "ClassViewerFilter.h"
5
6
7
// Filter used in the class picker to only show non abstract children of class
8
class
FDialogueChildrenOfClassFilterViewer
:
public
IClassViewerFilter
9
{
10
public
:
11
// All children of these classes will be included unless filtered out by another setting.
12
TSet<const UClass*>
AllowedChildrenOfClasses
;
13
14
bool
IsClassAllowed
(
const
FClassViewerInitializationOptions& InInitOptions,
const
UClass* InClass,
15
TSharedRef<FClassViewerFilterFuncs> InFilterFuncs)
override
16
{
17
return
!InClass->HasAnyClassFlags(
DisallowedClassFlags
)
18
&& InFilterFuncs->IfInChildOfClassesSet(
AllowedChildrenOfClasses
, InClass) != EFilterReturn::Failed;
19
}
20
21
bool
IsUnloadedClassAllowed
(
const
FClassViewerInitializationOptions& InInitOptions,
22
const
TSharedRef<const IUnloadedBlueprintData > InUnloadedClassData,
23
TSharedRef< FClassViewerFilterFuncs > InFilterFuncs)
override
24
{
25
return
!InUnloadedClassData->HasAnyClassFlags(
DisallowedClassFlags
)
26
&& InFilterFuncs->IfInChildOfClassesSet(
AllowedChildrenOfClasses
, InUnloadedClassData) != EFilterReturn::Failed;
27
}
28
29
private
:
30
// Disallowed class flags.
31
EClassFlags
DisallowedClassFlags
= CLASS_Deprecated;
32
};
FDialogueChildrenOfClassFilterViewer
Definition
DialogueClassViewerFilters.h:9
FDialogueChildrenOfClassFilterViewer::IsClassAllowed
bool IsClassAllowed(const FClassViewerInitializationOptions &InInitOptions, const UClass *InClass, TSharedRef< FClassViewerFilterFuncs > InFilterFuncs) override
Definition
DialogueClassViewerFilters.h:14
FDialogueChildrenOfClassFilterViewer::AllowedChildrenOfClasses
TSet< const UClass * > AllowedChildrenOfClasses
Definition
DialogueClassViewerFilters.h:12
FDialogueChildrenOfClassFilterViewer::DisallowedClassFlags
EClassFlags DisallowedClassFlags
Definition
DialogueClassViewerFilters.h:31
FDialogueChildrenOfClassFilterViewer::IsUnloadedClassAllowed
bool IsUnloadedClassAllowed(const FClassViewerInitializationOptions &InInitOptions, const TSharedRef< const IUnloadedBlueprintData > InUnloadedClassData, TSharedRef< FClassViewerFilterFuncs > InFilterFuncs) override
Definition
DialogueClassViewerFilters.h:21
IClassViewerFilter
SDKDemo
Plugins
UnrealEngineSDK
VisualScripter
Source
DlgSystemEditor
Private
Factories
DialogueClassViewerFilters.h
Generated
Wed Oct 9 2024 19:52:55
by Doxygen version
1.10.0