104 lines
1.9 KiB
C++
104 lines
1.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "AssetThumbnail.h"
|
|
#include "EditorConfigBase.h"
|
|
#include "Engine/DeveloperSettings.h"
|
|
#include "UObject/ObjectPtr.h"
|
|
#include "UObject/UObjectGlobals.h"
|
|
|
|
#include "ContentBrowserConfig.generated.h"
|
|
|
|
USTRUCT()
|
|
struct FPathViewConfig
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
bool bExpanded = false;
|
|
|
|
UPROPERTY()
|
|
TArray<FString> PluginFilters;
|
|
};
|
|
|
|
USTRUCT()
|
|
struct FContentBrowserInstanceConfig
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY()
|
|
FPathViewConfig PathView;
|
|
|
|
UPROPERTY()
|
|
bool bShowFavorites = true;
|
|
|
|
UPROPERTY()
|
|
bool bFavoritesExpanded = true;
|
|
|
|
UPROPERTY()
|
|
bool bSourcesExpanded = true;
|
|
|
|
UPROPERTY()
|
|
bool bFilterRecursively = false;
|
|
|
|
UPROPERTY()
|
|
bool bShowFolders = true;
|
|
|
|
UPROPERTY()
|
|
bool bShowEmptyFolders = true;
|
|
|
|
UPROPERTY()
|
|
bool bShowEngineContent = false;
|
|
|
|
UPROPERTY()
|
|
bool bShowDeveloperContent = false;
|
|
|
|
UPROPERTY()
|
|
bool bShowLocalizedContent = false;
|
|
|
|
UPROPERTY()
|
|
bool bShowPluginContent = false;
|
|
|
|
UPROPERTY()
|
|
bool bShowCppFolders = false;
|
|
|
|
UPROPERTY()
|
|
bool bSearchClasses = false;
|
|
|
|
UPROPERTY()
|
|
bool bSearchAssetPaths = false;
|
|
|
|
UPROPERTY()
|
|
bool bSearchCollections = false;
|
|
};
|
|
|
|
UCLASS(EditorConfig="ContentBrowser")
|
|
class UContentBrowserConfig : public UEditorConfigBase
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
|
|
static void Initialize();
|
|
static UContentBrowserConfig* Get() { return Instance; }
|
|
|
|
UPROPERTY()
|
|
TSet<FString> Favorites;
|
|
|
|
UPROPERTY(meta=(EditorConfig))
|
|
TMap<FName, FContentBrowserInstanceConfig> Instances;
|
|
|
|
private:
|
|
static TObjectPtr<UContentBrowserConfig> Instance;
|
|
};
|
|
|
|
UCLASS(minimalapi, Config=Editor, DisplayName="Content Browser")
|
|
class UContentBrowserCollectionProjectSettings : public UDeveloperSettings
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
|
|
UPROPERTY(config, EditAnywhere, Category=Collections, meta = (DisplayName="Exclude these collections from Content Browser"))
|
|
TArray<FName> ExcludedCollectionsFromView;
|
|
}; |