You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
45 lines
1.6 KiB
C++
45 lines
1.6 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "DistCurveEditorModule.h"
|
|
#include "ModuleManager.h"
|
|
#include "SDistributionCurveEditor.h"
|
|
|
|
const FName DistCurveEditorAppIdentifier = FName(TEXT("DistCurveEditorApp"));
|
|
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
FDistributionCurveEditorModule
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
class FDistributionCurveEditorModule : public IDistributionCurveEditorModule
|
|
{
|
|
public:
|
|
/** Constructor, set up console commands and variables **/
|
|
FDistributionCurveEditorModule()
|
|
{
|
|
}
|
|
|
|
/** Called right after the module DLL has been loaded and the module object has been created */
|
|
virtual void StartupModule() OVERRIDE
|
|
{
|
|
}
|
|
|
|
/** Called before the module is unloaded, right before the module object is destroyed. */
|
|
virtual void ShutdownModule() OVERRIDE
|
|
{
|
|
}
|
|
|
|
virtual TSharedRef<IDistributionCurveEditor> CreateCurveEditorWidget(UInterpCurveEdSetup* EdSetup, FCurveEdNotifyInterface* NotifyObject) OVERRIDE
|
|
{
|
|
return CreateCurveEditorWidget(EdSetup, NotifyObject, IDistributionCurveEditor::FCurveEdOptions());
|
|
}
|
|
|
|
virtual TSharedRef<IDistributionCurveEditor> CreateCurveEditorWidget(UInterpCurveEdSetup* EdSetup, FCurveEdNotifyInterface* NotifyObject, IDistributionCurveEditor::FCurveEdOptions Options) OVERRIDE
|
|
{
|
|
TSharedRef<IDistributionCurveEditor> Widget = SNew(SDistributionCurveEditor).EdSetup(EdSetup).NotifyObject(NotifyObject).CurveEdOptions(Options);
|
|
return Widget;
|
|
}
|
|
};
|
|
|
|
IMPLEMENT_MODULE( FDistributionCurveEditorModule, DistCurveEditor );
|