2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#include "ExternalImagePickerPrivatePCH.h"
|
|
|
|
|
#include "IExternalImagePickerModule.h"
|
|
|
|
|
#include "SExternalImagePicker.h"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Public interface for splash screen editor module
|
|
|
|
|
*/
|
|
|
|
|
class FExternalImagePickerModule : public IExternalImagePickerModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual TSharedRef<SWidget> MakeEditorWidget(const FExternalImagePickerConfiguration& InConfiguration) override
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
|
|
|
|
return SNew(SExternalImagePicker)
|
|
|
|
|
.TargetImagePath(InConfiguration.TargetImagePath)
|
|
|
|
|
.DefaultImagePath(InConfiguration.DefaultImagePath)
|
|
|
|
|
.OnExternalImagePicked(InConfiguration.OnExternalImagePicked)
|
|
|
|
|
.OnGetPickerPath(InConfiguration.OnGetPickerPath)
|
|
|
|
|
.MaxDisplayedImageDimensions(InConfiguration.MaxDisplayedImageDimensions)
|
|
|
|
|
.RequiresSpecificSize(InConfiguration.bRequiresSpecificSize)
|
|
|
|
|
.RequiredImageDimensions(InConfiguration.RequiredImageDimensions);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IMPLEMENT_MODULE(FExternalImagePickerModule, ExternalImagePicker)
|