mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 19:34:43 -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
|
@ -75,7 +75,7 @@ func camera_zoom() -> void:
|
|||
Global.camera_preview.offset = size / 2
|
||||
|
||||
# warning-ignore:unused_argument
|
||||
func _process(delta) -> void:
|
||||
func _process(delta : float) -> void:
|
||||
sprite_changed_this_frame = false
|
||||
update()
|
||||
current_pixel = get_local_mouse_position() - location
|
||||
|
@ -438,10 +438,10 @@ func generate_layer_panels() -> void:
|
|||
if !layers[i][2]:
|
||||
layers[i][2] = "Layer %s" % i
|
||||
layer_container.i = i
|
||||
layer_container.get_child(0).get_child(1).texture = layers[i][1]
|
||||
layer_container.get_child(0).get_child(2).text = layers[i][2]
|
||||
layer_container.get_child(0).get_child(3).text = layers[i][2]
|
||||
layers[i][3] = true #set visible
|
||||
layer_container.get_child(0).get_child(1).texture = layers[i][1]
|
||||
Global.vbox_layer_container.add_child(layer_container)
|
||||
|
||||
func pencil_and_eraser(mouse_pos : Vector2, color : Color, current_mouse_button : String, current_action := "None") -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue