mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 21:14:42 -04:00
Overall code re-organizing & layer renaming changes
- When renaming a layer, the line edit grabs the focus. If enter is pressed, it gets invisible. Also fixed positioning and size - Re-organized the variables in Global, now they are less messy and randomly placed - Layer, frame & brush textures stretch mode has been changed to Keep Aspect Centered
This commit is contained in:
parent
da61234b13
commit
5613c3d7ef
14 changed files with 158 additions and 116 deletions
|
@ -142,7 +142,7 @@ func _ready() -> void:
|
|||
brushes_dir.list_dir_end()
|
||||
Global.brushes_from_files = Global.custom_brushes.size()
|
||||
|
||||
func _input(event) -> void:
|
||||
func _input(event : InputEvent) -> void:
|
||||
if event.is_action_pressed("toggle_fullscreen"):
|
||||
OS.window_fullscreen = !OS.window_fullscreen
|
||||
|
||||
|
@ -153,7 +153,7 @@ func _input(event) -> void:
|
|||
elif event.is_action_pressed(t[1]): #Shortcut for left button
|
||||
_on_Tool_pressed(t[0], false, true)
|
||||
|
||||
func _notification(what) -> void:
|
||||
func _notification(what : int) -> void:
|
||||
if what == MainLoop.NOTIFICATION_WM_QUIT_REQUEST: #Handle exit
|
||||
$QuitDialog.popup_centered()
|
||||
Global.can_draw = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue