Skip to content

Commit

Permalink
Add LospecPaletteImporter extension in store_info.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama committed Apr 19, 2024
1 parent 85d73bd commit d0c58e2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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),
Expand All @@ -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()


Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/UI/ExtensionExplorer/store_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0c58e2

Please sign in to comment.