|
@@ -54,7 +54,7 @@ void SEzAbleTreeViewRowWidget::Construct(const FArguments& InArgs, const TShared
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -128,7 +128,7 @@ void SEzAbleTreeViewRowWidget::Construct(const FArguments& InArgs, const TShared
|
|
|
.BaseIndentLevel(0)
|
|
|
.ImageSize(FVector2f(16, 16))
|
|
|
.ImagePadding(FMargin(9, 14, 0, 0))
|
|
|
- .Image(FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.TryFollowTransitions"))
|
|
|
+ .Image(this, &SEzAbleTreeViewRowWidget::GetSelectorIcon)
|
|
|
.ColorAndOpacity(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))
|
|
|
[
|
|
|
SNew(SImage)
|
|
|
- .Image(FAbleTreeEditorStyle::Get().GetBrush("StateTreeEditor.SelectNone"))
|
|
|
+ .Image(this, &SEzAbleTreeViewRowWidget::GetSelectorIcon)
|
|
|
.ColorAndOpacity(IconTint)
|
|
|
|
|
|
]
|
|
@@ -463,8 +463,7 @@ const FSlateBrush* SEzAbleTreeViewRowWidget::GetSelectorIcon() const
|
|
|
{
|
|
|
if (const UEzAbilityState* State = WeakState.Get())
|
|
|
{
|
|
|
- return FAbleTreeEditorStyle::GetBrushForSelectionBehaviorType();
|
|
|
-
|
|
|
+ return FAbleTreeEditorStyle::GetBrushForSelectionBehaviorType(State->SelectionBehavior, !State->Children.IsEmpty(), State->Type);
|
|
|
}
|
|
|
|
|
|
return nullptr;
|