diff options
author | Will Nations <willnationsdev@gmail.com> | 2018-07-19 10:34:22 -0500 |
---|---|---|
committer | Will Nations <willnationsdev@gmail.com> | 2018-07-26 10:12:05 -0500 |
commit | ff604414a4730ba49409afca22e1c7aa44d0c338 (patch) | |
tree | 6ecbfb978534a4420e1acd8e5470e818e6e854ef /editor/editor_plugin.cpp | |
parent | 91d6fa817ec412b1cb7a753e812e76aa952a7ac0 (diff) | |
download | redot-engine-ff604414a4730ba49409afca22e1c7aa44d0c338.tar.gz |
Add PluginConfigDialog, EditorPluginSettings GUI
Diffstat (limited to 'editor/editor_plugin.cpp')
-rw-r--r-- | editor/editor_plugin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/editor_plugin.cpp b/editor/editor_plugin.cpp index 843267d673..fcf56cdc09 100644 --- a/editor/editor_plugin.cpp +++ b/editor/editor_plugin.cpp @@ -309,6 +309,12 @@ void EditorPlugin::remove_autoload_singleton(const String &p_name) { EditorNode::get_singleton()->get_project_settings()->get_autoload_settings()->autoload_remove(p_name); } +Ref<ConfigFile> EditorPlugin::get_config() { + Ref<ConfigFile> cf = memnew(ConfigFile); + cf->load(_dir_cache.plus_file("plugin.cfg")); + return cf; +} + ToolButton *EditorPlugin::add_control_to_bottom_panel(Control *p_control, const String &p_title) { ERR_FAIL_NULL_V(p_control, NULL); return EditorNode::get_singleton()->add_bottom_panel_item(p_title, p_control); |