You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#include "GraphEditorCommon.h"
|
|
#include "SGraphNodeLayeredBoneBlend.h"
|
|
#include "AnimGraphNode_LayeredBoneBlend.h"
|
|
|
|
/////////////////////////////////////////////////////
|
|
// SGraphNodeLayeredBoneBlend
|
|
|
|
void SGraphNodeLayeredBoneBlend::Construct(const FArguments& InArgs, UAnimGraphNode_LayeredBoneBlend* InNode)
|
|
{
|
|
this->GraphNode = Node = InNode;
|
|
|
|
this->SetCursor(EMouseCursor::CardinalCross);
|
|
|
|
this->UpdateGraphNode();
|
|
}
|
|
|
|
void SGraphNodeLayeredBoneBlend::CreateInputSideAddButton(TSharedPtr<SVerticalBox> InputBox)
|
|
{
|
|
TSharedRef<SWidget> AddPinButton = AddPinButtonContent(
|
|
NSLOCTEXT("LayeredBoneBlendNode", "LayeredBoneBlendNodeAddPinButton", "Add pin"),
|
|
NSLOCTEXT("LayeredBoneBlendNode", "LayeredBoneBlendNodeAddPinButton_Tooltip", "Adds a input pose to the node"),
|
|
false);
|
|
|
|
FMargin AddPinPadding = Settings->GetInputPinPadding();
|
|
AddPinPadding.Top += 6.0f;
|
|
|
|
InputBox->AddSlot()
|
|
.AutoHeight()
|
|
.VAlign(VAlign_Center)
|
|
.Padding(AddPinPadding)
|
|
[
|
|
AddPinButton
|
|
];
|
|
}
|
|
|
|
FReply SGraphNodeLayeredBoneBlend::OnAddPin()
|
|
{
|
|
Node->AddPinToBlendByFilter();
|
|
|
|
return FReply::Handled();
|
|
} |