Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/LightComponentDetails.h
2014-03-14 14:13:41 -04:00

28 lines
888 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#pragma once
class FLightComponentDetails : 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( IDetailLayoutBuilder& DetailBuilder ) OVERRIDE;
private:
/** Helper functions which tell whether the various custom controls are enabled or not */
bool IsLightBrightnessEnabled() const;
bool IsUseIESBrightnessEnabled() const;
bool IsIESBrightnessScaleEnabled() const;
private:
TSharedPtr<IPropertyHandle> IESBrightnessTextureProperty;
TSharedPtr<IPropertyHandle> IESBrightnessEnabledProperty;
TSharedPtr<IPropertyHandle> IESBrightnessScaleProperty;
TSharedPtr<IPropertyHandle> LightIntensityProperty;
};