2024-04-12 09:42:41 -07:00
|
|
|
#include "GasaEditorModule.h"
|
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
#include "EditorDetails/GlobeProgressBarDetails.h"
|
|
|
|
#include "UI/GlobeProgressBar.h"
|
|
|
|
|
2024-04-12 09:42:41 -07:00
|
|
|
IMPLEMENT_PRIMARY_GAME_MODULE(FGasaEditorModule, GasaEditor, GasaEditor);
|
|
|
|
|
|
|
|
void FGasaEditorModule::StartupModule()
|
|
|
|
{
|
2024-04-21 06:51:51 -07:00
|
|
|
FPropertyEditorModule& PropertyEditor = FModuleManager::LoadModuleChecked<FPropertyEditorModule>("PropertyEditor");
|
2024-04-12 09:42:41 -07:00
|
|
|
|
2024-04-21 06:51:51 -07:00
|
|
|
PropertyEditor.RegisterCustomClassLayout( UGlobeProgressBar::StaticClass()->GetFName()
|
|
|
|
, FOnGetDetailCustomizationInstance::CreateStatic(& FGlobeProgressBarDetails::MakeInstance)
|
|
|
|
);
|
2024-04-12 09:42:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void FGasaEditorModule::ShutdownModule()
|
|
|
|
{
|
2024-04-21 06:51:51 -07:00
|
|
|
if (FModuleManager::Get().IsModuleLoaded("PropertyEditor"))
|
|
|
|
{
|
|
|
|
FPropertyEditorModule& PropertyEditor = FModuleManager::GetModuleChecked<FPropertyEditorModule>("PropertyEditor");
|
|
|
|
PropertyEditor.UnregisterCustomClassLayout(UGlobeProgressBar::StaticClass()->GetFName());
|
|
|
|
}
|
2024-04-12 09:42:41 -07:00
|
|
|
}
|
|
|
|
|