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:
OverloadedOrama 2019-12-06 01:48:29 +02:00
parent da61234b13
commit 5613c3d7ef
14 changed files with 158 additions and 116 deletions

View file

@ -8,7 +8,7 @@ var drag := false
func _ready() -> void:
viewport_container = get_parent().get_parent()
func _input(event) -> void:
func _input(event : InputEvent) -> void:
var mouse_pos := viewport_container.get_local_mouse_position()
var viewport_size := viewport_container.rect_size
if event.is_action_pressed("camera_drag"):