diff --git a/CHANGELOG.md b/CHANGELOG.md index df93fd3f9..fee40912e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [v0.8.1] - Unreleased This update has been brought to you by the contributions of: -Laurenz Reinthaler (Schweini07) +Laurenz Reinthaler (Schweini07), PinyaColada ### Added -- A new purple theme. - Buttons for moving the current frame left or right. ([#344](https://github.com/Orama-Interactive/Pixelorama/pull/344)) - Creating palettes from sprites has been enhanced - you can now choose if you want to get colors from the selection, current cel, entire frame or all frames, and if you want the colors to have an alpha component. +- A new "Cut" option in the Edit menu or by pressing `Ctrl-X`. It cuts (deletes & copies) the selection, and you can later paste it. ([#345](https://github.com/Orama-Interactive/Pixelorama/pull/345)) +- A new purple theme. ### Changed - Guides now move with a step of 0.5 pixels. That makes it possible to have guides (and symmetry guides) to be in the middle of pixels. diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 097f36e6e..af4ecdd41 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -103,6 +103,9 @@ msgstr "" msgid "Copy" msgstr "" +msgid "Cut" +msgstr "" + msgid "Paste" msgstr "" diff --git a/src/SelectionRectangle.gd b/src/SelectionRectangle.gd index c8072d618..373410de7 100644 --- a/src/SelectionRectangle.gd +++ b/src/SelectionRectangle.gd @@ -128,12 +128,12 @@ func cut() -> void: # This is basically the same as copy + delete _clipboard = image.get_rect(_selected_rect) if _clipboard.is_invisible(): return - + _clear_image.resize(size.x, size.y, Image.INTERPOLATE_NEAREST) var brush = _clipboard.get_rect(_clipboard.get_used_rect()) project.brushes.append(brush) Brushes.add_project_brush(brush) - Global.selection_rectangle.move_end() #The selection_rectangle can be used while is moved, this prevents malfunctioning + move_end() # The selection_rectangle can be used while is moved, this prevents malfunctioning image.blit_rect(_clear_image, rect, _selected_rect.position) commit_undo("Draw", undo_data) diff --git a/src/UI/Dialogs/AboutDialog.gd b/src/UI/Dialogs/AboutDialog.gd index 9041341c5..1647882e4 100644 --- a/src/UI/Dialogs/AboutDialog.gd +++ b/src/UI/Dialogs/AboutDialog.gd @@ -38,6 +38,7 @@ func _ready() -> void: contributors.create_item(contributor_root).set_text(0, " Aaron Franke (aaronfranke)") contributors.create_item(contributor_root).set_text(0, " rob-a-bolton") contributors.create_item(contributor_root).set_text(0, " Vriska Weaver (henlo-birb)") + contributors.create_item(contributor_root).set_text(0, " PinyaColada") var donors_root := donors.create_item() donors.create_item(donors_root).set_text(0, " pcmxms - https://www.nonamefornowsoft.com.br/")