Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Classes/K2Node_VariableSet.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

57 lines
2.0 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UnrealType.h"
#include "Engine/Blueprint.h"
#include "EdGraph/EdGraphNodeUtils.h"
#include "K2Node_Variable.h"
#include "K2Node_VariableSet.generated.h"
class UEdGraph;
UCLASS(MinimalAPI)
class UK2Node_VariableSet : public UK2Node_Variable
{
GENERATED_UCLASS_BODY()
//~ Begin UEdGraphNode Interface
virtual void AllocateDefaultPins() override;
virtual void ReallocatePinsDuringReconstruction(TArray<UEdGraphPin*>& OldPins) override;
virtual FText GetTooltipText() const override;
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual bool ShouldOverridePinNames() const override { return true; }
virtual FText GetPinNameOverride(const UEdGraphPin& Pin) const override;
virtual void ValidateNodeDuringCompilation(class FCompilerResultsLog& MessageLog) const override;
//~ End UEdGraphNode Interface
//~ Begin K2Node Interface
virtual bool ShouldShowNodeProperties() const override { return true; }
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
virtual void ExpandNode(class FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph) override;
//~ End K2Node Interface
/** Retrieves the output pin name for the node */
FName GetVariableOutputPinName() const;
BLUEPRINTGRAPH_API bool HasLocalRepNotify() const;
BLUEPRINTGRAPH_API FName GetRepNotifyName() const;
BLUEPRINTGRAPH_API bool ShouldFlushDormancyOnSet() const;
static FText GetPropertyTooltip(UProperty const* VariableProperty);
static FText GetBlueprintVarTooltip(FBPVariableDescription const& VarDesc);
private:
/** Sets up the tooltip for the output pin */
void CreateOutputPinTooltip();
private:
/** Constructing FText strings can be costly, so we cache the node's title/tooltip */
FNodeTextCache CachedTooltip;
FNodeTextCache CachedNodeTitle;
};