mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:24:44 -04:00
Added functions to rotate image, and added gui for the same purpose
This commit is contained in:
parent
84259ae5ea
commit
8fd8a9db08
3 changed files with 210 additions and 60 deletions
|
@ -69,7 +69,8 @@ func _ready() -> void:
|
|||
"Flip Vertical" : KEY_MASK_SHIFT + KEY_V,
|
||||
"Invert colors" : 0,
|
||||
"Desaturation" : 0,
|
||||
"Outline" : 0
|
||||
"Outline" : 0,
|
||||
"Rotate Image" : 0
|
||||
}
|
||||
var help_menu_items := {
|
||||
"View Splash Screen" : 0,
|
||||
|
@ -346,6 +347,10 @@ func image_menu_id_pressed(id : int) -> void:
|
|||
Global.canvas.handle_redo("Draw")
|
||||
6: # Outline
|
||||
$OutlineDialog.popup_centered()
|
||||
7: # Rotate
|
||||
var image : Image = Global.canvas.layers[Global.canvas.current_layer_index][0]
|
||||
$RotateImage.set_sprite(image)
|
||||
$RotateImage.popup_centered()
|
||||
|
||||
func help_menu_id_pressed(id : int) -> void:
|
||||
match id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue