diff options
| author | Jakub Grzesik | 2017-07-06 09:18:20 +0200 |
|---|---|---|
| committer | Jakub Grzesik | 2017-07-18 17:48:19 +0200 |
| commit | 708d8250011dad02fd7d3651eb057bdd9e52fb7f (patch) | |
| tree | 7e78acb79d4cd57cdc5c182edfe94ed7216a5af3 /editor/editor_plugin.h | |
| parent | 0ee47fefbe4f746d6e00e863e4523398365b4e47 (diff) | |
| download | godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.tar.gz godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.tar.zst godot-708d8250011dad02fd7d3651eb057bdd9e52fb7f.zip | |
Make available more informations about editor for Tool Plugins
Diffstat (limited to 'editor/editor_plugin.h')
| -rw-r--r-- | editor/editor_plugin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/editor/editor_plugin.h b/editor/editor_plugin.h index 3653851d5..2c920323a 100644 --- a/editor/editor_plugin.h +++ b/editor/editor_plugin.h @@ -52,6 +52,8 @@ class EditorImportPlugin; class EditorExportPlugin; class EditorResourcePreview; class EditorFileSystem; +class EditorToolAddons; +class ScriptEditor; class EditorPlugin : public Node { @@ -63,6 +65,8 @@ class EditorPlugin : public Node { bool input_event_forwarding_always_enabled; + String last_main_screen_name; + protected: static void _bind_methods(); UndoRedo &get_undo_redo() { return *undo_redo; } @@ -113,6 +117,14 @@ public: void set_input_event_forwarding_always_enabled(); bool is_input_event_forwarding_always_enabled() { return input_event_forwarding_always_enabled; } + Node *get_edited_scene_root(); + Array get_opened_scenes_list() const; + ScriptEditor *get_script_editor(); + + void notify_main_screen_changed(const String &screen_name); + void notify_scene_changed(const Node *scn_root); + void notify_scene_closed(const String &scene_filepath); + virtual Ref<SpatialEditorGizmo> create_spatial_gizmo(Spatial *p_spatial); virtual bool forward_canvas_gui_input(const Transform2D &p_canvas_xform, const Ref<InputEvent> &p_event); virtual void forward_draw_over_canvas(const Transform2D &p_canvas_xform, Control *p_canvas); |
