diff options
| author | Juan Linietsky | 2017-08-15 11:41:17 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-08-15 11:41:17 -0300 |
| commit | cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a (patch) | |
| tree | 253d73fcdaa02c01e08544a8718ed2f56cfeb1e4 /editor/plugins/cube_grid_theme_editor_plugin.h | |
| parent | fdc2cdef0bc0d006effdfd4a64d097b0a3ba249d (diff) | |
| download | godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.tar.gz godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.tar.zst godot-cb0e357d0b8565fcba6f2cf0ec5ea8e795e3fc2a.zip | |
Diffstat (limited to 'editor/plugins/cube_grid_theme_editor_plugin.h')
| -rw-r--r-- | editor/plugins/cube_grid_theme_editor_plugin.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/editor/plugins/cube_grid_theme_editor_plugin.h b/editor/plugins/cube_grid_theme_editor_plugin.h index ed5875a99..6fe5fc423 100644 --- a/editor/plugins/cube_grid_theme_editor_plugin.h +++ b/editor/plugins/cube_grid_theme_editor_plugin.h @@ -33,10 +33,9 @@ #include "editor/editor_node.h" #include "scene/resources/mesh_library.h" -#if 0 class MeshLibraryEditor : public Control { - GDCLASS( MeshLibraryEditor, Control ); + GDCLASS(MeshLibraryEditor, Control); Ref<MeshLibrary> theme; @@ -55,7 +54,7 @@ class MeshLibraryEditor : public Control { }; int option; - void _import_scene_cbk(const String& p_str); + void _import_scene_cbk(const String &p_str); void _menu_cbk(int p_option); void _menu_confirm(); @@ -63,25 +62,22 @@ class MeshLibraryEditor : public Control { protected: static void _bind_methods(); -public: - void edit(const Ref<MeshLibrary>& p_theme); - static Error update_library_file(Node *p_base_scene, Ref<MeshLibrary> ml,bool p_merge=true); +public: + void edit(const Ref<MeshLibrary> &p_theme); + static Error update_library_file(Node *p_base_scene, Ref<MeshLibrary> ml, bool p_merge = true); MeshLibraryEditor(EditorNode *p_editor); }; - - class MeshLibraryEditorPlugin : public EditorPlugin { - GDCLASS( MeshLibraryEditorPlugin, EditorPlugin ); + GDCLASS(MeshLibraryEditorPlugin, EditorPlugin); MeshLibraryEditor *theme_editor; EditorNode *editor; public: - virtual String get_name() const { return "MeshLibrary"; } bool has_main_screen() const { return false; } virtual void edit(Object *p_node); @@ -89,8 +85,6 @@ public: virtual void make_visible(bool p_visible); MeshLibraryEditorPlugin(EditorNode *p_node); - }; #endif // CUBE_GRID_THEME_EDITOR_PLUGIN_H -#endif |
