![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ImGui sub-panel for editing GetBBValue node's blackboard variable selection. More...
#include <GetBBValuePropertyPanel.h>
Collaboration diagram for Olympe::GetBBValuePropertyPanel:Public Member Functions | |
| GetBBValuePropertyPanel () | |
| Constructs the panel. | |
| ~GetBBValuePropertyPanel ()=default | |
| GetBBValuePropertyPanel (const GetBBValuePropertyPanel &)=delete | |
| GetBBValuePropertyPanel & | operator= (const GetBBValuePropertyPanel &)=delete |
| void | SetNodeName (const std::string &name) |
| Sets the node name displayed in the title section. | |
| void | SetTemplate (const TaskGraphTemplate *tmpl) |
| Sets the template reference for blackboard variable lookup. | |
| void | SetBBKey (const std::string &key) |
| Sets the currently selected BB key. | |
| const std::string & | GetBBKey () const |
| Returns the current (possibly modified) BB key. | |
| bool | IsDirty () const |
| Returns true if the BB key has been modified since the last call to ClearDirty(). | |
| void | ClearDirty () |
| Resets the dirty flag. | |
| void | Render () |
| Renders the panel into the current ImGui context. | |
Private Member Functions | |
| void | RenderTitleSection () |
| Renders the title section (node name in blue background). | |
| void | RenderVariableSelector () |
| Renders the variable dropdown and info. | |
| void | RenderVariableInfo () |
| Renders variable type and default value information. | |
Private Attributes | |
| std::string | m_nodeName |
| Node name for display. | |
| std::string | m_bbKey |
| Current BB key selection. | |
| const TaskGraphTemplate * | m_template |
| Template reference (not owned) | |
| bool | m_dirty = false |
| Changed since last ClearDirty() | |
ImGui sub-panel for editing GetBBValue node's blackboard variable selection.
The panel does NOT own the template — it holds a reference. The caller is responsible for persisting changes back to the node definition.
Definition at line 36 of file GetBBValuePropertyPanel.h.
|
explicit |
Constructs the panel.
Definition at line 16 of file GetBBValuePropertyPanel.cpp.
|
default |
|
delete |
|
inline |
| const std::string & Olympe::GetBBValuePropertyPanel::GetBBKey | ( | ) | const |
Returns the current (possibly modified) BB key.
Definition at line 40 of file GetBBValuePropertyPanel.cpp.
References m_bbKey.
|
inline |
Returns true if the BB key has been modified since the last call to ClearDirty().
Definition at line 78 of file GetBBValuePropertyPanel.h.
References m_dirty.
|
delete |
| void Olympe::GetBBValuePropertyPanel::Render | ( | ) |
Renders the panel into the current ImGui context.
Definition at line 49 of file GetBBValuePropertyPanel.cpp.
References RenderTitleSection(), RenderVariableInfo(), and RenderVariableSelector().
Here is the call graph for this function:
|
private |
Renders the title section (node name in blue background).
Definition at line 60 of file GetBBValuePropertyPanel.cpp.
References GetComponentTypeID_Static(), and m_nodeName.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Renders variable type and default value information.
Definition at line 111 of file GetBBValuePropertyPanel.cpp.
References Olympe::TaskGraphTemplate::Blackboard, Olympe::Bool, Olympe::Float, GetComponentTypeID_Static(), Olympe::Int, m_bbKey, m_template, Olympe::String, and Olympe::Vector.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Renders the variable dropdown and info.
Definition at line 67 of file GetBBValuePropertyPanel.cpp.
References GetComponentTypeID_Static(), Olympe::BBVariableRegistry::LoadFromTemplate(), m_bbKey, m_dirty, m_template, and Olympe::VarSpec::name.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Sets the currently selected BB key.
Definition at line 35 of file GetBBValuePropertyPanel.cpp.
References GetComponentTypeID_Static(), and m_bbKey.
Here is the call graph for this function:Sets the node name displayed in the title section.
Definition at line 25 of file GetBBValuePropertyPanel.cpp.
References m_nodeName.
| void Olympe::GetBBValuePropertyPanel::SetTemplate | ( | const TaskGraphTemplate * | tmpl | ) |
Sets the template reference for blackboard variable lookup.
Definition at line 30 of file GetBBValuePropertyPanel.cpp.
References GetComponentTypeID_Static(), and m_template.
Here is the call graph for this function:
|
private |
Current BB key selection.
Definition at line 114 of file GetBBValuePropertyPanel.h.
Referenced by GetBBKey(), RenderVariableInfo(), RenderVariableSelector(), and SetBBKey().
Changed since last ClearDirty()
Definition at line 116 of file GetBBValuePropertyPanel.h.
Referenced by ClearDirty(), IsDirty(), and RenderVariableSelector().
|
private |
Node name for display.
Definition at line 113 of file GetBBValuePropertyPanel.h.
Referenced by RenderTitleSection(), and SetNodeName().
|
private |
Template reference (not owned)
Definition at line 115 of file GetBBValuePropertyPanel.h.
Referenced by RenderVariableInfo(), RenderVariableSelector(), and SetTemplate().