diff --git a/Changelog.md b/Changelog.md index a3f54fe48..66eee9fa7 100644 --- a/Changelog.md +++ b/Changelog.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Image layer rotation! Choose between 2 rotation algorithms, Rotxel and Nearest Neighbour - Thanks to azagaya! - Crowdin integration for contributing translations! - Spanish translation - thanks to azagaya! +- Chinese Simplified translation - thanks to wcxu21! - 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) @@ -17,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - Updates to the Greek, Russian and Traditional Chinese translations. - Replaced some OS alerts with a custom made error dialog. +- Made the zooming smoother, is toggleable in Preferences whether to keep the new zooming or the old one. - Made the "X" button on the custom brushes a little smaller. - The color picker will now have a small white triangle on the top left of the color preview if at least one of its RGB values are above 1 in Raw mode. (Added automatically because of the Godot 3.2 update) - You can now toggle the visibility of hidden items on and off in the file dialogs. (Added automatically because of the Godot 3.2 update) diff --git a/Scripts/Dialogs/PreferencesDialog.gd b/Scripts/Dialogs/PreferencesDialog.gd index fffa3b080..bf181e0f9 100644 --- a/Scripts/Dialogs/PreferencesDialog.gd +++ b/Scripts/Dialogs/PreferencesDialog.gd @@ -71,7 +71,7 @@ func _ready() -> void: Global.default_fill_color = fill_color default_fill_color.color = Global.default_fill_color -func _on_PreferencesDialog_about_to_show() -> void: +func _on_PreferencesDialog_about_to_show(changed_language := false) -> void: var root := tree.create_item() var general_button := tree.create_item(root) var language_button := tree.create_item(root) @@ -91,7 +91,10 @@ func _on_PreferencesDialog_about_to_show() -> void: image_button.set_text(0, " " + tr("Image")) image_button.set_metadata(0, "Image") - general_button.select(0) + if changed_language: + language_button.select(0) + else: + general_button.select(0) func _on_PreferencesDialog_popup_hide() -> void: @@ -112,6 +115,9 @@ func _on_Tree_item_selected() -> void: elif "Image" in selected: image.visible = true +func _on_PressureSensitivityOptionButton_item_selected(id : int) -> void: + Global.pressure_sensitivity_mode = id + func _on_SmoothZoom_pressed() -> void: Global.smooth_zoom = !Global.smooth_zoom @@ -141,7 +147,7 @@ func _on_Language_pressed(button : Button) -> void: # Update Translations _on_PreferencesDialog_popup_hide() - _on_PreferencesDialog_about_to_show() + _on_PreferencesDialog_about_to_show(true) func _on_Theme_pressed(button : Button) -> void: var index := 0 diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 2251b3b44..8e3f558a3 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -185,6 +185,9 @@ msgstr "" msgid "Trilinear" msgstr "" +msgid "General" +msgstr "" + msgid "Language" msgstr "" @@ -194,6 +197,21 @@ msgstr "" msgid "Guides & Grid" msgstr "" +msgid "General Options" +msgstr + +msgid "Smooth Zoom" +msgstr + +msgid "Tablet pressure sensitivity:" +msgstr + +msgid "None" +msgstr + +msgid "Affect Brush's Alpha" +msgstr + msgid "Language options" msgstr "" @@ -296,6 +314,9 @@ msgstr "" msgid "Russian" msgstr "" +msgid "Chinese Simplified" +msgstr "" + msgid "Chinese Traditional" msgstr ""