2021-01-19 12:48:16 +01:00
|
|
|
extends Node2D
|
2020-12-22 15:38:43 +01:00
|
|
|
|
|
|
|
var text setget _set_text
|
2021-09-14 18:06:29 +02:00
|
|
|
var button_texts = [
|
2022-08-18 12:19:13 +02:00
|
|
|
tr("Got it!"),
|
|
|
|
tr("Interesting!"),
|
|
|
|
tr("Very useful!"),
|
|
|
|
tr("Cool!"),
|
|
|
|
tr("Nice!"),
|
|
|
|
tr("Thanks!"),
|
|
|
|
tr("Whatever..."),
|
|
|
|
tr("Okay!"),
|
|
|
|
tr("Yay!"),
|
|
|
|
tr("Awesome!") ]
|
2020-12-22 15:38:43 +01:00
|
|
|
|
|
|
|
func _ready():
|
2021-01-19 12:48:16 +01:00
|
|
|
button_texts.shuffle()
|
|
|
|
$Panel/CenterContainer/OK.text = button_texts[0]
|
2020-12-22 15:38:43 +01:00
|
|
|
|
2021-01-19 12:48:16 +01:00
|
|
|
#func _gui_input(event):
|
|
|
|
# if event is InputEventMouseButton:
|
|
|
|
# queue_free()
|
2020-12-22 15:38:43 +01:00
|
|
|
|
|
|
|
func _set_text(new_text):
|
|
|
|
text = new_text
|
2021-01-19 12:48:16 +01:00
|
|
|
$Panel/Label.text = new_text
|
|
|
|
|
|
|
|
|
|
|
|
func confirm():
|
|
|
|
queue_free()
|