This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from Levrault/fix/signal-node-parent
Fix/signal node parent
- Loading branch information
Showing
9 changed files
with
107 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"f52b144c-6ba9-4d3b-8255-a92e343123c5":{"name":"Actor1","portrait":"res://assets/examples/godot.png","text":{"en":"The empty condition should be the default\npath of your dialogue system","fr":""},"parent":"b5c55fcc-5eb6-4088-ba49-a9b6b7b7a187"},"f240e052-cea1-4e61-aa80-c927f5015fff":{"name":"Actor1","portrait":"res://assets/examples/godot.png","text":{"en":"Hey, I know you!","fr":""},"parent":"5fdfd233-bb75-4a80-890e-383dd9ab478c","signals":{"parent":"f240e052-cea1-4e61-aa80-c927f5015fff","string":{"String":"valueOfString"},"number":{"Number":"12"},"wmpr":{}," empty":{},"empty":{}}},"root":{"conditions":[{"parent":"root","next":"f52b144c-6ba9-4d3b-8255-a92e343123c5"},{"has_meet":{"value":true,"operator":"equal","type":"boolean"},"parent":"root","next":"f240e052-cea1-4e61-aa80-c927f5015fff"}]},"__editor":{"root":{"uuid":"root","offset":[40,80]},"dialogues":[{"uuid":"f52b144c-6ba9-4d3b-8255-a92e343123c5","offset":[680,300]},{"uuid":"f240e052-cea1-4e61-aa80-c927f5015fff","offset":[700,-160]}],"conditions":[{"uuid":"b5c55fcc-5eb6-4088-ba49-a9b6b7b7a187","offset":[280,180],"folded":true,"parent":"root"},{"uuid":"5fdfd233-bb75-4a80-890e-383dd9ab478c","offset":[280,0],"collapsed":true,"parent":"root"}],"signals":[{"uuid":"213bfe5f-8005-4d23-b33e-1cf528c44dd8","offset":[1140,-200],"parent":"f240e052-cea1-4e61-aa80-c927f5015fff"}],"choices":[]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[path] | ||
|
||
resource="/Users/lflangis/Devs/LE-dialogue-editor" | ||
OSX="/Users/lflangis/Devs/LE-dialogue-editor" | ||
Windows="" | ||
UWP="" | ||
X11="" | ||
|
||
[configuration] | ||
|
||
has_portrait=true | ||
has_name=true | ||
dialogue_character_limit=250 | ||
choice_character_limit=100 | ||
|
||
[locale] | ||
|
||
current="en" | ||
selected=[ "en", "fr" ] | ||
custom=[ ] | ||
|
||
[variables] | ||
|
||
characters=[ { | ||
"name": "Actor1", | ||
"portraits": [ { | ||
"default": true, | ||
"name": "Idle", | ||
"path": "res://assets/examples/godot.png", | ||
"uuid": "4a8db634-fc49-4a03-84dd-25f2380c99fd" | ||
} ] | ||
}, { | ||
"name": "Actor2", | ||
"portraits": [ { | ||
"default": true, | ||
"name": "Idle", | ||
"path": "res://assets/examples/levrault.png", | ||
"uuid": "854aa4f7-85f3-4bf3-ab6e-98d7f63b125b" | ||
} ] | ||
} ] | ||
files=[ { | ||
"name": "complete_example_demo", | ||
"path": "res://assets/examples/complete_example_demo" | ||
}, { | ||
"name": "complete_conditional_example", | ||
"path": "res://assets/examples/complete_conditional_example" | ||
} ] | ||
|
||
[cache] | ||
|
||
last_opened_file={ | ||
"name": "complete_conditional_example", | ||
"path": "res://assets/examples/complete_conditional_example" | ||
} | ||
|
||
[info] | ||
|
||
version="v1.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"a89874ed-2fa8-4818-a49c-044a3464eb0c":{"name":"Actor1","portrait":"res://assets/examples/godot.png","text":{"en":"Do you want to build a complexe dialogue\nsystem?","fr":""},"parent":"root","choices":[{"text":{"en":"YES","fr":""},"next":"4744ae77-d778-4eb1-8a84-068cc1687cd5","parent":"a89874ed-2fa8-4818-a49c-044a3464eb0c"},{"text":{"en":"No I just want some cute and short\ndialogue with a little bit of complexity","fr":""},"next":"d0d5e299-28a6-4716-8712-4efa8d956e0d","parent":"a89874ed-2fa8-4818-a49c-044a3464eb0c"}]},"4744ae77-d778-4eb1-8a84-068cc1687cd5":{"name":"Actor1","portrait":"res://assets/examples/godot.png","text":{"en":"Well, Le dialogue editor is maybe not\nthe best choice","fr":""},"parent":"0d1f39a7-d021-4b65-bf25-b91eb2f9e78c","signals":{"hello":{},"parent":"4744ae77-d778-4eb1-8a84-068cc1687cd5"}},"d0d5e299-28a6-4716-8712-4efa8d956e0d":{"name":"Actor1","portrait":"res://assets/examples/godot.png","text":{"en":"Cool, Le dialogue editor could be a solution\nfor your needs!","fr":""},"parent":"5c01c8b1-b018-4dd7-9b1d-d51aba7b2fee"},"root":{"next":"a89874ed-2fa8-4818-a49c-044a3464eb0c"},"__editor":{"root":{"uuid":"root","offset":[40,100]},"dialogues":[{"uuid":"a89874ed-2fa8-4818-a49c-044a3464eb0c","offset":[240,0],"parent":"root"},{"uuid":"4744ae77-d778-4eb1-8a84-068cc1687cd5","offset":[1100,-240]},{"uuid":"d0d5e299-28a6-4716-8712-4efa8d956e0d","offset":[1080,260]}],"conditions":[],"signals":[{"uuid":"06932b6c-7daf-44b7-ac45-dc1c66ee321e","offset":[1525,-285],"parent":"4744ae77-d778-4eb1-8a84-068cc1687cd5","data":{"hello":{},"parent":"4744ae77-d778-4eb1-8a84-068cc1687cd5"}}],"choices":[{"uuid":"0d1f39a7-d021-4b65-bf25-b91eb2f9e78c","offset":[680,-80],"parent":"a89874ed-2fa8-4818-a49c-044a3464eb0c"},{"uuid":"5c01c8b1-b018-4dd7-9b1d-d51aba7b2fee","offset":[680,200],"parent":"a89874ed-2fa8-4818-a49c-044a3464eb0c"}]}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
extends RichTextLabel | ||
|
||
var values: Dictionary = {} | ||
|
||
|
||
func _ready(): | ||
Events.connect("toolbox_json_displayed", self, "_on_Json_displayed") | ||
|
||
|
||
func _on_Json_displayed(values: Dictionary) -> void: | ||
func _process(delta): | ||
text = JSON.print(values, "\t") | ||
|
||
|
||
func _on_Json_displayed(node_values: Dictionary) -> void: | ||
values = node_values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters