diff options
author | trollodel <33117082+trollodel@users.noreply.github.com> | 2021-11-17 21:08:55 +0100 |
---|---|---|
committer | trollodel <33117082+trollodel@users.noreply.github.com> | 2022-01-20 20:13:26 +0100 |
commit | aa1102fc536bd7b3a2cff703d79713c454af7e6c (patch) | |
tree | dbe06bedc829e44e5186ea36a70386e8209b2666 /editor/node_dock.h | |
parent | 8fc0dd9997c80059ec2b273e7004daa458d370ee (diff) | |
download | redot-engine-aa1102fc536bd7b3a2cff703d79713c454af7e6c.tar.gz |
Store panels and docks singletons in their own classes
Diffstat (limited to 'editor/node_dock.h')
-rw-r--r-- | editor/node_dock.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/node_dock.h b/editor/node_dock.h index b35be8de8a..4c814ab65f 100644 --- a/editor/node_dock.h +++ b/editor/node_dock.h @@ -48,13 +48,17 @@ class NodeDock : public VBoxContainer { Label *select_a_node; +private: + static NodeDock *singleton; + +public: + static NodeDock *get_singleton() { return singleton; } + protected: static void _bind_methods(); void _notification(int p_what); public: - static NodeDock *singleton; - void set_node(Node *p_node); void show_groups(); @@ -63,6 +67,7 @@ public: void update_lists(); NodeDock(); + ~NodeDock(); }; #endif // NODE_DOCK_H |