Display for schedule data asset timeline, view only
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "ItemDataAssetCustomization.h"
|
||||
#include "ItemEditorWindow.h"
|
||||
#include "NpcScheduleActionCustomization.h"
|
||||
#include "NpcScheduleAssetCustomization.h"
|
||||
#include "ScheduleAssetRecheck.h"
|
||||
|
||||
#define LOCTEXT_NAMESPACE "ProjectEleriEditorModule"
|
||||
@@ -35,6 +36,14 @@ void FProjectEleriEditorModule::StartupModule()
|
||||
FOnGetPropertyTypeCustomizationInstance::CreateStatic(&FNpcScheduleActionCustomization::MakeInstance)
|
||||
);
|
||||
|
||||
// Details customization for the schedule asset itself, which draws the day its actions describe as
|
||||
// a strip under everything else the panel shows. Registered under the class's script name, which is
|
||||
// the C++ class name without its U prefix.
|
||||
PropEd.RegisterCustomClassLayout(
|
||||
TEXT("NpcScheduleAsset"),
|
||||
FOnGetDetailCustomizationInstance::CreateStatic(&FNpcScheduleAssetCustomization::MakeInstance)
|
||||
);
|
||||
|
||||
// Register the Item Editor as a docking tab.
|
||||
if (FGlobalTabmanager::Get()->HasTabSpawner(ItemEditorTabName))
|
||||
{
|
||||
@@ -75,6 +84,7 @@ void FProjectEleriEditorModule::ShutdownModule()
|
||||
FPropertyEditorModule& PropEd = FModuleManager::GetModuleChecked<FPropertyEditorModule>("PropertyEditor");
|
||||
PropEd.UnregisterCustomClassLayout(TEXT("ItemDataAsset"));
|
||||
PropEd.UnregisterCustomPropertyTypeLayout(TEXT("ScheduledAction"));
|
||||
PropEd.UnregisterCustomClassLayout(TEXT("NpcScheduleAsset"));
|
||||
}
|
||||
|
||||
if (FGlobalTabmanager::Get()->HasTabSpawner(ItemEditorTabName))
|
||||
|
||||
Reference in New Issue
Block a user