Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial: Dialogic Signals 2.x Update #1321

Closed
rassweiler opened this issue Nov 8, 2022 · 1 comment
Closed

Tutorial: Dialogic Signals 2.x Update #1321

rassweiler opened this issue Nov 8, 2022 · 1 comment

Comments

@rassweiler
Copy link
Contributor

The problem

Describe the bug
Wiki is out of date, accidentally wrote to wiki.

Expected behavior
A clear and concise description of how to use Dialogic and Event Signals

System (please complete the following information):

  • Dialogic Version: 2.x

Solutions

Possible fixes

I've accessed the signals using the Dialogic class directly:

func start_dialog():
	var dialog = Dialogic.start("my_timeline")
	add_node(dialog)
	Dialogic.connect("timeline_end", _dialog_ended)
	Dialogic.connect("signal_event", _handle_dialogic_signals) # Signals from timeline

func _dialog_ended():
	pass

func _handle_dialogic_signals(argument : String):
	pass
@Jowan-Spooner
Copy link
Member

You are doing the signal connection the intended way, but when starting dialog with Dialogic.start() you do not need to add the return value as a child anymore.

"Out of date" is a funny description for this. You are right there is not that much documentation yet on 2.x, because it is still in alpha. Writing a lot of documentation now means it might need rewriting later so we didn't do it a lot yet.
I will add this to dialogic-godot/documentation#38 and close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants