TazGraph Project v0.1.0
Loading...
Searching...
No Matches
GraphRightPanel.h
1#pragma once
2
3#include "../../UIElement.h"
4
5#include "./CustomFunctions/CustomFunctions.h"
6#include "../../../AssetManager/AssetManager.h"
7#include "./EntityComponentsControl/EntityComponentsControl.h"
8
10 IScene* scene;
11 std::vector<SelectedInfo> c_selectedEntities;
12};
13
15{
16private:
17 GraphRightConfig config;
18 int selectedGroup = -1;
19public:
20
21 GraphRightPanel(bool usePython) {
22 addUIComponent<CustomFunctions>();
23 addUIComponent<EntityComponentsControlPanel>(usePython);
24 }
25
26 void setConfig(const GraphRightConfig& cfg) { config = cfg; }
27
28 void update(float deltaTime) override;
29
30 void OnImGuiRender() override;
31
32 void availableFunctions();
33 void ShowGroupComponents();
34
35 void DrawBulkComponentControls(const std::vector<Entity*>& entityVec, const std::string& componentCategory, const std::string& uniqueID);
36 void CopyComponentValues(BaseComponent* source, BaseComponent* target, size_t size);
37};
Definition GECS.h:105
Definition GraphRightPanel.h:15
Definition IScene.h:25
Definition UIElement.h:16
Definition GraphRightPanel.h:9