From 069331af7a345e557fc2a978d1922c80d3b619f4 Mon Sep 17 00:00:00 2001 From: vi-sa-vie <138396869+vi-sa-vie@users.noreply.github.com> Date: Wed, 26 Nov 2025 01:45:57 +0200 Subject: [PATCH 1/2] background path to arg in timeline-text-syntax.md Updated background argument example in timeline-text-syntax.md to match get_shortcode_parameters() in dialogic/addons/dialogic/Modules/Background/event_background.gd --- documentation/timeline-text-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/timeline-text-syntax.md b/documentation/timeline-text-syntax.md index 6f9675d..3eb1186 100644 --- a/documentation/timeline-text-syntax.md +++ b/documentation/timeline-text-syntax.md @@ -15,7 +15,7 @@ Most events follow a shortcodes-like style: ```dtl -[background path="res://icon.png" fade="1.0"] +[background arg="res://icon.png" fade="1.0"] ``` The order of the parameters is not relevant, but they have to be separated by at least one space. All parameters, regardless of type, have to be contained in double quotation marks. @@ -128,7 +128,7 @@ Timelines use TAB indentation to know what events belong to a choice or conditio ## Example timeline ```dtl -[background path="res://assets/backgrounds/dialogic_factory.png"] +[background arg="res://assets/backgrounds/dialogic_factory.png"] join Jowan left Jowan (excited): Hello and welcome to[portrait=confused]...[pause=0.5] Wait? What is this? From b7e39c8fe66fd4a844453892db377f6dafd5ef74 Mon Sep 17 00:00:00 2001 From: vi-sa-vie <138396869+vi-sa-vie@users.noreply.github.com> Date: Wed, 26 Nov 2025 01:51:32 +0200 Subject: [PATCH 2/2] background path to arg in creating-timelines-in-code.md Updated background argument example in creating-timelines-in-code.md to match get_shortcode_parameters() in dialogic/addons/dialogic/Modules/Background/event_background.gd --- documentation/creating-timelines-in-code.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/creating-timelines-in-code.md b/documentation/creating-timelines-in-code.md index c1aa83c..52d36e3 100644 --- a/documentation/creating-timelines-in-code.md +++ b/documentation/creating-timelines-in-code.md @@ -40,7 +40,7 @@ Dialogic.start(timeline) var events : Array = """ Jowan (Surprised): Wow this is interesting! - Yes - [background path="res://icon.png"] + [background arg="res://icon.png"] [wait seconds="1"] set MyAutoload.exitement += 20 - No @@ -52,3 +52,4 @@ Dialogic.start(timeline) ``` *In this case, you have to follow the syntax explained in [this tutorial](timeline-text-syntax.md).* +