Files
UnrealEngineUWP/Engine/Source/Editor/Layers/Private/LayersModule.cpp
Matthew Griffin bb70b349ce Merging CL 2804086 from //UE4/Release-4.11 to Dev-Main (//UE4/Dev-Main) to isolate copyright update
#lockdown Nick.Penwarden

[CL 2819020 by Matthew Griffin in Main branch]
2016-01-07 08:17:16 -05:00

34 lines
771 B
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "LayersPrivatePCH.h"
#include "ModuleManager.h"
IMPLEMENT_MODULE( FLayersModule, Layers );
void FLayersModule::StartupModule()
{
FLayersViewCommands::Register();
}
void FLayersModule::ShutdownModule()
{
FLayersViewCommands::Unregister();
}
TSharedRef< SWidget > FLayersModule::CreateLayerBrowser()
{
return SNew( SLayerBrowser );
}
TSharedRef< class SWidget> FLayersModule::CreateLayerCloud( const TArray< TWeakObjectPtr< AActor > >& Actors )
{
TSharedRef< class FActorLayerCollectionViewModel > CloudViewModel( FActorLayerCollectionViewModel::Create( GEditor->Layers.ToSharedRef(), GEditor ) );
CloudViewModel->SetActors( Actors );
return SNew( SActorLayerCloud, CloudViewModel );
}