25 lines
838 B
C++
25 lines
838 B
C++
#include "ProjectFishEditor.h"
|
|
|
|
#include "DataTableRowSelectorCustomization.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "FProjectFishEditorModule"
|
|
|
|
void FProjectFishEditorModule::StartupModule()
|
|
{
|
|
FPropertyEditorModule& PropModule = FModuleManager::LoadModuleChecked<FPropertyEditorModule>("PropertyEditor");
|
|
PropModule.RegisterCustomPropertyTypeLayout("SkillDataConfig"
|
|
, FOnGetPropertyTypeCustomizationInstance::CreateStatic(&FDataTableRowSelectorCustomization::MakeInstance));
|
|
|
|
}
|
|
|
|
void FProjectFishEditorModule::ShutdownModule()
|
|
{
|
|
if ( FPropertyEditorModule* PropModule = FModuleManager::GetModulePtr<FPropertyEditorModule>("PropertyEditor"))
|
|
{
|
|
PropModule->UnregisterCustomPropertyTypeLayout("SkillDataConfig");
|
|
}
|
|
}
|
|
|
|
#undef LOCTEXT_NAMESPACE
|
|
|
|
IMPLEMENT_MODULE(FProjectFishEditorModule, ProjectFishEditor) |