diff options
| author | Juan Linietsky | 2017-11-26 15:31:08 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-11-26 15:31:48 -0300 |
| commit | c6f2db393e8d939dc0378826513ca09943660f31 (patch) | |
| tree | 7e7fd9551842344243053373c80771a9df9bec6b /editor/plugins | |
| parent | 22415e5a3168b3dee3cf95d0697ca548bf04d8bf (diff) | |
| download | godot-c6f2db393e8d939dc0378826513ca09943660f31.tar.gz godot-c6f2db393e8d939dc0378826513ca09943660f31.tar.zst godot-c6f2db393e8d939dc0378826513ca09943660f31.zip | |
Ask users to explore official projects when none is loaded.
Diffstat (limited to 'editor/plugins')
| -rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 4 | ||||
| -rw-r--r-- | editor/plugins/asset_library_editor_plugin.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index b63352389..eee54f3cd 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -1268,6 +1268,10 @@ void EditorAssetLibrary::_install_external_asset(String p_zip_path, String p_tit emit_signal("install_asset", p_zip_path, p_title); } +void EditorAssetLibrary::disable_community_support() { + support->get_popup()->set_item_checked(SUPPORT_COMMUNITY, false); +} + void EditorAssetLibrary::_bind_methods() { ClassDB::bind_method("_http_request_completed", &EditorAssetLibrary::_http_request_completed); diff --git a/editor/plugins/asset_library_editor_plugin.h b/editor/plugins/asset_library_editor_plugin.h index 35977f394..90d597e70 100644 --- a/editor/plugins/asset_library_editor_plugin.h +++ b/editor/plugins/asset_library_editor_plugin.h @@ -301,6 +301,8 @@ protected: void _notification(int p_what); public: + void disable_community_support(); + EditorAssetLibrary(bool p_templates_only = false); }; |
