![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ImGui sub-panel for editing action node parameters. More...
#include <ActionParametersPanel.h>
Public Member Functions | |
| ActionParametersPanel () | |
| ~ActionParametersPanel ()=default | |
| ActionParametersPanel (const ActionParametersPanel &)=delete | |
| ActionParametersPanel & | operator= (const ActionParametersPanel &)=delete |
| void | SetActionTaskID (const std::string &taskID) |
| Set the action task ID (e.g., "log_message", "patrol_path") | |
| void | SetNodeName (const std::string &name) |
| Set the node name for display purposes. | |
| void | SetParameters (const std::unordered_map< std::string, std::string > ¶ms) |
| Set the parameters from a map of name->value pairs. | |
| const std::vector< ActionParameter > & | GetParameters () const |
| Get all parameters with their current values. | |
| std::string | GetParameterValue (const std::string ¶mName) const |
| Get a specific parameter value by name. | |
| bool | IsDirty () const |
| Check if any parameter has been modified. | |
| void | ClearDirty () |
| Clear the dirty flag after changes have been applied. | |
| void | Render () |
Private Member Functions | |
| void | RenderTitleSection () |
| void | RenderParametersSection () |
| void | RenderParameter (ActionParameter ¶m) |
Private Attributes | |
| std::string | m_taskID |
| std::string | m_nodeName |
| std::vector< ActionParameter > | m_parameters |
| bool | m_dirty = false |
ImGui sub-panel for editing action node parameters.
Definition at line 37 of file ActionParametersPanel.h.
|
explicit |
Definition at line 13 of file ActionParametersPanel.cpp.
|
default |
|
delete |
| void Olympe::ActionParametersPanel::ClearDirty | ( | ) |
Clear the dirty flag after changes have been applied.
Definition at line 90 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), m_dirty, and m_parameters.
Here is the call graph for this function:| const std::vector< ActionParameter > & Olympe::ActionParametersPanel::GetParameters | ( | ) | const |
Get all parameters with their current values.
Definition at line 62 of file ActionParametersPanel.cpp.
References m_parameters.
| std::string Olympe::ActionParametersPanel::GetParameterValue | ( | const std::string & | paramName | ) | const |
Get a specific parameter value by name.
Definition at line 67 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), and m_parameters.
Here is the call graph for this function:| bool Olympe::ActionParametersPanel::IsDirty | ( | ) | const |
Check if any parameter has been modified.
Definition at line 77 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), m_dirty, and m_parameters.
Here is the call graph for this function:
|
delete |
| void Olympe::ActionParametersPanel::Render | ( | ) |
Definition at line 99 of file ActionParametersPanel.cpp.
References m_parameters, m_taskID, RenderParametersSection(), and RenderTitleSection().
Here is the call graph for this function:
|
private |
Definition at line 148 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), and m_dirty.
Referenced by RenderParametersSection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 132 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), m_parameters, and RenderParameter().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 122 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), m_nodeName, and m_taskID.
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:Set the action task ID (e.g., "log_message", "patrol_path")
Definition at line 18 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), and m_taskID.
Here is the call graph for this function:Set the node name for display purposes.
Definition at line 23 of file ActionParametersPanel.cpp.
References m_nodeName.
| void Olympe::ActionParametersPanel::SetParameters | ( | const std::unordered_map< std::string, std::string > & | params | ) |
Set the parameters from a map of name->value pairs.
Definition at line 28 of file ActionParametersPanel.cpp.
References GetComponentTypeID_Static(), m_dirty, m_parameters, and Olympe::ActionParameter::name.
Here is the call graph for this function:Definition at line 100 of file ActionParametersPanel.h.
Referenced by ClearDirty(), IsDirty(), RenderParameter(), and SetParameters().
|
private |
Definition at line 98 of file ActionParametersPanel.h.
Referenced by RenderTitleSection(), and SetNodeName().
|
private |
Definition at line 99 of file ActionParametersPanel.h.
Referenced by ClearDirty(), GetParameters(), GetParameterValue(), IsDirty(), Render(), RenderParametersSection(), and SetParameters().
|
private |
Definition at line 97 of file ActionParametersPanel.h.
Referenced by Render(), RenderTitleSection(), and SetActionTaskID().