Files
UnrealEngineUWP/Engine/Source/Editor/GraphEditor/Private/AnimationNodes/SGraphNodeSequencePlayer.h
Jamie Dale bbb0624bff Fixed code relying on SLATE_TEXT_ATTRIBUTE for tooltips.
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 2401019 by Jamie Dale in Main branch]
2015-01-08 11:35:01 -05:00

33 lines
1.0 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
class SGraphNodeSequencePlayer : public SGraphNode
{
public:
SLATE_BEGIN_ARGS(SGraphNodeSequencePlayer){}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, UK2Node* 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 CreateBelowWidgetControls(TSharedPtr<SVerticalBox> MainBox) override;
// End of SGraphNode interface
protected:
/** Get the sequence player associated with this graph node */
struct FAnimNode_SequencePlayer* GetSequencePlayer() const;
EVisibility GetSliderVisibility() const;
float GetSequencePositionRatio() const;
void SetSequencePositionRatio(float NewRatio);
FText GetPositionTooltip() const;
bool GetSequencePositionInfo(float& Out_Position, float& Out_Length, int32& FrameCount) const;
};