You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
54 lines
1.6 KiB
C++
54 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Widgets/DeclarativeSyntaxSupport.h"
|
|
#include "Input/Reply.h"
|
|
#include "Styling/SlateColor.h"
|
|
#include "SNodePanel.h"
|
|
#include "KismetNodes/SGraphNodeK2Base.h"
|
|
#include "Engine/PoseWatch.h"
|
|
|
|
class UAnimGraphNode_Base;
|
|
|
|
class SAnimationGraphNode : public SGraphNodeK2Base
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SAnimationGraphNode) {}
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, UAnimGraphNode_Base* InNode);
|
|
|
|
protected:
|
|
// SWidget interface
|
|
virtual void Tick(const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime) override;
|
|
// End of SWidget interface
|
|
|
|
// SGraphNode interface
|
|
virtual TArray<FOverlayWidgetInfo> GetOverlayWidgets(bool bSelected, const FVector2D& WidgetSize) const override;
|
|
virtual TSharedRef<SWidget> CreateTitleWidget(TSharedPtr<SNodeTitle> InNodeTitle) override;
|
|
virtual void GetNodeInfoPopups(FNodeInfoContext* Context, TArray<FGraphInformationPopupInfo>& Popups) const override;
|
|
// End of SGraphNode interface
|
|
|
|
private:
|
|
// Return Pose View Colour for slate indicator
|
|
FSlateColor GetPoseViewColour() const;
|
|
|
|
FReply SpawnColourPicker();
|
|
|
|
// Handle the node informing us that the title has changed
|
|
void HandleNodeTitleChanged();
|
|
|
|
/** Keep a reference to the indicator widget handing around */
|
|
TSharedPtr<SWidget> IndicatorWidget;
|
|
|
|
/** Keep a reference to the pose view indicator widget handing around */
|
|
TSharedPtr<SWidget> PoseViewWidget;
|
|
|
|
/** Cache the node title so we can invalidate it */
|
|
TSharedPtr<SNodeTitle> NodeTitle;
|
|
|
|
TWeakObjectPtr<class UPoseWatch> PoseWatch;
|
|
};
|