oh-my-git/scenes/notification.gd

15 lines
215 B
GDScript3
Raw Permalink Normal View History

2020-12-22 15:38:43 +01:00
extends PopupPanel
var text setget _set_text
func _ready():
popup()
func _gui_input(event):
if event is InputEventMouseButton:
queue_free()
func _set_text(new_text):
text = new_text
$Label.text = new_text