Files
UnrealEngineUWP/Engine/Source/Editor/DetailCustomizations/Private/AnimStateNodeDetails.cpp
bryan sefcik 0837230669 Ran IWYU again on half of the Engine/Source/Editor/... source files.
#jira

[CL 21716414 by bryan sefcik in ue5-main branch]
2022-08-30 23:03:03 -04:00

70 lines
2.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AnimStateNodeDetails.h"
#include "DetailCategoryBuilder.h"
#include "DetailLayoutBuilder.h"
#include "DetailWidgetRow.h"
#include "Fonts/SlateFontInfo.h"
#include "HAL/Platform.h"
#include "Internationalization/Internationalization.h"
#include "Misc/Attribute.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/Text/STextBlock.h"
class IDetailCustomization;
#define LOCTEXT_NAMESPACE "FAnimStateNodeDetails"
/////////////////////////////////////////////////////////////////////////
TSharedRef<IDetailCustomization> FAnimStateNodeDetails::MakeInstance()
{
return MakeShareable( new FAnimStateNodeDetails );
}
void FAnimStateNodeDetails::CustomizeDetails( IDetailLayoutBuilder& DetailBuilder )
{
IDetailCategoryBuilder& SegmentCategory = DetailBuilder.EditCategory("Animation State", LOCTEXT("AnimationStateCategoryTitle", "Animation State") );
{
SegmentCategory.AddCustomRow( LOCTEXT("EnteredAnimationStateEventLabel", "Entered State Event") )
[
SNew( STextBlock )
.Text( LOCTEXT("EnteredAnimationStateEventLabel", "Entered State Event") )
.Font( IDetailLayoutBuilder::GetDetailFontBold() )
];
CreateTransitionEventPropertyWidgets(SegmentCategory, TEXT("StateEntered"));
}
{
SegmentCategory.AddCustomRow( LOCTEXT("ExitedAnimationStateEventLabel", "Left State Event") )
[
SNew( STextBlock )
.Text( LOCTEXT("ExitedAnimationStateEventLabel", "Left State Event") )
.Font( IDetailLayoutBuilder::GetDetailFontBold() )
];
CreateTransitionEventPropertyWidgets(SegmentCategory, TEXT("StateLeft"));
}
{
SegmentCategory.AddCustomRow( LOCTEXT("FullyBlendedAnimationStateEventLabel", "Fully Blended State Event") )
[
SNew( STextBlock )
.Text( LOCTEXT("FullyBlendedAnimationStateEventLabel", "Fully Blended State Event") )
.Font( IDetailLayoutBuilder::GetDetailFontBold() )
];
CreateTransitionEventPropertyWidgets(SegmentCategory, TEXT("StateFullyBlended"));
}
DetailBuilder.HideProperty("StateEntered");
DetailBuilder.HideProperty("StateLeft");
DetailBuilder.HideProperty("StateFullyBlended");
}
#undef LOCTEXT_NAMESPACE