1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Add LospecPaletteImporter extension in store_info.md

This commit is contained in:
Emmanouil Papadeas 2024-04-19 21:00:58 +03:00
parent 85d73bdb5d
commit d0c58e249a
3 changed files with 7 additions and 5 deletions

View file

@ -47,7 +47,8 @@ func set_info(info: Dictionary, extension_path: String) -> void:
func _on_RequestDelay_timeout() -> void: func _on_RequestDelay_timeout() -> void:
request_delay.queue_free() # node no longer needed 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( func _on_ImageRequest_request_completed(
@ -92,7 +93,7 @@ func _on_DownloadRequest_request_completed(
else: else:
alert_dialog.get_node("Text").text = ( alert_dialog.get_node("Text").text = (
str( str(
"Unable to Download extension...\nHttp Code: ", "Unable to download extension.\nHttp Code: ",
result, result,
" (", " (",
error_string(result), error_string(result),
@ -111,7 +112,7 @@ func announce_done(success: bool) -> void:
down_button.disabled = false down_button.disabled = false
if success: if success:
done_label.visible = true done_label.visible = true
down_button.text = "Re-Download" down_button.text = "Redownload"
done_label.get_node("DoneDelay").start() 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" down_button.text = "Update"
is_update = true is_update = true
elif new_version == old_version: elif new_version == old_version:
down_button.text = "Re-Download" down_button.text = "Redownload"
## Show an enlarged version of the thumbnail ## Show an enlarged version of the thumbnail

View file

@ -53,7 +53,7 @@ unique_name_in_owner = true
visible = false visible = false
self_modulate = Color(0.337255, 1, 0, 1) self_modulate = Color(0.337255, 1, 0, 1)
layout_mode = 2 layout_mode = 2
text = "Done!!!" text = "Downloaded successfully"
[node name="DoneDelay" type="Timer" parent="MarginContainer/HBoxContainer/VBoxContainer/Done"] [node name="DoneDelay" type="Timer" parent="MarginContainer/HBoxContainer/VBoxContainer/Done"]
wait_time = 2.0 wait_time = 2.0

View file

@ -20,6 +20,7 @@
// For further help see the entries below for reference of how it's done // For further help see the entries below for reference of how it's done
## Entries: ## Entries:
// Put Official Extensions Here // 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: ## Other Store Links: