Files
UnrealEngineUWP/Engine/Source/Editor/LevelEditor/Private/LevelEditorGenericDetails.h
Andrew Rodham 8ed278ece8 Added proper material picker to BSP surfaces
This addresses TTP#345459 - NUX:BSP: Changing or removing the material on a BSP surface was confusing

[CL 2312615 by Andrew Rodham in Main branch]
2014-09-29 04:18:33 -04:00

36 lines
1.1 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
class IMaterialListBuilder;
/**
* Creates details for the level editor details view that are not specific to any selected actor type
*/
class FLevelEditorGenericDetails : public IDetailCustomization
{
public:
/** Makes a new instance of this detail layout class for a specific detail view requesting it */
static TSharedRef<IDetailCustomization> MakeInstance();
/** IDetailCustomization interface */
virtual void CustomizeDetails( class IDetailLayoutBuilder& DetailLayout ) override;
private:
/**
* Adds a section for selected surface details
*/
void AddSurfaceDetails( class IDetailLayoutBuilder& DetailLayout );
/**
* Populate the specified material list with the materials used on the currently selected BSP surfaces
*/
void GetSelectedSurfaceMaterials(IMaterialListBuilder& MaterialList) const;
/**
* Called when the material should be changed on all selected BSP surfaces
*/
void OnMaterialChanged( UMaterialInterface* NewMaterial, UMaterialInterface* PrevMaterial, int32 SlotIndex, bool bReplaceAll );
};