4#include "Widgets/Images/SImage.h"
5#include "Toolkits/AssetEditorManager.h"
12#define LOCTEXT_NAMESPACE "DialogueSearchResult"
17 :
Super(InDisplayText, InParent)
23 const FLinearColor IconColor = FLinearColor::White;
24 const FSlateBrush* Brush =
nullptr;
28 .ColorAndOpacity(IconColor)
36 return Parent.Pin()->GetParentDialogue();
45 Super(
FText::FromString(TEXT(
"Display Text should not be visible")), nullptr)
47 Category = FText::FromString(TEXT(
"ROOT NODE SHOULD NOT BE VISIBLE"));
54 Super(InDisplayText, InParent)
56 Category = LOCTEXT(
"FDialogueSearchResult_DialogueNodeCategory",
"Dialogue");
66 return FReply::Unhandled();
86 .ColorAndOpacity(FSlateColor::UseForeground())
94 Super(InDisplayText, InParent)
105 return FReply::Unhandled();
113 const FSlateIcon Icon =
GraphNode.Get()->GetIconAndTint(Color);
115 .Image(Icon.GetOptionalIcon())
116 .ColorAndOpacity(Color)
127 Super(InDisplayText, InParent)
138 return FReply::Unhandled();
146 const FSlateIcon Icon =
EdgeNode.Get()->GetIconAndTint(Color);
148 .Image(Icon.GetOptionalIcon())
149 .ColorAndOpacity(Color)
159 Super(InDisplayText, InParent)
170 return FReply::Unhandled();
179 .Image(Icon.GetIcon())
180 .ColorAndOpacity(FColorList::White)
187#undef LOCTEXT_NAMESPACE
static bool OpenEditorAndJumpToGraphNode(const UEdGraphNode *GraphNode, bool bFocusIfOpen=false)
static bool OpenEditorForAsset(const UObject *Asset)
TSharedRef< SWidget > CreateIcon() const override
FReply OnClick() override
FDialogueSearchResult_DialogueNode(const FText &InDisplayText, const TSharedPtr< FDialogueSearchResult > &InParent)
TWeakObjectPtr< const UDlgDialogue > GetParentDialogue() const override
TWeakObjectPtr< const UDlgDialogue > Dialogue
TWeakObjectPtr< const UDialogueGraphNode_Edge > EdgeNode
TSharedRef< SWidget > CreateIcon() const override
FDialogueSearchResult_EdgeNode(const FText &InDisplayText, const TSharedPtr< FDialogueSearchResult > &InParent)
FReply OnClick() override
FReply OnClick() override
FDialogueSearchResult_GraphNode(const FText &InDisplayText, const TSharedPtr< FDialogueSearchResult > &InParent)
TWeakObjectPtr< const UDialogueGraphNode > GraphNode
TSharedRef< SWidget > CreateIcon() const override
FDialogueSearchResult_RootNode()
virtual TSharedRef< SWidget > CreateIcon() const
virtual TWeakObjectPtr< const UDlgDialogue > GetParentDialogue() const
FDialogueSearchResult(const FText &InDisplayText, const TSharedPtr< Self > &InParent)
FText GetCategory() const
static const FName PROPERTY_CommentBubbleOn
static TSharedPtr< ISlateStyle > Get()
static FName GetStyleSetName()
static const FName PROPERTY_DlgDialogueClassIcon
TWeakPtr< FDialogueSearchResult > Parent