27 lines
1.3 KiB
C++
27 lines
1.3 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
#include "IDetailCustomization.h"
|
|
|
|
/**
|
|
* Details panel layout for UNpcScheduleAsset: everything the asset already had, with the day its
|
|
* actions describe drawn underneath it as a strip, see SNpcScheduleTimeline.
|
|
*
|
|
* All this does is put the strip there. It adds no row for any property and takes none away, so the
|
|
* actions themselves keep the rows the panel and FNpcScheduleActionCustomization give them: the strip
|
|
* is a view of what those rows say, and a second place to write an action would be a second answer to
|
|
* what a day is.
|
|
*
|
|
* The strip goes in a category of its own sorted after the one the asset's properties land in, which
|
|
* is what puts it at the bottom of the editor. A category is as close as a details customization can
|
|
* get to the bottom of anything: the panel is one scrolling column and everything in it is a row of
|
|
* it, so the bottom of the panel is the bottom of the layout, under every row rather than pinned to
|
|
* the edge of the window the way a status bar would be.
|
|
*/
|
|
class FNpcScheduleAssetCustomization : public IDetailCustomization {
|
|
public:
|
|
static TSharedRef<IDetailCustomization> MakeInstance();
|
|
virtual void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
};
|