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

Export Gif Message (#868)

This commit is contained in:
Variable 2023-05-24 14:20:36 +05:00 committed by GitHub
parent 35e5340bd6
commit c3b0e45205
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -91,6 +91,15 @@ func set_preview() -> void:
for i in range(Export.processed_images.size()):
add_image_preview(Export.processed_images[i], i + 1)
if Global.current_project.file_format == Export.FileFormat.GIF:
$"%GifWarning".visible = true
else:
$"%GifWarning".visible = false
func _on_GifWarning_meta_clicked(meta) -> void:
OS.shell_open(meta)
func add_image_preview(image: Image, canvas_number: int = -1) -> void:
var container := create_preview_container()

View file

@ -8,6 +8,7 @@
[node name="ExportDialog" type="ConfirmationDialog"]
margin_right = 532.0
margin_bottom = 530.0
rect_min_size = Vector2( 170, 59.5 )
window_title = "Export..."
resizable = true
dialog_hide_on_ok = false
@ -289,6 +290,17 @@ margin_top = 224.0
margin_right = 516.0
margin_bottom = 228.0
[node name="GifWarning" type="RichTextLabel" parent="VBoxContainer/VSplitContainer/VBoxContainer"]
unique_name_in_owner = true
visible = false
margin_top = 232.0
margin_right = 516.0
margin_bottom = 262.0
bbcode_enabled = true
bbcode_text = "[center]If exported GIF is distorted, it is recommended to convert to APNG and then use any online tool like [color=blue][url]https://ezgif.com/apng-to-gif[/url][/color] to turn it to GIF[/center]"
text = "If exported GIF is distorted, it is recommended to convert to APNG and then use any online tool like https://ezgif.com/apng-to-gif to turn it to GIF"
fit_content_height = true
[node name="CollapsibleContainer" type="VBoxContainer" parent="VBoxContainer/VSplitContainer/VBoxContainer"]
margin_top = 232.0
margin_right = 516.0
@ -334,6 +346,10 @@ mouse_default_cursor_shape = 2
text = "Create new folder for each frame tag"
[node name="Popups" type="Control" parent="."]
margin_left = 8.0
margin_top = 8.0
margin_right = 524.0
margin_bottom = 494.0
mouse_filter = 2
[node name="PathDialog" type="FileDialog" parent="Popups"]
@ -428,6 +444,7 @@ __meta__ = {
[connection signal="pressed" from="VBoxContainer/VSplitContainer/VBoxContainer/FilePath/PathButton" to="." method="_on_PathButton_pressed"]
[connection signal="text_changed" from="VBoxContainer/VSplitContainer/VBoxContainer/FilePath/FileLineEdit" to="." method="_on_FileLineEdit_text_changed"]
[connection signal="item_selected" from="VBoxContainer/VSplitContainer/VBoxContainer/FilePath/FileFormat" to="." method="_on_FileFormat_item_selected"]
[connection signal="meta_clicked" from="VBoxContainer/VSplitContainer/VBoxContainer/GifWarning" to="." method="_on_GifWarning_meta_clicked"]
[connection signal="item_selected" from="VBoxContainer/VSplitContainer/VBoxContainer/CollapsibleContainer/GridContainer/Interpolation" to="." method="_on_Interpolation_item_selected"]
[connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/CollapsibleContainer/MultipleAnimationsDirectories" to="." method="_on_MultipleAnimationsDirectories_toggled"]
[connection signal="dir_selected" from="Popups/PathDialog" to="." method="_on_FileDialog_dir_selected"]