Files
UnrealEngineUWP/Engine/Source/Editor/FontEditor/Private/FontFaceDetailsCustomization.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

41 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Input/Reply.h"
#include "IDetailCustomization.h"
class IDetailLayoutBuilder;
/**
* Customize the font face asset to allow you to pick a file and store the result in the asset
*/
class FFontFaceDetailsCustomization : public IDetailCustomization
{
public:
static TSharedRef<IDetailCustomization> MakeInstance()
{
return MakeShareable(new FFontFaceDetailsCustomization());
}
/** IDetailCustomization interface */
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
private:
/** Get the leaf name of the font to show in the UI. */
FText GetFontDisplayName() const;
/** Get the full name of the font to show in the tooltip. */
FText GetFontDisplayToolTip() const;
/** Called in response to the user wanting to pick a new font file. */
FReply OnBrowseFontPath();
/** Called in response to a new font file being picked. */
void OnFontPathPicked(const FString& InNewFontFilename);
/** Array of objects being edited by this customization. */
TArray<TWeakObjectPtr<UObject>> ObjectsBeingEdited;
};