![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
UI panel for editing BehaviorTree node properties. More...
#include <BTNodePropertyPanel.h>
Public Member Functions | |
| BTNodePropertyPanel () | |
| ~BTNodePropertyPanel ()=default | |
| void | Initialize () |
| Initialize the panel. | |
| void | Render () |
| Render the property panel. | |
| void | SetSelectedNode (int graphId, int nodeId) |
| Set the currently selected node ID. | |
| void | ClearSelection () |
| Clear the current selection. | |
| bool | HasSelectedNode () const |
| Check if a node is currently selected. | |
Public Attributes | |
| int | m_selectedNodeId = -1 |
Private Member Functions | |
| void | RenderNodeBasicInfo (const GraphNode *node) |
| void | RenderNodeParameters (const GraphNode *node) |
| void | RenderSubGraphControls (GraphNode *node) |
| Phase 39c: SubGraph node editor. | |
| void | RenderSubGraphBindingEditor (GraphNode *node) |
| Phase 39c Step 4: Parameter binding editor. | |
| void | ApplyNodeChanges (GraphNode *node) |
Private Attributes | |
| int | m_activeGraphId = -1 |
| Current graph ID in BTNodeGraphManager. | |
| char | m_nodeNameBuffer [256] = {0} |
| Buffer for node name editing. | |
| char | m_paramBuffer [512] = {0} |
| Buffer for parameter editing. | |
UI panel for editing BehaviorTree node properties.
Renders property controls for the currently selected node. Updates the BTNodeGraphManager when properties are changed.
Definition at line 31 of file BTNodePropertyPanel.h.
| Olympe::BTNodePropertyPanel::BTNodePropertyPanel | ( | ) |
Definition at line 19 of file BTNodePropertyPanel.cpp.
References m_nodeNameBuffer, and m_paramBuffer.
|
default |
Definition at line 148 of file BTNodePropertyPanel.cpp.
References GetComponentTypeID_Static(), m_nodeNameBuffer, and SYSTEM_LOG.
Here is the call graph for this function:| void Olympe::BTNodePropertyPanel::ClearSelection | ( | ) |
Clear the current selection.
Definition at line 51 of file BTNodePropertyPanel.cpp.
References m_activeGraphId, m_nodeNameBuffer, m_paramBuffer, and m_selectedNodeId.
Referenced by Render(), and Olympe::BehaviorTreeRenderer::RenderRightPanelTabs().
Here is the caller graph for this function:
|
inline |
Check if a node is currently selected.
Definition at line 63 of file BTNodePropertyPanel.h.
References m_selectedNodeId.
Referenced by Olympe::BehaviorTreeRenderer::RenderRightPanelTabs().
Here is the caller graph for this function:| void Olympe::BTNodePropertyPanel::Initialize | ( | ) |
Initialize the panel.
Definition at line 27 of file BTNodePropertyPanel.cpp.
Referenced by Olympe::BehaviorTreeRenderer::BehaviorTreeRenderer().
Here is the caller graph for this function:| void Olympe::BTNodePropertyPanel::Render | ( | ) |
Render the property panel.
Definition at line 59 of file BTNodePropertyPanel.cpp.
References Olympe::BT_SubGraph, ClearSelection(), Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_activeGraphId, m_selectedNodeId, RenderNodeBasicInfo(), RenderNodeParameters(), and RenderSubGraphControls().
Referenced by Olympe::BehaviorTreeRenderer::RenderRightPanelTabs().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 99 of file BTNodePropertyPanel.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_activeGraphId, m_nodeNameBuffer, m_selectedNodeId, Olympe::GraphNode::name, Olympe::NodeTypeToString(), and SYSTEM_LOG.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 127 of file BTNodePropertyPanel.cpp.
References GetComponentTypeID_Static().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Phase 39c Step 4: Parameter binding editor.
Definition at line 320 of file BTNodePropertyPanel.cpp.
References GetComponentTypeID_Static().
Referenced by RenderSubGraphControls().
Here is the call graph for this function:
Here is the caller graph for this function:Phase 39c: SubGraph node editor.
Definition at line 157 of file BTNodePropertyPanel.cpp.
References Olympe::BehaviorTree, BehaviorTreeManager::Get(), DataManager::Get(), GetComponentTypeID_Static(), DataManager::GetSelectedFileFromModal(), BehaviorTreeManager::GetValidationErrors(), DataManager::IsFilePickerModalOpen(), m_activeGraphId, DataManager::OpenFilePickerModal(), RenderSubGraphBindingEditor(), and SYSTEM_LOG.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Set the currently selected node ID.
| graphId | Active graph ID in BTNodeGraphManager |
| nodeId | Local node ID within the graph |
Definition at line 32 of file BTNodePropertyPanel.cpp.
References Olympe::NodeGraphManager::Get(), GetComponentTypeID_Static(), Olympe::NodeGraphManager::GetGraph(), m_activeGraphId, m_nodeNameBuffer, and m_selectedNodeId.
Referenced by Olympe::BehaviorTreeRenderer::RenderRightPanelTabs().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Current graph ID in BTNodeGraphManager.
Definition at line 69 of file BTNodePropertyPanel.h.
Referenced by ClearSelection(), Render(), RenderNodeBasicInfo(), RenderSubGraphControls(), and SetSelectedNode().
|
private |
Buffer for node name editing.
Definition at line 70 of file BTNodePropertyPanel.h.
Referenced by ApplyNodeChanges(), BTNodePropertyPanel(), ClearSelection(), RenderNodeBasicInfo(), and SetSelectedNode().
|
private |
Buffer for parameter editing.
Definition at line 71 of file BTNodePropertyPanel.h.
Referenced by BTNodePropertyPanel(), and ClearSelection().
| int Olympe::BTNodePropertyPanel::m_selectedNodeId = -1 |
Definition at line 66 of file BTNodePropertyPanel.h.
Referenced by ClearSelection(), HasSelectedNode(), Render(), RenderNodeBasicInfo(), Olympe::BehaviorTreeRenderer::RenderRightPanelTabs(), and SetSelectedNode().