diff options
author | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-07-24 16:16:02 -0300 |
---|---|---|
committer | MarianoGNU <marianognu.easyrpg@gmail.com> | 2016-07-24 16:42:40 -0300 |
commit | ed094d52a9a281fc0735f633b02adc7f2cf11cf8 (patch) | |
tree | 4a0004e24ef6e5f22e69e3a67dd573bc21f15cb3 /tools/editor/editor_plugin.cpp | |
parent | 85f365bbffc0735a82d29ddce4e7991814ae1a5b (diff) |
expose bottom panel button to EditorPlugin scripts
Diffstat (limited to 'tools/editor/editor_plugin.cpp')
-rw-r--r-- | tools/editor/editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/editor_plugin.cpp b/tools/editor/editor_plugin.cpp index 01e6b613c0..2bdd4caebe 100644 --- a/tools/editor/editor_plugin.cpp +++ b/tools/editor/editor_plugin.cpp @@ -44,9 +44,9 @@ void EditorPlugin::remove_custom_type(const String& p_type){ } -void EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) { +ToolButton * EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) { - EditorNode::get_singleton()->add_bottom_panel_item(p_title,p_control); + return EditorNode::get_singleton()->add_bottom_panel_item(p_title,p_control); } void EditorPlugin::add_control_to_dock(DockSlot p_slot,Control *p_control) { |