You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once you have created your characters it's time to create a `DialogResource` for your dialog.
27
-
Note you can create a separate dialog resource for each of your dialogs if you wish to keep things logically separate, or you can create a master `DialogResource` if you prefer.
26
+
Alternatively you can create a separate dialog resource for each of your dialogs if you wish to keep things logically separate, or you can create a master `DialogResource` if you prefer.
28
27
To create a `DialogResource`, right click in your FileSystem and choose `New Resource`, search for `DialogResource` and create it.
29
28
Again, it's good practice to put these inside a folder such as `Resources/Dialogs`.
30
29
Each `DialogResource` can contain a Dictionary of custom variables that will be replaced by their value when you add them to a script in the form of "This is a [custom] value" where the value for the dictionary key `custom` will replace `[custom]`.
31
-
You must also provide the `DialogResource` with an array of your `DialogCharacterResource` files.
30
+
Same as before, you must also provide the `DialogResource` with an array of your `DialogCharacterResource` files.
31
+
32
+
32
33
You can set the dialog script (.json) on the inspector variable "Dialog Json" or by setting the dialog content by changing the variable `dialog_script` of the node.
33
34
34
-
Now you can add the node `addons/dialogs/Dialog.tscn` to your scenes, assign the desired `DialogResource` file and use it on your projects.
35
+
### 3) Adding the node
36
+
Now you can add the node `addons/dialogs/Dialog.tscn` to your scenes, assign the desired variable values or `DialogResource` file and use it on your projects.
35
37
36
38
## Changelog
37
39
v0.3 - Using Resources
38
40
- Removed requirement for `global.gd` and `characters.gd` autoload scripts.
39
41
- Added `DialogResource` and `DialogCharacterResource` resources to create a cleaner way of specifying dialog content
42
+
- Added icon to the existing dialog node.
40
43
41
44
v0.2 - Adding Characters:
42
45
- Changed text speed to fixed per character instead of total time span
0 commit comments