本文整理汇总了C++中IDetailCategoryBuilder::GetParentLayout方法的典型用法代码示例。如果您正苦于以下问题:C++ IDetailCategoryBuilder::GetParentLayout方法的具体用法?C++ IDetailCategoryBuilder::GetParentLayout怎么用?C++ IDetailCategoryBuilder::GetParentLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDetailCategoryBuilder
的用法示例。
在下文中一共展示了IDetailCategoryBuilder::GetParentLayout方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AddRangePropertyRow
void UAnimGraphNode_BoneDrivenController::AddRangePropertyRow(const FText& Name, const FText& Tooltip, IDetailCategoryBuilder& Category, TSharedRef<IPropertyHandle> PropertyHandle, const FName MinPropertyName, const FName MaxPropertyName, TAttribute<EVisibility> VisibilityAttribute)
{
const float MiddlePadding = 4.0f;
TSharedPtr<IPropertyHandle> MinProperty = PropertyHandle->GetChildHandle(MinPropertyName);
Category.GetParentLayout().HideProperty(MinProperty);
TSharedPtr<IPropertyHandle> MaxProperty = PropertyHandle->GetChildHandle(MaxPropertyName);
Category.GetParentLayout().HideProperty(MaxProperty);
Category.AddCustomRow(Name)
.Visibility(VisibilityAttribute)
.NameContent()
[
SNew(STextBlock)
.Text(Name)
.ToolTipText(Tooltip)
.Font(IDetailLayoutBuilder::GetDetailFont())
]
.ValueContent()
.MinDesiredWidth(100.0f * 2.0f)
.MaxDesiredWidth(100.0f * 2.0f)
[
SNew(SHorizontalBox)
+SHorizontalBox::Slot()
.FillWidth(1)
.Padding(0.0f, 0.0f, MiddlePadding, 0.0f)
.VAlign(VAlign_Center)
[
MinProperty->CreatePropertyValueWidget()
]
+SHorizontalBox::Slot()
.AutoWidth()
[
SNew(STextBlock)
.Text(LOCTEXT("MinMaxSpacer", ".."))
.Font(IDetailLayoutBuilder::GetDetailFont())
]
+SHorizontalBox::Slot()
.FillWidth(1)
.Padding(MiddlePadding, 0.0f, 0.0f, 0.0f)
.VAlign(VAlign_Center)
[
MaxProperty->CreatePropertyValueWidget()
]
];
}
示例2: CreateTransitionEventPropertyWidgets
void FAnimTransitionNodeDetails::CreateTransitionEventPropertyWidgets(IDetailCategoryBuilder& TransitionCategory, FString TransitionName)
{
TSharedPtr<IPropertyHandle> NameProperty = TransitionCategory.GetParentLayout().GetProperty(*(TransitionName + TEXT(".NotifyName")));
TransitionCategory.AddProperty( NameProperty )
.DisplayName( LOCTEXT("CreateTransition_CustomBlueprintEvent", "Custom Blueprint Event") );
}
示例3: AddTripletPropertyRow
void UAnimGraphNode_BoneDrivenController::AddTripletPropertyRow(const FText& Name, const FText& Tooltip, IDetailCategoryBuilder& Category, TSharedRef<IPropertyHandle> PropertyHandle, const FName XPropertyName, const FName YPropertyName, const FName ZPropertyName)
{
const float XYZPadding = 5.0f;
TSharedPtr<IPropertyHandle> XProperty = PropertyHandle->GetChildHandle(XPropertyName);
Category.GetParentLayout().HideProperty(XProperty);
TSharedPtr<IPropertyHandle> YProperty = PropertyHandle->GetChildHandle(YPropertyName);
Category.GetParentLayout().HideProperty(YProperty);
TSharedPtr<IPropertyHandle> ZProperty = PropertyHandle->GetChildHandle(ZPropertyName);
Category.GetParentLayout().HideProperty(ZProperty);
Category.AddCustomRow(Name)
.NameContent()
[
SNew(STextBlock)
.Text(Name)
.ToolTipText(Tooltip)
.Font(IDetailLayoutBuilder::GetDetailFont())
]
.ValueContent()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.Padding(0.f, 0.f, XYZPadding, 0.f)
.AutoWidth()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
XProperty->CreatePropertyNameWidget()
]
+ SHorizontalBox::Slot()
.AutoWidth()
[
XProperty->CreatePropertyValueWidget()
]
]
+ SHorizontalBox::Slot()
.Padding(0.f, 0.f, XYZPadding, 0.f)
.AutoWidth()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
YProperty->CreatePropertyNameWidget()
]
+ SHorizontalBox::Slot()
.AutoWidth()
[
YProperty->CreatePropertyValueWidget()
]
]
+ SHorizontalBox::Slot()
.Padding(0.f, 0.f, XYZPadding, 0.f)
.AutoWidth()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
ZProperty->CreatePropertyNameWidget()
]
+ SHorizontalBox::Slot()
.AutoWidth()
[
ZProperty->CreatePropertyValueWidget()
]
]
];
}