You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
34 lines
771 B
C++
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 );
|
|
}
|
|
|