Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Namespaces | Functions
VisualScriptNodeRenderer.cpp File Reference

Implementation of VS node rendering helpers (Phase 5). More...

#include "VisualScriptNodeRenderer.h"
#include "../system/system_consts.h"
#include "AtomicTaskUIRegistry.h"
#include "ConditionRef.h"
#include "../third_party/imgui/imgui.h"
#include "../third_party/imnodes/imnodes.h"
#include <string>
#include <vector>
#include <unordered_set>
+ Include dependency graph for VisualScriptNodeRenderer.cpp:

Go to the source code of this file.

Namespaces

namespace  Olympe
 < Provides AssetID and INVALID_ASSET_ID
 

Functions

VSNodeStyle Olympe::GetNodeStyle (TaskNodeType type)
 Returns the VSNodeStyle appropriate for a given node type.
 
unsigned int Olympe::GetNodeTitleColor (VSNodeStyle style)
 Returns the title-bar RGBA colour for a given style.
 
unsigned int Olympe::GetNodeTitleHoveredColor (VSNodeStyle style)
 Returns the title-bar hovered RGBA colour.
 
unsigned int Olympe::GetExecPinColor ()
 
unsigned int Olympe::GetDataPinColor (VariableType type)
 Returns the RGBA colour for a data pin by variable type.
 
const charOlympe::GetNodeTypeLabel (TaskNodeType type)
 Returns a human-readable label for a TaskNodeType.
 
const charOlympe::GetVariableTypeLabel (VariableType type)
 Returns a human-readable label for a VariableType.
 
static std::string Olympe::GetOperandDisplayString (const OperandRef &operand)
 Builds a display string for a ConditionRef operand.
 
static std::string Olympe::BuildConditionExpressionString (const ConditionRef &condition)
 Builds the complete condition expression string.
 
static float Olympe::CalculateSwitchCaseLabelWidth (const std::string &baseName, const SwitchCaseDefinition &caseData)
 Calculates the width of a Switch case output pin label.
 
static float Olympe::CalculateNodeMinimumWidth (const TaskNodeDefinition &def, const std::vector< std::string > &execInputPins, const std::vector< std::string > &execOutputPins, const std::vector< std::pair< std::string, VariableType > > &dataInputPins, const std::vector< std::pair< std::string, VariableType > > &dataOutputPins)
 Calculates the minimum width required for a node to display all content.
 

Detailed Description

Implementation of VS node rendering helpers (Phase 5).

Author
Olympe Engine
Date
2026-03-09

C++14 compliant.

Definition in file VisualScriptNodeRenderer.cpp.