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_StructOperation.h"
|
2014-09-02 19:08:09 -04:00
|
|
|
#include "EdGraph/EdGraphNodeUtils.h" // for FNodeTextCache
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "K2Node_StructMemberSet.generated.h"
|
|
|
|
|
|
|
|
|
|
// Imperative kismet node that sets one or more member variables of a struct
|
|
|
|
|
UCLASS(MinimalAPI)
|
|
|
|
|
class UK2Node_StructMemberSet : public UK2Node_StructOperation
|
|
|
|
|
{
|
2015-03-17 05:38:32 -04:00
|
|
|
GENERATED_UCLASS_BODY()
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
UPROPERTY(EditAnywhere, Category=PinOptions, EditFixedSize)
|
|
|
|
|
TArray<FOptionalPinFromProperty> ShowPinForProperties;
|
|
|
|
|
|
|
|
|
|
// UObject interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of UObject interface
|
|
|
|
|
|
|
|
|
|
// UEdGraphNode interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void AllocateDefaultPins() override;
|
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;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of UEdGraphNode interface
|
|
|
|
|
|
|
|
|
|
// UK2Node interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool IsNodePure() const override { return false; }
|
|
|
|
|
virtual bool NodeCausesStructuralBlueprintChange() const override { return true; }
|
|
|
|
|
virtual ERedirectType DoPinsMatchForReconstruction(const UEdGraphPin* NewPin, int32 NewPinIndex, const UEdGraphPin* OldPin, int32 OldPinIndex) const override;
|
|
|
|
|
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of UK2Node interface
|
2014-09-02 19:08:09 -04:00
|
|
|
|
|
|
|
|
private:
|
2014-09-03 18:17:44 -04:00
|
|
|
/** Constructing FText strings can be costly, so we cache the node's title/tooltip */
|
|
|
|
|
FNodeTextCache CachedTooltip;
|
2014-09-02 19:08:09 -04:00
|
|
|
FNodeTextCache CachedNodeTitle;
|
2014-03-14 14:13:41 -04:00
|
|
|
};
|
|
|
|
|
|