mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-15 19:04:57 +01:00
15 lines
215 B
GDScript3
15 lines
215 B
GDScript3
|
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
|