2020-09-01 19:45:29 +02:00
|
|
|
extends Button
|
|
|
|
|
2020-09-08 22:16:18 +02:00
|
|
|
export var async = false
|
|
|
|
|
2020-09-01 19:45:29 +02:00
|
|
|
func _ready():
|
|
|
|
pass
|
|
|
|
|
|
|
|
func pressed():
|
2020-09-08 22:16:18 +02:00
|
|
|
if async:
|
|
|
|
$"../..".send_command_async(text)
|
|
|
|
else:
|
|
|
|
$"../..".send_command(text)
|