Files
UnrealEngineUWP/Engine/Source/Editor/AddContentDialog/Private/AddContentDialogModule.cpp
Frank Fella 60f9975fc2 AddContentDialog - Upgrade to the nice widget carousel that the launcher uses.
[CL 2357397 by Frank Fella in Main branch]
2014-11-12 14:49:21 -05:00

47 lines
1.3 KiB
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "AddContentDialogPCH.h"
#include "AssertionMacros.h"
#include "FeaturePackContentSourceProvider.h"
#include "ModuleManager.h"
#include "SDockTab.h"
#include "WidgetCarouselModule.h"
#define LOCTEXT_NAMESPACE "AddContentDialog"
class FAddContentDialogModule : public IAddContentDialogModule
{
public:
virtual void StartupModule() override
{
FModuleManager::LoadModuleChecked<FWidgetCarouselModule>("WidgetCarousel");
ContentSourceProviderManager = TSharedPtr<FContentSourceProviderManager>(new FContentSourceProviderManager());
ContentSourceProviderManager->RegisterContentSourceProvider(MakeShareable(new FFeaturePackContentSourceProvider()));
FAddContentDialogStyle::Initialize();
}
virtual void ShutdownModule() override
{
FAddContentDialogStyle::Shutdown();
}
virtual TSharedRef<FContentSourceProviderManager> GetContentSourceProviderManager() override
{
return ContentSourceProviderManager.ToSharedRef();
}
virtual TSharedRef<SWindow> CreateDialogWindow() override
{
return SNew(SAddContentDialog);
}
private:
TSharedPtr<FContentSourceProviderManager> ContentSourceProviderManager;
};
IMPLEMENT_MODULE(FAddContentDialogModule, AddContentDialog);
#undef LOCTEXT_NAMESPACE