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_Switch.h"
|
2014-03-14 14:13:41 -04:00
|
|
|
#include "K2Node_SwitchInteger.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS(MinimalAPI)
|
|
|
|
|
class UK2Node_SwitchInteger : public UK2Node_Switch
|
|
|
|
|
{
|
2015-03-17 05:38:32 -04:00
|
|
|
GENERATED_UCLASS_BODY()
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
/** Set the starting index for the node */
|
|
|
|
|
UPROPERTY(EditAnywhere, Category=PinOptions, meta=(NoSpinbox=true))
|
|
|
|
|
int32 StartIndex;
|
|
|
|
|
|
|
|
|
|
// UObject interface
|
2014-06-13 06:14:46 -04:00
|
|
|
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 FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
2014-09-03 18:14:09 -04:00
|
|
|
virtual FText GetTooltipText() const override;
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual bool ShouldShowNodeProperties() const override { return true; }
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of UEdGraphNode interface
|
|
|
|
|
|
2014-07-14 13:29:38 -04:00
|
|
|
// UK2Node interface
|
2014-08-23 20:16:29 -04:00
|
|
|
virtual void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
|
2014-07-14 13:29:38 -04:00
|
|
|
// End of UK2Node interface
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
// UK2Node_Switch Interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual FString GetUniquePinName() override;
|
|
|
|
|
virtual FString GetPinNameGivenIndex(int32 Index) override;
|
|
|
|
|
virtual void ReallocatePinsDuringReconstruction(TArray<UEdGraphPin*>& OldPins) override;
|
2014-09-16 14:26:32 -04:00
|
|
|
virtual FEdGraphPinType GetPinType() const override;
|
2014-03-14 14:13:41 -04:00
|
|
|
// End of UK2Node_Switch Interface
|
|
|
|
|
|
|
|
|
|
protected:
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void CreateCasePins() override;
|
|
|
|
|
virtual void CreateSelectionPin() override;
|
|
|
|
|
virtual void RemovePin(UEdGraphPin* TargetPin) override;
|
2014-03-14 14:13:41 -04:00
|
|
|
};
|