You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Make assets in progress open the next step instead of erring
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "scene/gui/grid_container.h"
|
||||
#include "scene/gui/line_edit.h"
|
||||
#include "scene/gui/link_button.h"
|
||||
#include "scene/gui/margin_container.h"
|
||||
#include "scene/gui/option_button.h"
|
||||
#include "scene/gui/panel_container.h"
|
||||
#include "scene/gui/progress_bar.h"
|
||||
@@ -126,16 +127,16 @@ public:
|
||||
EditorAssetLibraryItemDescription();
|
||||
};
|
||||
|
||||
class EditorAssetLibraryItemDownload : public Control {
|
||||
GDCLASS(EditorAssetLibraryItemDownload, Control);
|
||||
class EditorAssetLibraryItemDownload : public MarginContainer {
|
||||
GDCLASS(EditorAssetLibraryItemDownload, MarginContainer);
|
||||
|
||||
PanelContainer *panel;
|
||||
TextureRect *icon;
|
||||
Label *title;
|
||||
ProgressBar *progress;
|
||||
Button *install;
|
||||
Button *retry;
|
||||
TextureButton *dismiss;
|
||||
Button *install_button;
|
||||
Button *retry_button;
|
||||
TextureButton *dismiss_button;
|
||||
|
||||
AcceptDialog *download_error;
|
||||
HTTPRequest *download;
|
||||
@@ -152,7 +153,6 @@ class EditorAssetLibraryItemDownload : public Control {
|
||||
EditorAssetInstaller *asset_installer;
|
||||
|
||||
void _close();
|
||||
void _install();
|
||||
void _make_request();
|
||||
void _http_download_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data);
|
||||
|
||||
@@ -164,6 +164,7 @@ public:
|
||||
void set_external_install(bool p_enable) { external_install = p_enable; }
|
||||
int get_asset_id() { return asset_id; }
|
||||
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);
|
||||
void install();
|
||||
EditorAssetLibraryItemDownload();
|
||||
};
|
||||
|
||||
@@ -287,6 +288,7 @@ class EditorAssetLibrary : public PanelContainer {
|
||||
void _api_request(const String &p_request, RequestType p_request_type, const String &p_arguments = "");
|
||||
void _http_request_completed(int p_status, int p_code, const PackedStringArray &headers, const PackedByteArray &p_data);
|
||||
void _filter_debounce_timer_timeout();
|
||||
EditorAssetLibraryItemDownload *_get_asset_in_progress(int p_asset_id) const;
|
||||
|
||||
void _repository_changed(int p_repository_id);
|
||||
void _support_toggled(int p_support);
|
||||
|
||||
Reference in New Issue
Block a user