Skip to content

Commit bc597f0

Browse files
committed
updating description and icon for the node
1 parent 02ca10d commit bc597f0

File tree

5 files changed

+399
-390
lines changed

5 files changed

+399
-390
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ You can set the dialog code inside the dialog node variable `dialog_script` like
2323

2424
![Screenshot](https://coppolaemilio.com/godot/characters-in-node.PNG)
2525

26-
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.
2827
To create a `DialogResource`, right click in your FileSystem and choose `New Resource`, search for `DialogResource` and create it.
2928
Again, it's good practice to put these inside a folder such as `Resources/Dialogs`.
3029
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+
3233
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.
3334

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.
3537

3638
## Changelog
3739
v0.3 - Using Resources
3840
- Removed requirement for `global.gd` and `characters.gd` autoload scripts.
3941
- Added `DialogResource` and `DialogCharacterResource` resources to create a cleaner way of specifying dialog content
42+
- Added icon to the existing dialog node.
4043

4144
v0.2 - Adding Characters:
4245
- Changed text speed to fixed per character instead of total time span

0 commit comments

Comments
 (0)