|
@@ -54,7 +54,7 @@ void SEzAbleTreeViewRowWidget::Construct(const FArguments& InArgs, const TShared
|
|
// .AutoWidth()
|
|
// .AutoWidth()
|
|
// [
|
|
// [
|
|
// SNew(SImage)
|
|
// SNew(SImage)
|
|
-// .Image(this, &SStateTreeViewRow::GetTransitionsIcon, Trigger)
|
|
|
|
|
|
+// .Image(this, &SStateTreeViewRow::GetTransitionsIcon, Trigger) //节点右边向上弯的箭头
|
|
// .ColorAndOpacity(IconTint)
|
|
// .ColorAndOpacity(IconTint)
|
|
// ]
|
|
// ]
|
|
// ]
|
|
// ]
|
|
@@ -128,7 +128,7 @@ void SEzAbleTreeViewRowWidget::Construct(const FArguments& InArgs, const TShared
|
|
.BaseIndentLevel(0)
|
|
.BaseIndentLevel(0)
|
|
.ImageSize(FVector2f(16, 16))
|
|
.ImageSize(FVector2f(16, 16))
|
|
.ImagePadding(FMargin(9, 14, 0, 0))
|
|
.ImagePadding(FMargin(9, 14, 0, 0))
|
|
- .Image(FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.TryFollowTransitions")) // this, &SEzAbleTreeViewRowWidget::GetSelectorIcon
|
|
|
|
|
|
+ .Image(this, &SEzAbleTreeViewRowWidget::GetSelectorIcon) //FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.TryFollowTransitions")
|
|
.ColorAndOpacity(FLinearColor(1, 1, 1, 0.2f))
|
|
.ColorAndOpacity(FLinearColor(1, 1, 1, 0.2f))
|
|
.WireColorAndOpacity(FLinearColor(1, 1, 1, 0.2f))
|
|
.WireColorAndOpacity(FLinearColor(1, 1, 1, 0.2f))
|
|
]
|
|
]
|
|
@@ -224,7 +224,7 @@ void SEzAbleTreeViewRowWidget::Construct(const FArguments& InArgs, const TShared
|
|
.Padding(FMargin(4.f, 0.f, 0.f, 0.f))
|
|
.Padding(FMargin(4.f, 0.f, 0.f, 0.f))
|
|
[
|
|
[
|
|
SNew(SImage)
|
|
SNew(SImage)
|
|
- .Image(FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.SelectNone"))//this, &SStateTreeViewRow::GetSelectorIcon 这里还不知道是哪个东西
|
|
|
|
|
|
+ .Image(this, &SEzAbleTreeViewRowWidget::GetSelectorIcon)// 最前面的箭头 FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.TrySelectChildrenInOrder")
|
|
.ColorAndOpacity(IconTint)
|
|
.ColorAndOpacity(IconTint)
|
|
//.ToolTipText(this, &SStateTreeViewRow::GetSelectorTooltip)
|
|
//.ToolTipText(this, &SStateTreeViewRow::GetSelectorTooltip)
|
|
]
|
|
]
|
|
@@ -463,8 +463,7 @@ const FSlateBrush* SEzAbleTreeViewRowWidget::GetSelectorIcon() const
|
|
{
|
|
{
|
|
if (const UEzAbilityState* State = WeakState.Get())
|
|
if (const UEzAbilityState* State = WeakState.Get())
|
|
{
|
|
{
|
|
- return FAbleTreeEditorStyle::GetBrushForSelectionBehaviorType();
|
|
|
|
- //return FStateTreeEditorStyle::GetBrushForSelectionBehaviorType(State->SelectionBehavior, !State->Children.IsEmpty(), State->Type);
|
|
|
|
|
|
+ return FAbleTreeEditorStyle::GetBrushForSelectionBehaviorType(State->SelectionBehavior, !State->Children.IsEmpty(), State->Type);
|
|
}
|
|
}
|
|
|
|
|
|
return nullptr;
|
|
return nullptr;
|