1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 12:33:14 +00:00

Fix notifications not appearing properly when the UI is scaled

This commit is contained in:
Manolis Papadeas 2021-09-27 02:41:45 +03:00
parent 3b7ac1eddf
commit 61fa13cde3

View file

@ -333,7 +333,7 @@ func _ready() -> void:
func notification_label(text : String) -> void:
var notification : Label = notification_label_node.instance()
notification.text = tr(text)
notification.rect_position = Vector2(70, OS.window_size.y - animation_timeline.rect_size.y - 20)
notification.rect_position = Vector2(70, animation_timeline.rect_position.y)
notification.theme = control.theme
get_tree().get_root().add_child(notification)