mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Files
e59338fcbb052d40802ffaf991924b2aebf04341
53 lines
2.0 KiB
C
53 lines
2.0 KiB
C
// Copyright Epic Games, Inc. All Rights Reserved.
|
|||
|
|||
#pragma once
|
|||
|
|||
#include "CoreMinimal.h"
|
|||
#include "Modules/ModuleInterface.h"
|
|||
#include "PropertyEditorDelegates.h"
|
|||
|
|||
class SWidget;
|
|||
class FAdvancedPreviewScene;
|
|||
|
|||
class FAdvancedPreviewSceneModule : public IModuleInterface
|
|||
{
|
|||
public:
|
|||
/** Info about a per-instance details customization */
|
|||
struct FDetailCustomizationInfo
|
|||
{
|
|||
UStruct* Struct;
|
|||
FOnGetDetailCustomizationInstance OnGetDetailCustomizationInstance;
|
|||
};
|
|||
|
|||
/** Info about a per-instance property type customization */
|
|||
struct FPropertyTypeCustomizationInfo
|
|||
{
|
|||
FName StructName;
|
|||
FOnGetPropertyTypeCustomizationInstance OnGetPropertyTypeCustomizationInstance;
|
|||
};
|
|||
|
|||
|
Copy up from Dev-Editor @10681378
#rb none
[CL 10837446 by Chris Gagnon in Dev-Tools-Staging branch]
|
DECLARE_MULTICAST_DELEGATE_OneParam(FOnPreviewSceneChanged, TSharedRef<FAdvancedPreviewScene>);
|
||
|
|||
/** Info about a Delegates to subscribe to */
|
|||
struct FDetailDelegates
|
|||
{
|
|||
FOnPreviewSceneChanged& OnPreviewSceneChangedDelegate;
|
|||
};
|
|||
|
|||
// IModuleInterface implementation
|
|||
virtual void StartupModule() override;
|
|||
virtual void ShutdownModule() override;
|
|||
|
|||
/**
|
|||
* Create an advanced preview scene settings widget.
|
|||
*
|
|||
* @param InPreviewScene The preview scene to create the widget for
|
|||
* @param InAdditionalSettings Additional settings object to display in the view
|
|||
* @param InDetailCustomizations Customizations to use for this details tab
|
|||
* @param InPropertyTypeCustomizations Customizations to use for this details tab
|
|||
|
Copy up from Dev-Editor @10681378
#rb none
[CL 10837446 by Chris Gagnon in Dev-Tools-Staging branch]
|
* @param InDelegates Delegates to use for this details tab. Array to match other args
|
||
* @return a new widget
|
|||
*/
|
|||
|
Copy up from Dev-Editor @10681378
#rb none
[CL 10837446 by Chris Gagnon in Dev-Tools-Staging branch]
|
virtual TSharedRef<SWidget> CreateAdvancedPreviewSceneSettingsWidget(const TSharedRef<FAdvancedPreviewScene>& InPreviewScene, UObject* InAdditionalSettings = nullptr, const TArray<FDetailCustomizationInfo>& InDetailCustomizations = TArray<FDetailCustomizationInfo>(), const TArray<FPropertyTypeCustomizationInfo>& InPropertyTypeCustomizations = TArray<FPropertyTypeCustomizationInfo>(), const TArray<FDetailDelegates>& InDelegates = TArray<FDetailDelegates>());
|
||
};
|