4#include "ContentBrowserModule.h"
7#include "Engine/Blueprint.h"
12#define LOCTEXT_NAMESPACE "DialogueSystemContentBrowserExtensions"
76 return TEXT(
"Dialogue Participant Filter");
80 return LOCTEXT(
"FilterDialogueParticipants_Name",
"Dialogue Participant");
84 return LOCTEXT(
"FilterDialogueParticipants_ToolTip",
"Search for any Blueprints that implement the Dialogue Participant Interface");
87 FLinearColor
GetColor()
const override {
return FLinearColor(0.91f, 0.91f, 0.f); }
98#if ENGINE_MINOR_VERSION >= 26
99 FAssetData ItemAssetData;
100 if (!InItem.Legacy_TryGetAssetData(ItemAssetData))
105 if (
const UObject*
Object = ItemAssetData.FastGetAsset(
false))
110 if (!InItem.IsAssetLoaded())
287 TSharedPtr<FFrontendFilterCategory> DefaultCategory,
288 TArray<TSharedRef<FFrontendFilter>>& InOutFilterList
295 TSharedPtr<FFrontendFilterCategory> DialogueCategory = MakeShared<FFrontendFilterCategory>(
302 InOutFilterList.Add(MakeShared<FFrontendFilter_DialogueParticipants>(DialogueCategory));
321#undef LOCTEXT_NAMESPACE
static const FText OTHER_DIALOGUE_SYSTEM_MENU_CATEGORY_KEY_TEXT(NSLOCTEXT("OtherDlgSystemEditor", "OtherDlgSystemAssetCategory", "OtherDialogue System"))
static const FName OTHER_DIALOGUE_SYSTEM_MENU_CATEGORY_KEY(TEXT("Other Dialogue System"))
static void InstallHooks()
static void RemoveHooks()
bool PassesFilter(FAssetFilterType InItem) const override
FText GetDisplayName() const override
FFrontendFilter_DialogueParticipants(const TSharedPtr< FFrontendFilterCategory > &InCategory)
FName GetIconName() const override
FLinearColor GetColor() const override
FString GetName() const override
FText GetToolTipText() const override
void AddFrontEndFilterExtensions(TSharedPtr< FFrontendFilterCategory > DefaultCategory, TArray< TSharedRef< FFrontendFilter > > &InOutFilterList) const override
static bool DoesObjectImplementDialogueParticipantInterface(const UObject *Object)
UFUNCTION(BlueprintPure, Category = "Dialogue|Helper")