godot/editor/plugins/asset_library_editor_plugin.cpp

/**************************************************************************/
/*  asset_library_editor_plugin.cpp                                       */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "asset_library_editor_plugin.h"

#include "core/input/input.h"
#include "core/io/json.h"
#include "core/io/stream_peer_tls.h"
#include "core/os/keyboard.h"
#include "core/version.h"
#include "editor/editor_node.h"
#include "editor/editor_paths.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
#include "editor/gui/editor_file_dialog.h"
#include "editor/project_settings_editor.h"
#include "editor/themes/editor_scale.h"
#include "scene/gui/menu_button.h"
#include "scene/resources/image_texture.h"

static inline void setup_http_request(HTTPRequest *request) {}

void EditorAssetLibraryItem::configure(const String &p_title, int p_asset_id, const String &p_category, int p_category_id, const String &p_author, int p_author_id, const String &p_cost) {}

// TODO: Refactor this method to use the TextServer.
void EditorAssetLibraryItem::clamp_width(int p_max_width) {}

void EditorAssetLibraryItem::set_image(int p_type, int p_index, const Ref<Texture2D> &p_image) {}

void EditorAssetLibraryItem::_notification(int p_what) {}

void EditorAssetLibraryItem::_asset_clicked() {}

void EditorAssetLibraryItem::_category_clicked() {}

void EditorAssetLibraryItem::_author_clicked() {}

void EditorAssetLibraryItem::_bind_methods() {}

EditorAssetLibraryItem::EditorAssetLibraryItem(bool p_clickable) {}

//////////////////////////////////////////////////////////////////////////////

void EditorAssetLibraryItemDescription::set_image(int p_type, int p_index, const Ref<Texture2D> &p_image) {}

void EditorAssetLibraryItemDescription::_notification(int p_what) {}

void EditorAssetLibraryItemDescription::_bind_methods() {}

void EditorAssetLibraryItemDescription::_link_click(const String &p_url) {}

void EditorAssetLibraryItemDescription::_preview_click(int p_id) {}

void EditorAssetLibraryItemDescription::configure(const String &p_title, int p_asset_id, const String &p_category, int p_category_id, const String &p_author, int p_author_id, const String &p_cost, int p_version, const String &p_version_string, const String &p_description, const String &p_download_url, const String &p_browse_url, const String &p_sha256_hash) {}

void EditorAssetLibraryItemDescription::add_preview(int p_id, bool p_video, const String &p_url) {}

EditorAssetLibraryItemDescription::EditorAssetLibraryItemDescription() {}

///////////////////////////////////////////////////////////////////////////////////

void EditorAssetLibraryItemDownload::_http_download_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data) {}

void EditorAssetLibraryItemDownload::configure(const String &p_title, int p_asset_id, const Ref<Texture2D> &p_preview, const String &p_download_url, const String &p_sha256_hash) {}

void EditorAssetLibraryItemDownload::_notification(int p_what) {}

void EditorAssetLibraryItemDownload::_close() {}

bool EditorAssetLibraryItemDownload::can_install() const {}

void EditorAssetLibraryItemDownload::install() {}

void EditorAssetLibraryItemDownload::_make_request() {}

void EditorAssetLibraryItemDownload::_bind_methods() {}

EditorAssetLibraryItemDownload::EditorAssetLibraryItemDownload() {}

////////////////////////////////////////////////////////////////////////////////
void EditorAssetLibrary::_notification(int p_what) {}

void EditorAssetLibrary::_update_repository_options() {}

void EditorAssetLibrary::shortcut_input(const Ref<InputEvent> &p_event) {}

void EditorAssetLibrary::_install_asset() {}

const char *EditorAssetLibrary::sort_key[SORT_MAX] =;

const char *EditorAssetLibrary::sort_text[SORT_MAX] =;

const char *EditorAssetLibrary::support_key[SUPPORT_MAX] =;

const char *EditorAssetLibrary::support_text[SUPPORT_MAX] =;

void EditorAssetLibrary::_select_author(const String &p_author) {}

void EditorAssetLibrary::_select_category(int p_id) {}

void EditorAssetLibrary::_select_asset(int p_id) {}

void EditorAssetLibrary::_image_update(bool p_use_cache, bool p_final, const PackedByteArray &p_data, int p_queue_id) {}

void EditorAssetLibrary::_image_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data, int p_queue_id) {}

void EditorAssetLibrary::_update_image_queue() {}

void EditorAssetLibrary::_request_image(ObjectID p_for, int p_asset_id, String p_image_url, ImageType p_type, int p_image_index) {}

void EditorAssetLibrary::_repository_changed(int p_repository_id) {}

void EditorAssetLibrary::_support_toggled(int p_support) {}

void EditorAssetLibrary::_rerun_search(int p_ignore) {}

void EditorAssetLibrary::_search(int p_page) {}

void EditorAssetLibrary::_search_text_changed(const String &p_text) {}

void EditorAssetLibrary::_filter_debounce_timer_timeout() {}

void EditorAssetLibrary::_request_current_config() {}

HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int p_page_len, int p_total_items, int p_current_items) {}

void EditorAssetLibrary::_api_request(const String &p_request, RequestType p_request_type, const String &p_arguments) {}

void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data) {}

void EditorAssetLibrary::_asset_file_selected(const String &p_file) {}

void EditorAssetLibrary::_asset_open() {}

void EditorAssetLibrary::_manage_plugins() {}

EditorAssetLibraryItemDownload *EditorAssetLibrary::_get_asset_in_progress(int p_asset_id) const {}

void EditorAssetLibrary::_install_external_asset(String p_zip_path, String p_title) {}

void EditorAssetLibrary::_update_asset_items_columns() {}

void EditorAssetLibrary::_set_library_message(const String &p_message) {}

void EditorAssetLibrary::_set_library_message_with_action(const String &p_message, const String &p_action_text, const Callable &p_action) {}

void EditorAssetLibrary::_force_online_mode() {}

void EditorAssetLibrary::disable_community_support() {}

void EditorAssetLibrary::_bind_methods() {}

EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {}

///////

bool AssetLibraryEditorPlugin::is_available() {}

void AssetLibraryEditorPlugin::make_visible(bool p_visible) {}

AssetLibraryEditorPlugin::AssetLibraryEditorPlugin() {}

AssetLibraryEditorPlugin::~AssetLibraryEditorPlugin() {}