You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
33 lines
1021 B
C++
33 lines
1021 B
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "GraphEditorCommon.h"
|
|
#include "SGraphPinPose.h"
|
|
|
|
/////////////////////////////////////////////////////
|
|
// SGraphPinPose
|
|
|
|
void SGraphPinPose::Construct(const FArguments& InArgs, UEdGraphPin* InPin)
|
|
{
|
|
SGraphPin::Construct(SGraphPin::FArguments(), InPin);
|
|
|
|
CachedImg_Pin_ConnectedHovered = FEditorStyle::GetBrush(TEXT("Graph.PosePin.ConnectedHovered"));
|
|
CachedImg_Pin_Connected = FEditorStyle::GetBrush(TEXT("Graph.PosePin.Connected"));
|
|
CachedImg_Pin_DisconnectedHovered = FEditorStyle::GetBrush(TEXT("Graph.PosePin.DisconnectedHovered"));
|
|
CachedImg_Pin_Disconnected = FEditorStyle::GetBrush(TEXT("Graph.PosePin.Disconnected"));
|
|
}
|
|
|
|
const FSlateBrush* SGraphPinPose::GetPinIcon() const
|
|
{
|
|
const FSlateBrush* Brush = NULL;
|
|
|
|
if (IsConnected())
|
|
{
|
|
Brush = IsHovered() ? CachedImg_Pin_ConnectedHovered : CachedImg_Pin_Connected;
|
|
}
|
|
else
|
|
{
|
|
Brush = IsHovered() ? CachedImg_Pin_DisconnectedHovered : CachedImg_Pin_Disconnected;
|
|
}
|
|
|
|
return Brush;
|
|
} |