TazGraph Project
v0.1.0
Loading...
Searching...
No Matches
TazGraph
Src
EditorIMGUI
Components
GraphRightPanel
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
9
struct
GraphRightConfig
{
10
IScene
* scene;
11
std::vector<SelectedInfo> c_selectedEntities;
12
};
13
14
class
GraphRightPanel
:
public
UIElement
15
{
16
private
:
17
GraphRightConfig
config;
18
int
selectedGroup = -1;
19
public
:
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
};
BaseComponent
Definition
GECS.h:105
GraphRightPanel
Definition
GraphRightPanel.h:15
IScene
Definition
IScene.h:25
UIElement
Definition
UIElement.h:16
GraphRightConfig
Definition
GraphRightPanel.h:9
Generated by
1.9.8