You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#jira #preflight 6306736ac85b7fef22be7751 [CL 21558583 by bryan sefcik in ue5-main branch]
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IDetailCustomization.h"
|
|
#include "Templates/SharedPointer.h"
|
|
|
|
class IDetailLayoutBuilder;
|
|
class IPropertyHandle;
|
|
class ULocalLightComponent;
|
|
|
|
class FLocalLightComponentDetails : public IDetailCustomization
|
|
{
|
|
public:
|
|
FLocalLightComponentDetails() : LastLightBrigtness(0) {}
|
|
|
|
/** 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;
|
|
virtual void CustomizeDetails( const TSharedPtr<IDetailLayoutBuilder>& DetailBuilder ) override;
|
|
|
|
protected:
|
|
|
|
// The detail builder for this cusomtomisation
|
|
TWeakPtr<IDetailLayoutBuilder> CachedDetailBuilder;
|
|
|
|
void ResetIntensityUnitsToDefault(TSharedPtr<IPropertyHandle> PropertyHandle, ULocalLightComponent* Component);
|
|
bool IsIntensityUnitsResetToDefaultVisible(TSharedPtr<IPropertyHandle> PropertyHandle, ULocalLightComponent* Component) const;
|
|
|
|
|
|
/** Called when the intensity units are changed */
|
|
void OnIntensityUnitsPreChange(ULocalLightComponent* Component);
|
|
void OnIntensityUnitsChanged(ULocalLightComponent* Component);
|
|
|
|
float LastLightBrigtness;
|
|
};
|