Files
UnrealEngine/Engine/Source/Editor/DetailCustomizations/Private/MoviePlayerSettingsDetails.h
2025-05-18 13:04:45 +08:00

40 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Containers/UnrealString.h"
#include "HAL/Platform.h"
#include "IDetailCustomization.h"
#include "Templates/SharedPointer.h"
class IDetailChildrenBuilder;
class IDetailLayoutBuilder;
class IPropertyHandle;
class FMoviePlayerSettingsDetails : public IDetailCustomization
{
public:
~FMoviePlayerSettingsDetails();
/** 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& DetailLayout ) override;
private:
/** Generate a widget for a movie array element */
void GenerateArrayElementWidget(TSharedRef<IPropertyHandle> PropertyHandle, int32 ArrayIndex, IDetailChildrenBuilder& ChildrenBuilder);
/** Callback for getting the selected path in the picker widget. */
FString HandleFilePathPickerFilePath( TSharedRef<IPropertyHandle> Property ) const;
/** Delegate handler for when a new movie path is picked */
void HandleFilePathPickerPathPicked( const FString& InOutPath, TSharedRef<IPropertyHandle> Property );
private:
/** Handle to the movies array property */
TSharedPtr<IPropertyHandle> StartupMoviesPropertyHandle;
};