![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ImGui sub-panel for editing Variable node's blackboard variable selection. More...
#include <VariablePropertyPanel.h>
Collaboration diagram for Olympe::VariablePropertyPanel:Public Member Functions | |
| VariablePropertyPanel () | |
| Constructs the panel. | |
| ~VariablePropertyPanel ()=default | |
| VariablePropertyPanel (const VariablePropertyPanel &)=delete | |
| VariablePropertyPanel & | operator= (const VariablePropertyPanel &)=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 | RebuildVariableList () |
| Rebuilds the list of available blackboard variables. | |
Private Attributes | |
| std::string | m_nodeName |
| std::string | m_selectedBBKey |
| const TaskGraphTemplate * | m_template |
| bool | m_dirty |
| std::vector< std::string > | m_availableVariables |
ImGui sub-panel for editing Variable node's blackboard variable selection.
Identical to GetBBValuePropertyPanel - provides variable dropdown selector.
Definition at line 32 of file VariablePropertyPanel.h.
|
explicit |
Constructs the panel.
Definition at line 18 of file VariablePropertyPanel.cpp.
|
default |
|
delete |
|
inline |
| const std::string & Olympe::VariablePropertyPanel::GetBBKey | ( | ) | const |
Returns the current (possibly modified) BB key.
Definition at line 44 of file VariablePropertyPanel.cpp.
References m_selectedBBKey.
|
inline |
Returns true if the BB key has been modified since the last call to ClearDirty().
Definition at line 74 of file VariablePropertyPanel.h.
References m_dirty.
|
delete |
|
private |
Rebuilds the list of available blackboard variables.
Definition at line 49 of file VariablePropertyPanel.cpp.
References Olympe::TaskGraphTemplate::Blackboard, GetComponentTypeID_Static(), m_availableVariables, and m_template.
Referenced by SetTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| void Olympe::VariablePropertyPanel::Render | ( | ) |
Renders the panel into the current ImGui context.
Definition at line 63 of file VariablePropertyPanel.cpp.
References Olympe::TaskGraphTemplate::Blackboard, Olympe::Bool, Olympe::EntityID, Olympe::Float, GetComponentTypeID_Static(), Olympe::Int, m_availableVariables, m_nodeName, m_selectedBBKey, m_template, SetBBKey(), Olympe::String, and Olympe::Vector.
Here is the call graph for this function:Sets the currently selected BB key.
Definition at line 35 of file VariablePropertyPanel.cpp.
References GetComponentTypeID_Static(), m_dirty, and m_selectedBBKey.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Sets the node name displayed in the title section.
Definition at line 24 of file VariablePropertyPanel.cpp.
References m_nodeName.
| void Olympe::VariablePropertyPanel::SetTemplate | ( | const TaskGraphTemplate * | tmpl | ) |
Sets the template reference for blackboard variable lookup.
Definition at line 29 of file VariablePropertyPanel.cpp.
References GetComponentTypeID_Static(), m_template, and RebuildVariableList().
Here is the call graph for this function:
|
private |
Definition at line 100 of file VariablePropertyPanel.h.
Referenced by RebuildVariableList(), and Render().
|
private |
Definition at line 99 of file VariablePropertyPanel.h.
Referenced by ClearDirty(), IsDirty(), and SetBBKey().
|
private |
Definition at line 96 of file VariablePropertyPanel.h.
Referenced by Render(), and SetNodeName().
|
private |
Definition at line 97 of file VariablePropertyPanel.h.
Referenced by GetBBKey(), Render(), and SetBBKey().
|
private |
Definition at line 98 of file VariablePropertyPanel.h.
Referenced by RebuildVariableList(), Render(), and SetTemplate().