Skip to content

Commit

Permalink
renamed the selection tile mode to wrap strokes, as it is a more accu…
Browse files Browse the repository at this point in the history
…rate description. (#1150)
  • Loading branch information
Variable-ind authored Dec 16, 2024
1 parent 2d81bd4 commit 7de7f3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Translations/Translations.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""

Expand Down
2 changes: 1 addition & 1 deletion src/Autoload/Global.gd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ enum EffectsMenu {
LOADED_EFFECTS
}
## 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,
Expand Down
6 changes: 3 additions & 3 deletions src/UI/TopMenuContainer/TopMenuContainer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,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)
Expand Down Expand Up @@ -1007,7 +1007,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)
Expand Down

0 comments on commit 7de7f3f

Please # to comment.