1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Variable 1380b4c68a
Merge 5a8c79339d into 8ceeba76c0 2024-12-15 21:37:24 +02:00
Variable 5a8c79339d renamed the selection tile mode to wrap strokes, as it is a more accurate description. 2024-12-14 12:31:03 +05:00
3 changed files with 8 additions and 4 deletions

View file

@ -211,6 +211,10 @@ msgstr ""
msgid "Initial angle:" msgid "Initial angle:"
msgstr "" 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" msgid "Clear"
msgstr "" msgstr ""

View file

@ -74,7 +74,7 @@ enum EffectsMenu {
SHADER SHADER
} }
## Enumeration of items present in the Select Menu. ## 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. ## Enumeration of items present in the Help Menu.
enum HelpMenu { enum HelpMenu {
VIEW_SPLASH_SCREEN, VIEW_SPLASH_SCREEN,

View file

@ -472,12 +472,12 @@ func _setup_select_menu() -> void:
"All": "select_all", "All": "select_all",
"Clear": "clear_selection", "Clear": "clear_selection",
"Invert": "invert_selection", "Invert": "invert_selection",
"Tile Mode": "", "Wrap Strokes": "",
"Modify": "" "Modify": ""
} }
for i in select_menu_items.size(): for i in select_menu_items.size():
var item: String = select_menu_items.keys()[i] var item: String = select_menu_items.keys()[i]
if item == "Tile Mode": if item == "Wrap Strokes":
select_menu.add_check_item(item, i) select_menu.add_check_item(item, i)
elif item == "Modify": elif item == "Modify":
_setup_selection_modify_submenu(item) _setup_selection_modify_submenu(item)
@ -964,7 +964,7 @@ func select_menu_id_pressed(id: int) -> void:
Global.canvas.selection.clear_selection(true) Global.canvas.selection.clear_selection(true)
Global.SelectMenu.INVERT: Global.SelectMenu.INVERT:
Global.canvas.selection.invert() Global.canvas.selection.invert()
Global.SelectMenu.TILE_MODE: Global.SelectMenu.WRAP_STROKES:
var state = select_menu.is_item_checked(id) var state = select_menu.is_item_checked(id)
Global.canvas.selection.flag_tilemode = !state Global.canvas.selection.flag_tilemode = !state
select_menu.set_item_checked(id, !state) select_menu.set_item_checked(id, !state)