You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
|
|
/**
|
|
* Implements a details view customization for the UMediaTexture class.
|
|
*/
|
|
class FMediaTextureCustomization
|
|
: public IDetailCustomization
|
|
{
|
|
public:
|
|
|
|
// IDetailCustomization interface
|
|
|
|
virtual void CustomizeDetails( IDetailLayoutBuilder& DetailBuilder ) override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Creates an instance of this class.
|
|
*
|
|
* @return The new instance.
|
|
*/
|
|
static TSharedRef<IDetailCustomization> MakeInstance()
|
|
{
|
|
return MakeShareable(new FMediaTextureCustomization());
|
|
}
|
|
|
|
private:
|
|
|
|
/** Callback for generating the menu content of the VideoTrack combo box. */
|
|
TSharedRef<SWidget> HandleVideoTrackComboButtonMenuContent() const;
|
|
|
|
/** Callback for selecting a track in the VideoTrack combo box. */
|
|
void HandleVideoTrackComboButtonMenuEntryExecute( uint32 TrackIndex );
|
|
|
|
/** Callback for getting the text of the VideoTrack combo box. */
|
|
FText HandleVideoTrackComboButtonText() const;
|
|
|
|
private:
|
|
|
|
/** The collection of media textures being customized */
|
|
TArray<TWeakObjectPtr<UObject>> CustomizedMediaTextures;
|
|
|
|
/** Pointer to the MediaPlayer property handle. */
|
|
TSharedPtr<IPropertyHandle> MediaPlayerProperty;
|
|
|
|
/** Pointer to the VideoTrackIndex property handle. */
|
|
TSharedPtr<IPropertyHandle> VideoTrackIndexProperty;
|
|
};
|