feat: selection tracking
This commit is contained in:
parent
4aa1075fb6
commit
cb43179770
15 changed files with 217 additions and 20 deletions
24
modules/terrain_editor/layer_editor.h
Normal file
24
modules/terrain_editor/layer_editor.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include "scene/gui/tab_container.h"
|
||||
#include "terrain_editor/terrain_mesh_editor.h"
|
||||
#include "terrain_primitive.h"
|
||||
|
||||
class LayerEditor : public TabContainer {
|
||||
GDCLASS(LayerEditor, TabContainer);
|
||||
static void _bind_methods();
|
||||
|
||||
protected:
|
||||
public:
|
||||
void deselect_current();
|
||||
void select(Ref<TerrainPrimitive> primitive);
|
||||
void set_inspectors(Dictionary dict);
|
||||
Dictionary get_inspectors() const;
|
||||
void set_terrain(TerrainMeshEditor *terrain);
|
||||
TerrainMeshEditor *get_terrain() const;
|
||||
|
||||
private:
|
||||
HashMap<StringName, Ref<PackedScene>> inspectors{};
|
||||
Node *current_inspector{ nullptr };
|
||||
TerrainMeshEditor *terrain{ nullptr };
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue