Files
UnrealEngine/Engine/Source/Developer/SlateFontDialog/Private/SlateFontDialogModule.cpp
2025-05-18 13:04:45 +08:00

23 lines
594 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SlateFontDialogModule.h"
#include "Modules/ModuleManager.h"
#include "SlateFontDlgWindow.h"
bool FSlateFontDialogModule::OpenFontDialog(FString& OutFontName, float& OutHeight, EFontImportFlags& OutFlags)
{
bool SuccessfulLoad = false;
FSlateFontDlgWindow FontDialog(SuccessfulLoad);
if (!SuccessfulLoad)
{
return false;
}
bool SuccessfulWindow = false;
FontDialog.OpenFontWindow(OutFontName, OutHeight, OutFlags, SuccessfulWindow);
return SuccessfulWindow;
}
IMPLEMENT_MODULE(FSlateFontDialogModule, SlateFontDialog);