54 lines
2.2 KiB
C++
54 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "Components/ChildActorComponent.h"
|
|
#include "CoreMinimal.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "Containers/ArrayView.h"
|
|
|
|
class UActorComponent;
|
|
|
|
/** SCSEditor UI customization */
|
|
class ISCSEditorUICustomization
|
|
{
|
|
public:
|
|
virtual ~ISCSEditorUICustomization() {}
|
|
|
|
UE_DEPRECATED(5.5, "Use version with ObjectContext instead")
|
|
virtual bool HideComponentsTree() const { return false; }
|
|
|
|
UE_DEPRECATED(5.5, "Use version with ObjectContext instead")
|
|
virtual bool HideComponentsFilterBox() const { return false; }
|
|
|
|
UE_DEPRECATED(5.5, "Use version with ObjectContext instead")
|
|
virtual bool HideAddComponentButton() const { return false; }
|
|
|
|
UE_DEPRECATED(5.5, "Use version with ObjectContext instead")
|
|
virtual bool HideBlueprintButtons() const { return false; }
|
|
|
|
UE_DEPRECATED(5.5, "Use version with ObjectContext instead")
|
|
virtual TSubclassOf<UActorComponent> GetComponentTypeFilter() const { return nullptr; }
|
|
|
|
/** @return Whether to hide the components tree */
|
|
virtual bool HideComponentsTree(TArrayView<UObject*> Context) const { return false; }
|
|
|
|
/** @return Whether to hide the components filter box */
|
|
virtual bool HideComponentsFilterBox(TArrayView<UObject*> Context) const { return false; }
|
|
|
|
/** @return Whether to hide the "Add Component" combo button */
|
|
virtual bool HideAddComponentButton(TArrayView<UObject*> Context) const { return false; }
|
|
|
|
/** @return Whether to hide the "Edit Blueprint" and "Blueprint/Add Script" buttons */
|
|
virtual bool HideBlueprintButtons(TArrayView<UObject*> Context) const { return false; }
|
|
|
|
/**
|
|
* @return An override for the default ChildActorComponentTreeViewVisualizationMode from the project settings, if different from UseDefault.
|
|
* @note Setting an override also forces child actor tree view expansion to be enabled.
|
|
*/
|
|
virtual EChildActorComponentTreeViewVisualizationMode GetChildActorVisualizationMode() const { return EChildActorComponentTreeViewVisualizationMode::UseDefault; }
|
|
|
|
/** @return A component type that limits visible nodes when filtering the tree view */
|
|
virtual TSubclassOf<UActorComponent> GetComponentTypeFilter(TArrayView<UObject*> Context) const { return nullptr; }
|
|
};
|