mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29:49 +00:00
fix some things in ExtensionExplorer (#1047)
* fix some things * treat any string as a comment (unless it starts with a link)
This commit is contained in:
parent
94abe80295
commit
7c2d237792
|
@ -29,6 +29,8 @@ func set_info(info: Dictionary, extension_path: String) -> void:
|
||||||
if "name" in info.keys() and "version" in info.keys():
|
if "name" in info.keys() and "version" in info.keys():
|
||||||
ext_name.text = str(info["name"], "-v", info["version"])
|
ext_name.text = str(info["name"], "-v", info["version"])
|
||||||
# check for updates
|
# check for updates
|
||||||
|
if typeof(info["version"]) == TYPE_STRING:
|
||||||
|
info["version"] = str_to_var(info["version"])
|
||||||
change_button_if_updatable(info["name"], info["version"])
|
change_button_if_updatable(info["name"], info["version"])
|
||||||
# Setting a path extension will be "temporarily" downloaded to before install
|
# Setting a path extension will be "temporarily" downloaded to before install
|
||||||
var temp_dir = extension_path.path_join("Download")
|
var temp_dir = extension_path.path_join("Download")
|
||||||
|
|
|
@ -105,6 +105,7 @@ offset_bottom = -49.0
|
||||||
horizontal_alignment = 1
|
horizontal_alignment = 1
|
||||||
|
|
||||||
[node name="EnlardedThumbnail" type="Window" parent="."]
|
[node name="EnlardedThumbnail" type="Window" parent="."]
|
||||||
|
title = "Image"
|
||||||
position = Vector2i(0, 36)
|
position = Vector2i(0, 36)
|
||||||
size = Vector2i(440, 360)
|
size = Vector2i(440, 360)
|
||||||
visible = false
|
visible = false
|
||||||
|
@ -118,6 +119,7 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
expand_mode = 1
|
||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
[connection signal="timeout" from="MarginContainer/HBoxContainer/VBoxContainer/Done/DoneDelay" to="." method="_on_DoneDelay_timeout"]
|
[connection signal="timeout" from="MarginContainer/HBoxContainer/VBoxContainer/Done/DoneDelay" to="." method="_on_DoneDelay_timeout"]
|
||||||
|
|
|
@ -165,7 +165,6 @@ func process_line(line: String) -> void:
|
||||||
# If the line isn't a comment, we will check data type
|
# If the line isn't a comment, we will check data type
|
||||||
var raw_data
|
var raw_data
|
||||||
line = line.strip_edges()
|
line = line.strip_edges()
|
||||||
if !line.begins_with("#") and !line.begins_with("//") and line != "":
|
|
||||||
# attempting to convert to a variable other than a string
|
# attempting to convert to a variable other than a string
|
||||||
raw_data = str_to_var(line)
|
raw_data = str_to_var(line)
|
||||||
if !raw_data: # attempt failed, using it as string
|
if !raw_data: # attempt failed, using it as string
|
||||||
|
@ -179,7 +178,7 @@ func process_line(line: String) -> void:
|
||||||
TYPE_STRING:
|
TYPE_STRING:
|
||||||
# it's most probably a store link
|
# it's most probably a store link
|
||||||
var link: String = raw_data.strip_edges()
|
var link: String = raw_data.strip_edges()
|
||||||
if !link in redirects:
|
if !link in redirects and link.begins_with("http") and "://" in link:
|
||||||
redirects.append(link)
|
redirects.append(link)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue