Files
UnrealEngineUWP/Engine/Source/Editor/Layers/Private/LayersModule.cpp
Ben Marsh 149375b14b Update copyright notices to 2015.
[CL 2379638 by Ben Marsh in Main branch]
2014-12-07 19:09:38 -05:00

34 lines
771 B
C++

// Copyright 1998-2015 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 );
}