Display for schedule data asset timeline, view only

This commit is contained in:
2026-09-20 16:43:11 +02:00
parent f3a428af94
commit 472cac79c9
5 changed files with 787 additions and 0 deletions

View File

@@ -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))