From d0c58e249aafa8e5a1ffca60b5f8f5f1a3b58e50 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 19 Apr 2024 21:00:58 +0300 Subject: [PATCH] Add LospecPaletteImporter extension in store_info.md --- src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd | 9 +++++---- src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn | 2 +- src/UI/ExtensionExplorer/store_info.md | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd index 331db3686..d392b6f57 100644 --- a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd +++ b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd @@ -47,7 +47,8 @@ func set_info(info: Dictionary, extension_path: String) -> void: func _on_RequestDelay_timeout() -> void: request_delay.queue_free() # node no longer needed - thumbnail_request.request(thumbnail) # image + if not thumbnail.is_empty(): + thumbnail_request.request(thumbnail) # image func _on_ImageRequest_request_completed( @@ -92,7 +93,7 @@ func _on_DownloadRequest_request_completed( else: alert_dialog.get_node("Text").text = ( str( - "Unable to Download extension...\nHttp Code: ", + "Unable to download extension.\nHttp Code: ", result, " (", error_string(result), @@ -111,7 +112,7 @@ func announce_done(success: bool) -> void: down_button.disabled = false if success: done_label.visible = true - down_button.text = "Re-Download" + down_button.text = "Redownload" done_label.get_node("DoneDelay").start() @@ -138,7 +139,7 @@ func change_button_if_updatable(extension_name: String, new_version: float) -> v down_button.text = "Update" is_update = true elif new_version == old_version: - down_button.text = "Re-Download" + down_button.text = "Redownload" ## Show an enlarged version of the thumbnail diff --git a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn index 23f0a387d..27c5c5637 100644 --- a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn +++ b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn @@ -53,7 +53,7 @@ unique_name_in_owner = true visible = false self_modulate = Color(0.337255, 1, 0, 1) layout_mode = 2 -text = "Done!!!" +text = "Downloaded successfully" [node name="DoneDelay" type="Timer" parent="MarginContainer/HBoxContainer/VBoxContainer/Done"] wait_time = 2.0 diff --git a/src/UI/ExtensionExplorer/store_info.md b/src/UI/ExtensionExplorer/store_info.md index bb0354595..357b7a776 100644 --- a/src/UI/ExtensionExplorer/store_info.md +++ b/src/UI/ExtensionExplorer/store_info.md @@ -20,6 +20,7 @@ // For further help see the entries below for reference of how it's done ## Entries: // Put Official Extensions Here +[["name", "LospecPaletteImporter"], ["version", 1.0], ["description", "A Pixelorama extension for downloading and importing palettes directly from Lospec. "], ["tags", "Palettes"], ["download_link", "https://github.com/OverloadedOrama/Lospec-Palette-Importer/releases/download/v1.0/LospecPaletteImporter.pck"]] ## Other Store Links: