2016-06-07 20:29:15 +02:00
|
|
|
/**************************************************************************/
|
|
|
|
/* asset_library_editor_plugin.h */
|
|
|
|
/**************************************************************************/
|
|
|
|
/* 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. */
|
|
|
|
/**************************************************************************/
|
2018-01-05 00:50:27 +01:00
|
|
|
|
2016-06-07 20:29:15 +02:00
|
|
|
#ifndef ASSET_LIBRARY_EDITOR_PLUGIN_H
|
|
|
|
#define ASSET_LIBRARY_EDITOR_PLUGIN_H
|
2016-02-29 13:56:36 +01:00
|
|
|
|
2019-10-09 16:11:04 +02:00
|
|
|
#include "editor/editor_asset_installer.h"
|
|
|
|
#include "editor/editor_plugin.h"
|
|
|
|
#include "editor/editor_plugin_settings.h"
|
2016-02-29 13:56:36 +01:00
|
|
|
#include "scene/gui/box_container.h"
|
2016-03-04 15:09:45 +01:00
|
|
|
#include "scene/gui/check_box.h"
|
2019-10-09 16:11:04 +02:00
|
|
|
#include "scene/gui/grid_container.h"
|
2016-02-29 13:56:36 +01:00
|
|
|
#include "scene/gui/line_edit.h"
|
2016-03-04 15:09:45 +01:00
|
|
|
#include "scene/gui/link_button.h"
|
2022-01-19 02:37:38 +01:00
|
|
|
#include "scene/gui/margin_container.h"
|
2016-02-29 13:56:36 +01:00
|
|
|
#include "scene/gui/option_button.h"
|
2016-03-04 15:09:45 +01:00
|
|
|
#include "scene/gui/panel_container.h"
|
2016-03-05 16:24:12 +01:00
|
|
|
#include "scene/gui/progress_bar.h"
|
2016-03-04 15:09:45 +01:00
|
|
|
#include "scene/gui/rich_text_label.h"
|
|
|
|
#include "scene/gui/scroll_container.h"
|
2019-10-09 16:11:04 +02:00
|
|
|
#include "scene/gui/separator.h"
|
|
|
|
#include "scene/gui/tab_container.h"
|
2016-03-04 15:09:45 +01:00
|
|
|
#include "scene/gui/texture_button.h"
|
|
|
|
#include "scene/main/http_request.h"
|
|
|
|
|
2022-11-11 20:12:48 +01:00
|
|
|
class EditorFileDialog;
|
|
|
|
class MenuButton;
|
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
class EditorAssetLibraryItem : public PanelContainer {
|
2017-01-03 03:03:46 +01:00
|
|
|
GDCLASS(EditorAssetLibraryItem, PanelContainer);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
TextureButton *icon = nullptr;
|
|
|
|
LinkButton *title = nullptr;
|
|
|
|
LinkButton *category = nullptr;
|
|
|
|
LinkButton *author = nullptr;
|
2017-01-12 22:27:27 +01:00
|
|
|
TextureRect *stars[5];
|
2022-04-04 15:06:57 +02:00
|
|
|
Label *price = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2022-05-02 16:28:25 +02:00
|
|
|
int asset_id = 0;
|
|
|
|
int category_id = 0;
|
|
|
|
int author_id = 0;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
void _asset_clicked();
|
|
|
|
void _category_clicked();
|
|
|
|
void _author_clicked();
|
|
|
|
|
2019-06-11 20:43:37 +02:00
|
|
|
void set_image(int p_type, int p_index, const Ref<Texture2D> &p_image);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-05 16:44:50 +01:00
|
|
|
public:
|
2019-06-12 12:24:08 +02:00
|
|
|
void 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);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2023-10-01 01:16:39 +02:00
|
|
|
void clamp_width(int p_max_width);
|
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
EditorAssetLibraryItem();
|
|
|
|
};
|
|
|
|
|
2016-06-08 14:25:47 +02:00
|
|
|
class EditorAssetLibraryItemDescription : public ConfirmationDialog {
|
2017-01-03 03:03:46 +01:00
|
|
|
GDCLASS(EditorAssetLibraryItemDescription, ConfirmationDialog);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
EditorAssetLibraryItem *item = nullptr;
|
|
|
|
RichTextLabel *description = nullptr;
|
|
|
|
ScrollContainer *previews = nullptr;
|
|
|
|
HBoxContainer *preview_hb = nullptr;
|
|
|
|
PanelContainer *previews_bg = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
struct Preview {
|
2020-11-24 10:12:55 +01:00
|
|
|
int id = 0;
|
|
|
|
bool is_video = false;
|
2016-03-04 15:09:45 +01:00
|
|
|
String video_link;
|
2020-11-24 10:12:55 +01:00
|
|
|
Button *button = nullptr;
|
2019-06-11 20:43:37 +02:00
|
|
|
Ref<Texture2D> image;
|
2016-03-04 15:09:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
Vector<Preview> preview_images;
|
2022-04-04 15:06:57 +02:00
|
|
|
TextureRect *preview = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2019-06-11 20:43:37 +02:00
|
|
|
void set_image(int p_type, int p_index, const Ref<Texture2D> &p_image);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2022-05-02 16:28:25 +02:00
|
|
|
int asset_id = 0;
|
2016-03-12 14:44:12 +01:00
|
|
|
String download_url;
|
|
|
|
String title;
|
2016-06-21 14:38:29 +02:00
|
|
|
String sha256;
|
2019-06-11 20:43:37 +02:00
|
|
|
Ref<Texture2D> icon;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
void _link_click(const String &p_url);
|
2017-08-12 18:52:50 +02:00
|
|
|
void _preview_click(int p_id);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
protected:
|
2017-08-04 21:41:31 +02:00
|
|
|
void _notification(int p_what);
|
2016-03-04 15:09:45 +01:00
|
|
|
static void _bind_methods();
|
|
|
|
|
2016-06-21 14:38:29 +02:00
|
|
|
public:
|
2019-06-12 12:24:08 +02:00
|
|
|
void 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);
|
2016-03-04 15:09:45 +01:00
|
|
|
void add_preview(int p_id, bool p_video, const String &p_url);
|
|
|
|
|
2016-03-12 14:44:12 +01:00
|
|
|
String get_title() { return title; }
|
2019-06-11 20:43:37 +02:00
|
|
|
Ref<Texture2D> get_preview_icon() { return icon; }
|
2016-03-12 14:44:12 +01:00
|
|
|
String get_download_url() { return download_url; }
|
|
|
|
int get_asset_id() { return asset_id; }
|
2016-06-21 14:38:29 +02:00
|
|
|
String get_sha256() { return sha256; }
|
2016-06-08 14:25:47 +02:00
|
|
|
EditorAssetLibraryItemDescription();
|
2016-03-04 15:09:45 +01:00
|
|
|
};
|
|
|
|
|
2022-01-19 02:37:38 +01:00
|
|
|
class EditorAssetLibraryItemDownload : public MarginContainer {
|
|
|
|
GDCLASS(EditorAssetLibraryItemDownload, MarginContainer);
|
2016-03-12 14:44:12 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
PanelContainer *panel = nullptr;
|
|
|
|
TextureRect *icon = nullptr;
|
|
|
|
Label *title = nullptr;
|
|
|
|
ProgressBar *progress = nullptr;
|
|
|
|
Button *install_button = nullptr;
|
|
|
|
Button *retry_button = nullptr;
|
|
|
|
TextureButton *dismiss_button = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
AcceptDialog *download_error = nullptr;
|
|
|
|
HTTPRequest *download = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
String host;
|
2016-06-21 14:38:29 +02:00
|
|
|
String sha256;
|
2022-04-04 15:06:57 +02:00
|
|
|
Label *status = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
int prev_status;
|
|
|
|
|
2022-05-02 16:28:25 +02:00
|
|
|
int asset_id = 0;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
2016-07-12 02:34:02 +02:00
|
|
|
bool external_install;
|
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
EditorAssetInstaller *asset_installer = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
void _close();
|
2016-06-07 20:29:15 +02:00
|
|
|
void _make_request();
|
2020-02-17 22:06:54 +01:00
|
|
|
void _http_download_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data);
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-05 16:44:50 +01:00
|
|
|
public:
|
2016-07-12 02:34:02 +02:00
|
|
|
void set_external_install(bool p_enable) { external_install = p_enable; }
|
2016-03-12 14:44:12 +01:00
|
|
|
int get_asset_id() { return asset_id; }
|
2019-06-11 20:43:37 +02:00
|
|
|
void configure(const String &p_title, int p_asset_id, const Ref<Texture2D> &p_preview, const String &p_download_url, const String &p_sha256_hash);
|
2022-01-19 17:16:17 +01:00
|
|
|
|
|
|
|
bool can_install() const;
|
2022-01-19 02:37:38 +01:00
|
|
|
void install();
|
2022-01-19 17:16:17 +01:00
|
|
|
|
2016-06-08 14:25:47 +02:00
|
|
|
EditorAssetLibraryItemDownload();
|
2016-03-12 14:44:12 +01:00
|
|
|
};
|
|
|
|
|
2016-06-08 14:25:47 +02:00
|
|
|
class EditorAssetLibrary : public PanelContainer {
|
2017-01-03 03:03:46 +01:00
|
|
|
GDCLASS(EditorAssetLibrary, PanelContainer);
|
2016-02-29 13:56:36 +01:00
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
String host;
|
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
EditorFileDialog *asset_open = nullptr;
|
|
|
|
EditorAssetInstaller *asset_installer = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
void _asset_open();
|
|
|
|
void _asset_file_selected(const String &p_file);
|
2021-03-13 22:55:59 +01:00
|
|
|
void _update_repository_options();
|
2016-03-12 14:44:12 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
PanelContainer *library_scroll_bg = nullptr;
|
|
|
|
ScrollContainer *library_scroll = nullptr;
|
|
|
|
VBoxContainer *library_vb = nullptr;
|
2024-01-30 17:35:46 +01:00
|
|
|
VBoxContainer *library_message_box = nullptr;
|
|
|
|
Label *library_message = nullptr;
|
|
|
|
Button *library_message_button = nullptr;
|
|
|
|
Callable library_message_action;
|
|
|
|
|
|
|
|
void _set_library_message(const String &p_message);
|
|
|
|
void _set_library_message_with_action(const String &p_message, const String &p_action_text, const Callable &p_action);
|
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
LineEdit *filter = nullptr;
|
|
|
|
Timer *filter_debounce_timer = nullptr;
|
|
|
|
OptionButton *categories = nullptr;
|
|
|
|
OptionButton *repository = nullptr;
|
|
|
|
OptionButton *sort = nullptr;
|
|
|
|
HBoxContainer *error_hb = nullptr;
|
|
|
|
TextureRect *error_tr = nullptr;
|
|
|
|
Label *error_label = nullptr;
|
|
|
|
MenuButton *support = nullptr;
|
|
|
|
|
|
|
|
HBoxContainer *contents = nullptr;
|
|
|
|
|
|
|
|
HBoxContainer *asset_top_page = nullptr;
|
|
|
|
GridContainer *asset_items = nullptr;
|
|
|
|
HBoxContainer *asset_bottom_page = nullptr;
|
|
|
|
|
|
|
|
HTTPRequest *request = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2024-01-30 17:35:46 +01:00
|
|
|
bool templates_only = false;
|
|
|
|
bool initial_loading = true;
|
|
|
|
bool loading_blocked = false;
|
|
|
|
|
|
|
|
void _force_online_mode();
|
2016-06-08 14:25:47 +02:00
|
|
|
|
2016-06-08 15:17:16 +02:00
|
|
|
enum Support {
|
|
|
|
SUPPORT_OFFICIAL,
|
|
|
|
SUPPORT_COMMUNITY,
|
2016-06-21 15:29:49 +02:00
|
|
|
SUPPORT_TESTING,
|
|
|
|
SUPPORT_MAX
|
2016-06-08 15:17:16 +02:00
|
|
|
};
|
2016-03-12 14:44:12 +01:00
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
enum SortOrder {
|
2019-08-24 04:53:14 +02:00
|
|
|
SORT_UPDATED,
|
|
|
|
SORT_UPDATED_REVERSE,
|
2016-03-04 15:09:45 +01:00
|
|
|
SORT_NAME,
|
2019-08-24 04:53:14 +02:00
|
|
|
SORT_NAME_REVERSE,
|
2016-03-04 15:09:45 +01:00
|
|
|
SORT_COST,
|
2019-08-24 04:53:14 +02:00
|
|
|
SORT_COST_REVERSE,
|
2016-03-04 15:09:45 +01:00
|
|
|
SORT_MAX
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char *sort_key[SORT_MAX];
|
|
|
|
static const char *sort_text[SORT_MAX];
|
2016-06-21 15:29:49 +02:00
|
|
|
static const char *support_key[SUPPORT_MAX];
|
2022-12-31 05:50:12 +01:00
|
|
|
static const char *support_text[SUPPORT_MAX];
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
///MainListing
|
|
|
|
|
|
|
|
enum ImageType {
|
|
|
|
IMAGE_QUEUE_ICON,
|
|
|
|
IMAGE_QUEUE_THUMBNAIL,
|
|
|
|
IMAGE_QUEUE_SCREENSHOT,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ImageQueue {
|
2020-11-24 10:12:55 +01:00
|
|
|
bool active = false;
|
|
|
|
int queue_id = 0;
|
|
|
|
ImageType image_type = ImageType::IMAGE_QUEUE_ICON;
|
|
|
|
int image_index = 0;
|
2016-06-07 20:29:15 +02:00
|
|
|
String image_url;
|
2020-11-24 10:12:55 +01:00
|
|
|
HTTPRequest *request = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
ObjectID target;
|
|
|
|
};
|
|
|
|
|
|
|
|
int last_queue_id;
|
2022-05-13 15:04:37 +02:00
|
|
|
HashMap<int, ImageQueue> image_queue;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2020-02-17 22:06:54 +01:00
|
|
|
void _image_update(bool use_cache, bool final, const PackedByteArray &p_data, int p_queue_id);
|
|
|
|
void _image_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data, int p_queue_id);
|
2016-06-07 20:29:15 +02:00
|
|
|
void _request_image(ObjectID p_for, String p_image_url, ImageType p_type, int p_image_index);
|
2016-03-04 15:09:45 +01:00
|
|
|
void _update_image_queue();
|
|
|
|
|
2016-06-07 20:29:15 +02:00
|
|
|
HBoxContainer *_make_pages(int p_page, int p_page_count, int p_page_len, int p_total_items, int p_current_items);
|
2016-03-04 15:09:45 +01:00
|
|
|
|
|
|
|
//
|
2022-04-04 15:06:57 +02:00
|
|
|
EditorAssetLibraryItemDescription *description = nullptr;
|
2016-03-04 15:09:45 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
enum RequestType {
|
|
|
|
REQUESTING_NONE,
|
|
|
|
REQUESTING_CONFIG,
|
2016-06-07 20:29:15 +02:00
|
|
|
REQUESTING_SEARCH,
|
|
|
|
REQUESTING_ASSET,
|
2016-03-04 15:09:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
RequestType requesting;
|
2016-06-07 20:29:15 +02:00
|
|
|
Dictionary category_map;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
ScrollContainer *downloads_scroll = nullptr;
|
|
|
|
HBoxContainer *downloads_hb = nullptr;
|
2016-03-12 14:44:12 +01:00
|
|
|
|
|
|
|
void _install_asset();
|
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
void _select_author(int p_id);
|
|
|
|
void _select_category(int p_id);
|
|
|
|
void _select_asset(int p_id);
|
|
|
|
|
2016-03-12 14:44:12 +01:00
|
|
|
void _manage_plugins();
|
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
void _search(int p_page = 0);
|
2016-06-21 16:10:02 +02:00
|
|
|
void _rerun_search(int p_ignore);
|
2020-09-29 12:43:38 +02:00
|
|
|
void _search_text_changed(const String &p_text = "");
|
2021-06-16 18:43:34 +02:00
|
|
|
void _search_text_submitted(const String &p_text = "");
|
2016-06-07 20:29:15 +02:00
|
|
|
void _api_request(const String &p_request, RequestType p_request_type, const String &p_arguments = "");
|
2020-02-17 22:06:54 +01:00
|
|
|
void _http_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data);
|
2020-09-29 12:43:38 +02:00
|
|
|
void _filter_debounce_timer_timeout();
|
2022-05-04 11:49:11 +02:00
|
|
|
void _request_current_config();
|
2022-01-19 02:37:38 +01:00
|
|
|
EditorAssetLibraryItemDownload *_get_asset_in_progress(int p_asset_id) const;
|
2016-03-04 15:09:45 +01:00
|
|
|
|
2016-06-07 20:29:15 +02:00
|
|
|
void _repository_changed(int p_repository_id);
|
2016-06-21 15:29:49 +02:00
|
|
|
void _support_toggled(int p_support);
|
2016-06-07 20:29:15 +02:00
|
|
|
|
2016-07-12 02:34:02 +02:00
|
|
|
void _install_external_asset(String p_zip_path, String p_title);
|
|
|
|
|
2023-10-01 01:16:39 +02:00
|
|
|
int asset_items_column_width = 0;
|
|
|
|
|
2022-07-02 22:15:42 +02:00
|
|
|
void _update_asset_items_columns();
|
|
|
|
|
2016-06-08 14:25:47 +02:00
|
|
|
friend class EditorAssetLibraryItemDescription;
|
2016-03-04 15:09:45 +01:00
|
|
|
friend class EditorAssetLibraryItem;
|
2016-02-29 13:56:36 +01:00
|
|
|
|
2016-03-04 15:09:45 +01:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
void _notification(int p_what);
|
2022-01-11 14:59:52 +01:00
|
|
|
virtual void shortcut_input(const Ref<InputEvent> &p_event) override;
|
2017-03-05 16:44:50 +01:00
|
|
|
|
2016-02-29 13:56:36 +01:00
|
|
|
public:
|
2017-11-26 19:31:08 +01:00
|
|
|
void disable_community_support();
|
|
|
|
|
2016-06-08 14:25:47 +02:00
|
|
|
EditorAssetLibrary(bool p_templates_only = false);
|
2016-02-29 13:56:36 +01:00
|
|
|
};
|
|
|
|
|
2016-06-07 20:29:15 +02:00
|
|
|
class AssetLibraryEditorPlugin : public EditorPlugin {
|
2017-01-03 03:03:46 +01:00
|
|
|
GDCLASS(AssetLibraryEditorPlugin, EditorPlugin);
|
2016-02-29 13:56:36 +01:00
|
|
|
|
2022-04-04 15:06:57 +02:00
|
|
|
EditorAssetLibrary *addon_library = nullptr;
|
2016-02-29 13:56:36 +01:00
|
|
|
|
|
|
|
public:
|
2022-06-29 19:27:27 +02:00
|
|
|
static bool is_available();
|
|
|
|
|
2020-07-10 12:34:39 +02:00
|
|
|
virtual String get_name() const override { return "AssetLib"; }
|
|
|
|
bool has_main_screen() const override { return true; }
|
|
|
|
virtual void edit(Object *p_object) override {}
|
|
|
|
virtual bool handles(Object *p_object) const override { return false; }
|
|
|
|
virtual void make_visible(bool p_visible) override;
|
2016-02-29 13:56:36 +01:00
|
|
|
//virtual bool get_remove_list(List<Node*> *p_list) { return canvas_item_editor->get_remove_list(p_list); }
|
|
|
|
//virtual Dictionary get_state() const;
|
|
|
|
//virtual void set_state(const Dictionary& p_state);
|
|
|
|
|
2022-01-27 10:36:51 +01:00
|
|
|
AssetLibraryEditorPlugin();
|
2016-06-07 20:29:15 +02:00
|
|
|
~AssetLibraryEditorPlugin();
|
2016-02-29 13:56:36 +01:00
|
|
|
};
|
|
|
|
|
2022-07-23 23:41:51 +02:00
|
|
|
#endif // ASSET_LIBRARY_EDITOR_PLUGIN_H
|