1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Notification labels appear on top of the timeline

This commit is contained in:
OverloadedOrama 2020-03-09 16:59:17 +02:00
parent 7a008cfc3f
commit d64b4edb96
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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