4#include "ScopedTransaction.h"
5#include "Widgets/SBoxPanel.h"
6#include "GraphEditorSettings.h"
8#include "Kismet2/BlueprintEditorUtils.h"
9#include "Widgets/Images/SImage.h"
15 GraphNode = CastChecked<UK2Node>(InNode);
18 SetCursor(EMouseCursor::CardinalCross);
36 LeftNodeBox->AddSlot()
39 .VAlign(VAlign_Center)
43 .Image(FEditorStyle::GetBrush(
"Graph.Pin.DefaultPinSeparator"))
49 LeftNodeBox->AddSlot()
52 .VAlign(VAlign_Center)
56 .Image(FEditorStyle::GetBrush(
"Graph.Pin.DefaultPinSeparator"))
64 TSharedRef<SWidget> RefreshButton = AddPinButtonContent(
65 NSLOCTEXT(
"SGraphNode_DialogueK2Select",
"RefreshNodeButton",
"Refresh Node"),
66 NSLOCTEXT(
"SGraphNode_DialogueK2Select",
"RefreshNodeButton_Tooltip",
"Refreshes the node with the dialogue values"));
68 FMargin AddPinPadding = Settings->GetOutputPinPadding();
69 AddPinPadding.Top += 6.0f;
73 .VAlign(VAlign_Center)
74 .Padding(AddPinPadding)
82 return EVisibility::Visible;
87 const FScopedTransaction Transaction(NSLOCTEXT(
"Kismet",
"RefreshNode",
"Refresh Node"));
96 return FReply::Handled();
void CreatePinWidgets() override
void CreateOutputSideAddButton(TSharedPtr< SVerticalBox > OutputBox) override
FReply OnAddPin() override
UDialogueK2Node_Select * DialogueK2Node_Select
EVisibility IsAddPinButtonVisible() const override
void Construct(const FArguments &InArgs, UDialogueK2Node_Select *InNode)
UCLASS(MinimalAPI, Meta=(Keywords = "Ternary If"))
UEdGraphPin * GetVariableNamePin() const
UEdGraphPin * GetReturnValuePin() const
UEdGraphPin * GetDefaultValuePin() const
static constexpr int32 INDEX_PIN_OPTIONS_START