From 5a8c79339d7cb1b586e9da1942c397fcc8aee5dd Mon Sep 17 00:00:00 2001 From: Variable Date: Sat, 14 Dec 2024 12:31:03 +0500 Subject: [PATCH] renamed the selection tile mode to wrap strokes, as it is a more accurate description. --- Translations/Translations.pot | 4 ++++ src/Autoload/Global.gd | 2 +- src/UI/TopMenuContainer/TopMenuContainer.gd | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 621efde8a..82e75d894 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -211,6 +211,10 @@ msgstr "" msgid "Initial angle:" msgstr "" +#. Found under the Select menu, It's a checkbox that, if enabled, wraps around brush strokes if some part of them goes out of selection bounds. +msgid "Wrap Strokes" +msgstr "" + msgid "Clear" msgstr "" diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index 420ec8672..36767528b 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -73,7 +73,7 @@ enum EffectsMenu { SHADER } ## Enumeration of items present in the Select Menu. -enum SelectMenu { SELECT_ALL, CLEAR_SELECTION, INVERT, TILE_MODE, MODIFY } +enum SelectMenu { SELECT_ALL, CLEAR_SELECTION, INVERT, WRAP_STROKES, MODIFY } ## Enumeration of items present in the Help Menu. enum HelpMenu { VIEW_SPLASH_SCREEN, diff --git a/src/UI/TopMenuContainer/TopMenuContainer.gd b/src/UI/TopMenuContainer/TopMenuContainer.gd index f0867343b..3d4aea237 100644 --- a/src/UI/TopMenuContainer/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer/TopMenuContainer.gd @@ -470,12 +470,12 @@ func _setup_select_menu() -> void: "All": "select_all", "Clear": "clear_selection", "Invert": "invert_selection", - "Tile Mode": "", + "Wrap Strokes": "", "Modify": "" } for i in select_menu_items.size(): var item: String = select_menu_items.keys()[i] - if item == "Tile Mode": + if item == "Wrap Strokes": select_menu.add_check_item(item, i) elif item == "Modify": _setup_selection_modify_submenu(item) @@ -960,7 +960,7 @@ func select_menu_id_pressed(id: int) -> void: Global.canvas.selection.clear_selection(true) Global.SelectMenu.INVERT: Global.canvas.selection.invert() - Global.SelectMenu.TILE_MODE: + Global.SelectMenu.WRAP_STROKES: var state = select_menu.is_item_checked(id) Global.canvas.selection.flag_tilemode = !state select_menu.set_item_checked(id, !state)