You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#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]
41 lines
1.1 KiB
C++
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;
|
|
};
|