diff options
| author | Juan Linietsky | 2016-02-29 09:56:36 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-02-29 09:57:38 -0300 |
| commit | 210d332defffb5528da6c6aff3b28fb8732bf007 (patch) | |
| tree | bb38c77cf1b059f31e0c5da8b1ac060f2e5d36e8 /tools/editor/addon_editor_plugin.h | |
| parent | 445d38b7280b25caec1b9728f68d0aa0f69917b6 (diff) | |
| download | godot-210d332defffb5528da6c6aff3b28fb8732bf007.tar.gz godot-210d332defffb5528da6c6aff3b28fb8732bf007.tar.zst godot-210d332defffb5528da6c6aff3b28fb8732bf007.zip | |
-wip on addon editor
-fixes instantiable subclasses not working, as reported in #3871
Diffstat (limited to 'tools/editor/addon_editor_plugin.h')
| -rw-r--r-- | tools/editor/addon_editor_plugin.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tools/editor/addon_editor_plugin.h b/tools/editor/addon_editor_plugin.h new file mode 100644 index 000000000..3a4086d07 --- /dev/null +++ b/tools/editor/addon_editor_plugin.h @@ -0,0 +1,50 @@ +#ifndef ADDON_EDITOR_PLUGIN_H +#define ADDON_EDITOR_PLUGIN_H + + +#include "editor_plugin.h" +#include "scene/gui/box_container.h" +#include "scene/gui/line_edit.h" +#include "scene/gui/option_button.h" +#include "scene/gui/tab_container.h" +#include "editor_plugin_settings.h" + +class EditorAddonLibrary : public VBoxContainer { + OBJ_TYPE(EditorAddonLibrary,VBoxContainer); + + TabContainer *tabs; + EditorPluginSettings *installed; + VBoxContainer *library; + LineEdit *filter; + OptionButton *categories; + Button *search; + + +public: + EditorAddonLibrary(); +}; + +class AddonEditorPlugin : public EditorPlugin { + + OBJ_TYPE( AddonEditorPlugin, EditorPlugin ); + + EditorAddonLibrary *addon_library; + EditorNode *editor; + +public: + + virtual String get_name() const { return "Addons"; } + bool has_main_screen() const { return true; } + virtual void edit(Object *p_object) {} + virtual bool handles(Object *p_object) const { return false; } + virtual void make_visible(bool p_visible); + //virtual bool get_remove_list(List<Node*> *p_list) { return canvas_item_editor->get_remove_list(p_list); } + //virtual Dictionary get_state() const; + //virtual void set_state(const Dictionary& p_state); + + AddonEditorPlugin(EditorNode *p_node); + ~AddonEditorPlugin(); + +}; + +#endif // EDITORASSETLIBRARY_H |
