2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
#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 );
|
|
|
|
|
}
|
|
|
|
|
|