1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-14 15:25:17 +00:00

Fixed spacing between some comments

This commit is contained in:
OverloadedOrama 2020-03-09 02:17:49 +02:00
parent f4dbd2aadb
commit 1e5c674673
9 changed files with 20 additions and 22 deletions

View file

@ -141,7 +141,7 @@ func _on_BlueRedMode_toggled(button_pressed) -> void:
func add_layer(is_new := true) -> void: func add_layer(is_new := true) -> void:
var layer_name = null var layer_name = null
if !is_new: # clone layer if !is_new: # Clone layer
layer_name = Global.layers[Global.current_layer][0] + " (" + tr("copy") + ")" layer_name = Global.layers[Global.current_layer][0] + " (" + tr("copy") + ")"
var new_layers : Array = Global.layers.duplicate() var new_layers : Array = Global.layers.duplicate()

View file

@ -352,8 +352,6 @@ func _ready() -> void:
play_forward = find_node_by_name(animation_timeline, "PlayForward") play_forward = find_node_by_name(animation_timeline, "PlayForward")
play_backwards = find_node_by_name(animation_timeline, "PlayBackwards") play_backwards = find_node_by_name(animation_timeline, "PlayBackwards")
#var layer_stuff_container = find_node_by_name(animation_timeline, "LayerVBoxContainer")
remove_layer_button = find_node_by_name(animation_timeline, "RemoveLayer") remove_layer_button = find_node_by_name(animation_timeline, "RemoveLayer")
move_up_layer_button = find_node_by_name(animation_timeline, "MoveUpLayer") move_up_layer_button = find_node_by_name(animation_timeline, "MoveUpLayer")
move_down_layer_button = find_node_by_name(animation_timeline, "MovwDownLayer") move_down_layer_button = find_node_by_name(animation_timeline, "MovwDownLayer")

View file

@ -375,7 +375,7 @@ func image_menu_id_pressed(id : int) -> void:
func help_menu_id_pressed(id : int) -> void: func help_menu_id_pressed(id : int) -> void:
match id: match id:
0: # Splash Screen 0: # Splash Screen
$SplashDialog.popup_centered() # Splash screen $SplashDialog.popup_centered()
Global.can_draw = false Global.can_draw = false
1: # Issue Tracker 1: # Issue Tracker
OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/issues") OS.shell_open("https://github.com/Orama-Interactive/Pixelorama/issues")

View file

@ -114,7 +114,7 @@ func _process(delta : float) -> void:
brush_img = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0])) brush_img = layer.get_rect(Rect2(polygon[0], polygon[2] - polygon[0]))
if brush_img.is_invisible(): if brush_img.is_invisible():
return return
brush_img = brush_img.get_rect(brush_img.get_used_rect()) #save only the visible pixels brush_img = brush_img.get_rect(brush_img.get_used_rect()) # Save only the visible pixels
Global.custom_brushes.append(brush_img) Global.custom_brushes.append(brush_img)
Global.create_brush_button(brush_img) Global.create_brush_button(brush_img)