Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
SetBBValuePropertyPanel.h
Go to the documentation of this file.
1/**
2 * @file SetBBValuePropertyPanel.h
3 * @brief UI Properties panel for a SetBBValue node – variable and value editor.
4 * @author Olympe Engine
5 * @date 2026-03-18
6 */
7
8#pragma once
9
10#include <string>
11#include <vector>
12#include <memory>
13
14#include "../../TaskSystem/TaskGraphTemplate.h"
15
16namespace Olympe {
17
18/**
19 * @class SetBBValuePropertyPanel
20 * @brief ImGui sub-panel for editing SetBBValue node's variable selection and value.
21 */
23public:
24
25 explicit SetBBValuePropertyPanel();
26
28
29 // Non-copyable
32
33 // -----------------------------------------------------------------------
34 // State accessors
35 // -----------------------------------------------------------------------
36
37 void SetNodeName(const std::string& name);
39 void SetBBKey(const std::string& key);
40
41 const std::string& GetBBKey() const;
42
43 bool IsDirty() const { return m_dirty; }
44 void ClearDirty() { m_dirty = false; }
45
46 // -----------------------------------------------------------------------
47 // Rendering
48 // -----------------------------------------------------------------------
49
50 void Render();
51
52private:
53
54 void RenderTitleSection();
56 void RenderValueInput();
57
58 std::string m_nodeName;
59 std::string m_bbKey;
61 bool m_dirty = false;
62};
63
64} // namespace Olympe
ComponentTypeID GetComponentTypeID_Static()
Definition ECS_Entity.h:56
ImGui sub-panel for editing SetBBValue node's variable selection and value.
SetBBValuePropertyPanel(const SetBBValuePropertyPanel &)=delete
void SetTemplate(const TaskGraphTemplate *tmpl)
SetBBValuePropertyPanel & operator=(const SetBBValuePropertyPanel &)=delete
void SetNodeName(const std::string &name)
void SetBBKey(const std::string &key)
Immutable, shareable task graph asset.
< Provides AssetID and INVALID_ASSET_ID