You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UETOOL-213 - Minimize Slate FString -> FText conversion (remove SLATE_TEXT_ATTRIBUTE) This fixes any editor/engine specific code that was passing text to Slate as FString rather than FText. [CL 2399803 by Jamie Dale in Main branch]
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
//
|
|
// Forward declarations.
|
|
//
|
|
class UAnimStateNodeBase;
|
|
class UAnimStateConduitNode;
|
|
class UAnimStateEntryNode;
|
|
|
|
class SGraphNodeAnimState : public SGraphNode
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SGraphNodeAnimState){}
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, UAnimStateNodeBase* InNode);
|
|
|
|
// SNodePanel::SNode interface
|
|
virtual void GetNodeInfoPopups(FNodeInfoContext* Context, TArray<FGraphInformationPopupInfo>& Popups) const override;
|
|
// End of SNodePanel::SNode interface
|
|
|
|
// SGraphNode interface
|
|
virtual void UpdateGraphNode() override;
|
|
virtual void CreatePinWidgets() override;
|
|
virtual void AddPin(const TSharedRef<SGraphPin>& PinToAdd) override;
|
|
virtual TSharedPtr<SToolTip> GetComplexTooltip() override;
|
|
// End of SGraphNode interface
|
|
|
|
static void GetStateInfoPopup(UEdGraphNode* GraphNode, TArray<FGraphInformationPopupInfo>& Popups);
|
|
protected:
|
|
FSlateColor GetBorderBackgroundColor() const;
|
|
|
|
virtual FText GetPreviewCornerText() const;
|
|
virtual const FSlateBrush* GetNameIcon() const;
|
|
};
|
|
|
|
|
|
class SGraphNodeAnimConduit : public SGraphNodeAnimState
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(SGraphNodeAnimConduit){}
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs, UAnimStateConduitNode* InNode);
|
|
|
|
// SNodePanel::SNode interface
|
|
virtual void GetNodeInfoPopups(FNodeInfoContext* Context, TArray<FGraphInformationPopupInfo>& Popups) const override;
|
|
// End of SNodePanel::SNode interface
|
|
protected:
|
|
virtual FText GetPreviewCornerText() const override;
|
|
virtual const FSlateBrush* GetNameIcon() const override;
|
|
};
|