Skip to content

Commit 46ac9d0

Browse files
committed
Merge branch 'version-0.4'
2 parents 300b911 + c548483 commit 46ac9d0

File tree

96 files changed

+3386
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+3386
-499
lines changed

README.md

Lines changed: 19 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,19 @@
1-
# Simple Dialog Addon v0.3 ![Godot v3.2](https://img.shields.io/badge/godot-v3.2-%23478cbf)
2-
A simple Godot dialog addon to use in any kind of project.
1+
# Dialogic v0.4 ![Godot v3.2](https://img.shields.io/badge/godot-v3.2-%23478cbf)
2+
Create dialogs, characters and scenes to display conversations in your Godot games.
33

4-
![Screenshot](https://coppolaemilio.com/godot/github-portrait.png)
4+
![Screenshot](https://coppolaemilio.com/images/thumbnail/dialogic-2.png)
55

6-
## How to use:
6+
## Under development!
7+
The plugin is not working right now, make sure to follow the repo for the next update.
78

8-
### 1) Creating Characters:
9-
_If you don't plan on using character portraits you can skip this step._
10-
11-
You first need to create a `DialogCharacterResource` for each character you wish to have in your dialog.
12-
To do this, right click in your FileSystem and choose `New Resource`, search for `DialogCharacterResource` and create it.
13-
It's good practice to put these inside a `Resources/Characters` folder.
14-
You can assign each character a Name, Image and Color.
15-
16-
There are 3 characters used for the example located at `addons\dialogs\Resources\Characters`.
17-
18-
![Screenshot](https://coppolaemilio.com/godot/character-resource-inspector.PNG?v2)
19-
20-
21-
### 2) Creating dialogs
22-
You can set the dialog code inside the dialog node variable `dialog_script` like in the example and then add the characters that are going to be present in that conversation with the variable `dialog_characters`.
23-
24-
![Screenshot](https://coppolaemilio.com/godot/characters-in-node.PNG)
25-
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.
27-
To create a `DialogResource`, right click in your FileSystem and choose `New Resource`, search for `DialogResource` and create it.
28-
Again, it's good practice to put these inside a folder such as `Resources/Dialogs`.
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]`.
30-
Same as before, you must also provide the `DialogResource` with an array of your `DialogCharacterResource` files.
31-
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.
34-
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.
379

3810
## Changelog
11+
v0.4 - Dialogic
12+
- Changed how the main editor works, instead of being a graphedit it is now an event timeline.
13+
- Renamed the plugin to Dialogic. Thanks to Òscar for always knowing how to name things.
14+
- Moved all data to .json files
15+
- Broke the addon for working. Nice :)
16+
3917
v0.3 - Using Resources
4018
- Removed requirement for `global.gd` and `characters.gd` autoload scripts.
4119
- Added `DialogResource` and `DialogCharacterResource` resources to create a cleaner way of specifying dialog content
@@ -55,7 +33,7 @@ v0.1 - Release
5533
## Credits
5634
Code made by [Emilio Coppola](https://github.com/coppolaemilio).
5735

58-
Contributors: [Tom Glenn](https://github.com/tomglenn)
36+
Contributors: [Toen](https://twitter.com/ToenAndreMC), Òscar, [Tom Glenn](https://github.com/tomglenn),
5937

6038
Placeholder images are from Toen's YouTube DF series:
6139
- https://toen.world/
@@ -70,7 +48,13 @@ Placeholder images are from Toen's YouTube DF series:
7048
- Problematic Dave
7149
- Rienk Kroese
7250
- Tyler Dean Osborne
51+
- Gemma M. Rull
52+
- Alex Barton
53+
- Joe Constant
54+
- Kyncho
55+
- JDA
56+
- SIM KIM SIA
7357

7458
Support me on [Patreon https://www.patreon.com/coppolaemilio](https://www.patreon.com/coppolaemilio)
7559

76-
MIT License
60+
MIT License

addons/dialogs/Dialog.tscn renamed to addons/dialogic/Dialog.tscn

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[gd_scene load_steps=9 format=2]
22

3-
[ext_resource path="res://addons/dialogs/Images/dialog-background.png" type="Texture" id=1]
4-
[ext_resource path="res://addons/dialogs/Images/next-indicator.png" type="Texture" id=2]
5-
[ext_resource path="res://addons/dialogs/dialog_node.gd" type="Script" id=3]
6-
[ext_resource path="res://addons/dialogs/Theme.tres" type="Theme" id=4]
7-
[ext_resource path="res://addons/dialogs/Resources/Characters/Iteb.tres" type="Resource" id=5]
8-
[ext_resource path="res://addons/dialogs/Resources/Characters/Zas.tres" type="Resource" id=6]
9-
[ext_resource path="res://addons/dialogs/Resources/Characters/Kubuk.tres" type="Resource" id=7]
3+
[ext_resource path="res://addons/dialogic/Images/dialog-background.png" type="Texture" id=1]
4+
[ext_resource path="res://addons/dialogic/Images/next-indicator.png" type="Texture" id=2]
5+
[ext_resource path="res://addons/dialogic/dialog_node.gd" type="Script" id=3]
6+
[ext_resource path="res://addons/dialogic/Theme.tres" type="Theme" id=4]
7+
[ext_resource path="res://addons/dialogic/Resources/Characters/Iteb.tres" type="Resource" id=5]
8+
[ext_resource path="res://addons/dialogic/Resources/Characters/Zas.tres" type="Resource" id=6]
9+
[ext_resource path="res://addons/dialogic/Resources/Characters/Kubuk.tres" type="Resource" id=7]
1010

1111
[sub_resource type="Animation" id=1]
1212
resource_name = "IDLE"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[gd_resource type="Theme" load_steps=2 format=2]
2+
3+
[sub_resource type="StyleBoxFlat" id=1]
4+
content_margin_left = 20.0
5+
content_margin_right = 20.0
6+
content_margin_top = 40.0
7+
bg_color = Color( 0.105882, 0.105882, 0.105882, 0.678431 )
8+
border_width_top = 30
9+
border_color = Color( 0.2, 0.345098, 0.576471, 1 )
10+
corner_detail = 10
11+
expand_margin_bottom = 10.0
12+
shadow_color = Color( 0, 0, 0, 0.121569 )
13+
shadow_size = 4
14+
shadow_offset = Vector2( 0, 5 )
15+
anti_aliasing = false
16+
17+
[resource]
18+
GraphNode/colors/close_color = Color( 1, 1, 1, 1 )
19+
GraphNode/colors/resizer_color = Color( 1, 1, 1, 1 )
20+
GraphNode/colors/title_color = Color( 1, 1, 1, 1 )
21+
GraphNode/constants/close_offset = 25
22+
GraphNode/constants/port_offset = 0
23+
GraphNode/constants/separation = -10
24+
GraphNode/constants/title_offset = 25
25+
GraphNode/fonts/title_font = null
26+
GraphNode/icons/close = null
27+
GraphNode/icons/port = null
28+
GraphNode/icons/resizer = null
29+
GraphNode/styles/breakpoint = null
30+
GraphNode/styles/comment = null
31+
GraphNode/styles/commentfocus = null
32+
GraphNode/styles/defaultfocus = SubResource( 1 )
33+
GraphNode/styles/defaultframe = SubResource( 1 )
34+
GraphNode/styles/frame = SubResource( 1 )
35+
GraphNode/styles/position = null
36+
GraphNode/styles/selectedframe = SubResource( 1 )

0 commit comments

Comments
 (0)