Updated EventManager
Fixed warning about losing percision on a float.
This commit is contained in:
parent
298381b2d9
commit
b47df7ad86
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ func test_notification(msg: String) -> void:
|
|||
lbl.text = msg
|
||||
lbl.modulate.a = 0
|
||||
lbl.ready.connect(func() -> void:
|
||||
var half: Vector2 = lbl.size / 2
|
||||
lbl.position = Vector2(get_tree().root.size / 2) - half
|
||||
var half: Vector2 = lbl.size / 2.0
|
||||
lbl.position = Vector2(get_tree().root.size / 2.0) - half
|
||||
var tw := create_tween()
|
||||
tw.tween_property(lbl, "modulate:a", 1.0, 0.5)
|
||||
tw.tween_interval(2.5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue