You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
635 B
23 lines
635 B
6 months ago
|
extends Control
|
||
|
|
||
|
@onready var _global_scn = get_node("/root/Global")
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
if _global_scn.user_name:
|
||
|
Dialogic.VAR.user = _global_scn.user_name
|
||
|
|
||
|
Dialogic.signal_event.connect(_on_dialogic_signal)
|
||
|
Dialogic.start("res://timelines/new_player_wizard.dtl")
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
func _process(_delta):
|
||
|
pass
|
||
|
|
||
|
func _on_dialogic_signal(argument:String):
|
||
|
if argument == "create_dojo":
|
||
|
print("Create Dojo %s" % Dialogic.VAR.newdojo)
|
||
|
Dialogic.paused = true
|
||
|
_global_scn.create_dojo(Dialogic.VAR.newdojo)
|