diff --git a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd index 786586b45..4b012fb0f 100644 --- a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd +++ b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.gd @@ -29,6 +29,8 @@ func set_info(info: Dictionary, extension_path: String) -> void: if "name" in info.keys() and "version" in info.keys(): ext_name.text = str(info["name"], "-v", info["version"]) # check for updates + if typeof(info["version"]) == TYPE_STRING: + info["version"] = str_to_var(info["version"]) change_button_if_updatable(info["name"], info["version"]) # Setting a path extension will be "temporarily" downloaded to before install var temp_dir = extension_path.path_join("Download") diff --git a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn index c392c997f..7638151cf 100644 --- a/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn +++ b/src/UI/ExtensionExplorer/Entry/ExtensionEntry.tscn @@ -105,6 +105,7 @@ offset_bottom = -49.0 horizontal_alignment = 1 [node name="EnlardedThumbnail" type="Window" parent="."] +title = "Image" position = Vector2i(0, 36) size = Vector2i(440, 360) visible = false @@ -118,6 +119,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +expand_mode = 1 stretch_mode = 5 [connection signal="timeout" from="MarginContainer/HBoxContainer/VBoxContainer/Done/DoneDelay" to="." method="_on_DoneDelay_timeout"] diff --git a/src/UI/ExtensionExplorer/Store.gd b/src/UI/ExtensionExplorer/Store.gd index 17950b9e5..1c8ad44ae 100644 --- a/src/UI/ExtensionExplorer/Store.gd +++ b/src/UI/ExtensionExplorer/Store.gd @@ -165,22 +165,21 @@ func process_line(line: String) -> void: # If the line isn't a comment, we will check data type var raw_data line = line.strip_edges() - if !line.begins_with("#") and !line.begins_with("//") and line != "": - # attempting to convert to a variable other than a string - raw_data = str_to_var(line) - if !raw_data: # attempt failed, using it as string - raw_data = line + # attempting to convert to a variable other than a string + raw_data = str_to_var(line) + if !raw_data: # attempt failed, using it as string + raw_data = line - # Determine action based on data type - match typeof(raw_data): - TYPE_ARRAY: - var extension_data: Dictionary = parse_extension_data(raw_data) - add_entry(extension_data) - TYPE_STRING: - # it's most probably a store link - var link: String = raw_data.strip_edges() - if !link in redirects: - redirects.append(link) + # Determine action based on data type + match typeof(raw_data): + TYPE_ARRAY: + var extension_data: Dictionary = parse_extension_data(raw_data) + add_entry(extension_data) + TYPE_STRING: + # it's most probably a store link + var link: String = raw_data.strip_edges() + if !link in redirects and link.begins_with("http") and "://" in link: + redirects.append(link) func parse_extension_data(raw_data: Array) -> Dictionary: