From 49005e74254bf1d5cb0d26b8b7847db747c2f706 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 7 Feb 2020 02:30:43 +0200 Subject: [PATCH] Added Lanczos scaling interpolation Only works with Godot 3.2. If you're using 3.1.x and below this will NOT work! --- Changelog.md | 1 + Prefabs/Dialogs/ExportSprites.tscn | 6 +++--- Prefabs/Dialogs/ScaleImage.tscn | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Changelog.md b/Changelog.md index 415855299..dea1b8bf1 100644 --- a/Changelog.md +++ b/Changelog.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Translators can now be seen in the About window. - It is now possible to remove custom brushes with the middle mouse button. - Added HSV mode to the color picker. (Added automatically because of the Godot 3.2 update) +- Lanczos scaling interpolation. (Added because of the Godot 3.2 update) ## Changed - Updates to the Greek, Russian and Traditional Chinese translations. diff --git a/Prefabs/Dialogs/ExportSprites.tscn b/Prefabs/Dialogs/ExportSprites.tscn index b8350308e..6170e610d 100644 --- a/Prefabs/Dialogs/ExportSprites.tscn +++ b/Prefabs/Dialogs/ExportSprites.tscn @@ -24,7 +24,7 @@ margin_left = 8.0 margin_top = 8.0 margin_right = 507.0 margin_bottom = 312.0 -text = "Export current frame" +text = "EXPORT_CURRENT_FRAME_LABEL" items = [ "EXPORT_CURRENT_FRAME_LABEL", null, false, 0, null, "EXPORT_FRAMES_AS_MULTIPLE_FILES_LABEL", null, false, 1, null, "EXPORT_FRAMES_AS_SPRITESHEET_LABEL", null, false, 2, null ] selected = 0 @@ -60,10 +60,10 @@ text = "Interpolation:" [node name="Interpolation" type="OptionButton" parent="Resize"] margin_left = 219.0 -margin_right = 310.0 +margin_right = 298.0 margin_bottom = 304.0 text = "Nearest" -items = [ "Nearest", null, false, 0, null, "Bilinear", null, false, 1, null, "Cubic", null, false, 2, null, "Trilinear", null, false, 3, null, "Lanczos", null, true, 4, null ] +items = [ "Nearest", null, false, 0, null, "Bilinear", null, false, 1, null, "Cubic", null, false, 2, null, "Trilinear", null, false, 3, null, "Lanczos", null, false, 4, null ] selected = 0 [node name="Spritesheet" type="HBoxContainer" parent="."] diff --git a/Prefabs/Dialogs/ScaleImage.tscn b/Prefabs/Dialogs/ScaleImage.tscn index e4f9a19c3..96bd6cf7a 100644 --- a/Prefabs/Dialogs/ScaleImage.tscn +++ b/Prefabs/Dialogs/ScaleImage.tscn @@ -11,7 +11,7 @@ script = ExtResource( 1 ) margin_left = 8.0 margin_top = 8.0 margin_right = 192.0 -margin_bottom = 78.0 +margin_bottom = 102.0 [node name="ImageSize" type="Label" parent="VBoxContainer"] margin_right = 184.0 @@ -71,6 +71,6 @@ margin_top = 50.0 margin_right = 155.0 margin_bottom = 71.0 text = "Nearest" -items = [ "Nearest", null, false, 0, null, "Bilinear", null, false, 1, null, "Cubic", null, false, 2, null, "Trilinear", null, false, 3, null, "Lanczos", null, true, 4, null ] +items = [ "Nearest", null, false, 0, null, "Bilinear", null, false, 1, null, "Cubic", null, false, 2, null, "Trilinear", null, false, 3, null, "Lanczos", null, false, 4, null ] selected = 0 [connection signal="confirmed" from="." to="." method="_on_ScaleImage_confirmed"]