2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
2014-05-29 16:42:22 -04:00
|
|
|
#include "K2Node_TemporaryVariable.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "K2Node_LocalVariable.generated.h"
|
|
|
|
|
|
2014-05-09 17:43:40 -04:00
|
|
|
UCLASS(MinimalAPI, deprecated)
|
|
|
|
|
class UDEPRECATED_K2Node_LocalVariable : public UK2Node_TemporaryVariable
|
2014-03-14 14:13:41 -04:00
|
|
|
{
|
2015-03-17 05:38:32 -04:00
|
|
|
GENERATED_UCLASS_BODY()
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/** If this is not an override, allow user to specify a name for the function created by this entry point */
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
FName CustomVariableName;
|
|
|
|
|
|
|
|
|
|
/** The local variable's assigned tooltip */
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
FText VariableTooltip;
|
|
|
|
|
|
|
|
|
|
// Begin UEdGraphNode interface.
|
2014-09-03 18:14:09 -04:00
|
|
|
virtual FText GetTooltipText() const override;
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
|
|
|
|
virtual void OnRenameNode(const FString& NewName) override;
|
|
|
|
|
virtual TSharedPtr<class INameValidatorInterface> MakeNameValidator() const override;
|
|
|
|
|
virtual void PostPlacedNewNode() override;
|
|
|
|
|
virtual void PostPasteNode() override;
|
2014-08-04 12:39:34 -04:00
|
|
|
virtual bool IsCompatibleWithGraph(const UEdGraph* TargetGraph) const override;
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void ReconstructNode() override;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End UEdGraphNode interface.
|
|
|
|
|
|
|
|
|
|
// Begin UK2Node interface.
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool NodeCausesStructuralBlueprintChange() const override { return true; }
|
|
|
|
|
virtual bool ShouldShowNodeProperties() const override { return true; }
|
2014-08-23 20:16:29 -04:00
|
|
|
virtual void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override {}
|
2014-03-14 14:13:41 -04:00
|
|
|
// End UK2Node interface.
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Assigns the local variable a type
|
|
|
|
|
*
|
|
|
|
|
* @param InVariableType The type to assign this local variable to
|
|
|
|
|
*/
|
|
|
|
|
BLUEPRINTGRAPH_API void ChangeVariableType(const FEdGraphPinType& InVariableType);
|
2015-03-17 05:38:32 -04:00
|
|
|
};
|