From d64b4edb9650d8b88c9eecfc9978c0e575152751 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Mon, 9 Mar 2020 16:59:17 +0200 Subject: [PATCH] Notification labels appear on top of the timeline --- Scripts/Global.gd | 2 +- Scripts/SelectionRectangle.gd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/Global.gd b/Scripts/Global.gd index 5a25581..78538c8 100644 --- a/Scripts/Global.gd +++ b/Scripts/Global.gd @@ -389,7 +389,7 @@ func find_node_by_name(root, node_name) -> Node: func notification_label(text : String) -> void: var notification : Label = load("res://Prefabs/NotificationLabel.tscn").instance() notification.text = tr(text) - notification.rect_position = Vector2(240, OS.window_size.y - 150) + notification.rect_position = Vector2(240, OS.window_size.y - animation_timeline.rect_size.y - 20) notification.theme = control.theme get_tree().get_root().add_child(notification) diff --git a/Scripts/SelectionRectangle.gd b/Scripts/SelectionRectangle.gd index ddf1e4b..a9bdf5b 100644 --- a/Scripts/SelectionRectangle.gd +++ b/Scripts/SelectionRectangle.gd @@ -29,9 +29,9 @@ func _process(delta : float) -> void: var layer : Image = Global.canvas.layers[current_layer_index][0] if end_pos == start_pos: - Global.selection_rectangle.visible = false + visible = false else: - Global.selection_rectangle.visible = true + visible = true if point_in_rectangle(mouse_pos, polygon[0], polygon[2]) && Global.selected_pixels.size() > 0 && (Global.current_left_tool == "RectSelect" || Global.current_right_tool == "RectSelect"): get_parent().get_parent().mouse_default_cursor_shape = Input.CURSOR_MOVE