diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 6a479eb3b..9dd0492ae 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -2649,6 +2649,14 @@ msgstr "" msgid "The character(s) that separate the file name and the frame number" msgstr "" +#. Found in the export dialog. It is an option that removes the transparent area around non-transparent pixels of the exported images. +msgid "Trim images" +msgstr "" + +#. Found in the export dialog. Tooltip of the "trim images" option. +msgid "Trims the exported images to their visible portion, considering each pixel with a non-zero alpha channel as visible." +msgstr "" + msgid "Close" msgstr "" diff --git a/src/UI/Dialogs/ExportDialog.gd b/src/UI/Dialogs/ExportDialog.gd index 5683294f6..5c6f72548 100644 --- a/src/UI/Dialogs/ExportDialog.gd +++ b/src/UI/Dialogs/ExportDialog.gd @@ -457,8 +457,8 @@ func _on_MultipleAnimationsDirectories_toggled(button_pressed: bool) -> void: Export.new_dir_for_each_frame_tag = button_pressed -func _on_TrimSprite_toggled(toggled_on: bool) -> void: - Export.trim_sprite = toggled_on +func _on_trim_images_toggled(toggled_on: bool) -> void: + Export.trim_images = toggled_on Export.process_data() set_preview() diff --git a/src/UI/Dialogs/ExportDialog.tscn b/src/UI/Dialogs/ExportDialog.tscn index 925094e25..dd0eed671 100644 --- a/src/UI/Dialogs/ExportDialog.tscn +++ b/src/UI/Dialogs/ExportDialog.tscn @@ -318,11 +318,11 @@ tooltip_text = "Creates multiple files but every file is stored in different fol mouse_default_cursor_shape = 2 text = "Create new folder for each frame tag" -[node name="TrimSprite" type="CheckBox" parent="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer" groups=["ExportImageOptions", "ExportMultipleFilesOptions"]] +[node name="TrimImages" type="CheckBox" parent="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer" groups=["ExportImageOptions", "ExportMultipleFilesOptions"]] layout_mode = 2 -tooltip_text = "Trims sprite to visible portion of the spirte, considering each pixel with a non-zero alpha channel as visible." +tooltip_text = "Trims the exported images to their visible portion, considering each pixel with a non-zero alpha channel as visible." mouse_default_cursor_shape = 2 -text = "Trim Sprite" +text = "Trim images" [node name="PathDialog" type="FileDialog" parent="." groups=["FileDialogs"]] mode = 2 @@ -378,7 +378,7 @@ size_flags_horizontal = 3 [connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer/SplitLayers" to="." method="_on_split_layers_toggled"] [connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer/IncludeTagsInFilename" to="." method="_on_IncludeTagsInFilename_toggled"] [connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer/MultipleAnimationsDirectories" to="." method="_on_MultipleAnimationsDirectories_toggled"] -[connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer/TrimSprite" to="." method="_on_TrimSprite_toggled"] +[connection signal="toggled" from="VBoxContainer/VSplitContainer/VBoxContainer/AdvancedOptions/GridContainer/TrimImages" to="." method="_on_trim_images_toggled"] [connection signal="canceled" from="PathDialog" to="." method="_on_path_dialog_canceled"] [connection signal="dir_selected" from="PathDialog" to="." method="_on_path_dialog_dir_selected"] [connection signal="confirmed" from="FileExistsAlert" to="." method="_on_FileExistsAlert_confirmed"]