Files
UnrealEngineUWP/Engine/Source/Developer/RigVMDeveloper/Public/RigVMModel/Nodes/RigVMCommentNode.h
sara schvartzman 488074a7e5 Control Rig: Fix "show bubble when zoom" change is not getting saved
#jira UE-131734
#rb helge.mathee
#preflight 6172abfceeaa6c00017ff565

#ROBOMERGE-AUTHOR: sara.schvartzman
#ROBOMERGE-SOURCE: CL 17904076 in //UE5/Release-5.0/... via CL 17904086
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v883-17842818)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17904089 by sara schvartzman in ue5-release-engine-test branch]
2021-10-25 04:25:30 -04:00

60 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "RigVMModel/RigVMNode.h"
#include "RigVMCommentNode.generated.h"
/**
* Comment Nodes can be used to annotate a Graph by adding
* colored grouping as well as user provided text.
* Comment Nodes are purely cosmetic and don't contribute
* to the runtime result of the Graph / Function.
*/
UCLASS(BlueprintType)
class RIGVMDEVELOPER_API URigVMCommentNode : public URigVMNode
{
GENERATED_BODY()
public:
// Default constructor
URigVMCommentNode();
// Override of node title
virtual FString GetNodeTitle() const override { return GetCommentText(); }
// Returns the current user provided text of this comment.
UFUNCTION(BlueprintCallable, Category = RigVMCommentNode)
FString GetCommentText() const;
// Returns the current user provided font size of this comment.
UFUNCTION(BlueprintCallable, Category = RigVMCommentNode)
int32 GetCommentFontSize() const;
// Returns the current user provided bubble visibility of this comment.
UFUNCTION(BlueprintCallable, Category = RigVMCommentNode)
bool GetCommentBubbleVisible() const;
// Returns the current user provided bubble color inheritance of this comment.
UFUNCTION(BlueprintCallable, Category = RigVMCommentNode)
bool GetCommentColorBubble() const;
private:
UPROPERTY()
FString CommentText;
UPROPERTY()
int32 FontSize;
UPROPERTY()
bool bBubbleVisible;
UPROPERTY()
bool bColorBubble;
friend class URigVMController;
};