forked from dialogic-godot/test-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base project with both ways of instancing Dialogic
- Loading branch information
1 parent
3b42104
commit d8db425
Showing
16 changed files
with
244 additions
and
0 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,5 @@ | ||
extends Control | ||
|
||
func _ready(): | ||
var dia = Dialogic.start('Start') | ||
add_child(dia) |
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,16 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://Code-scene/Code-scene.gd" type="Script" id=1] | ||
|
||
[node name="Control" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Label" type="Label" parent="."] | ||
margin_right = 40.0 | ||
margin_bottom = 14.0 | ||
text = "Code scene" |
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,22 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://addons/dialogic/Dialog.tscn" type="PackedScene" id=1] | ||
|
||
[node name="Control" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Dialog" parent="." instance=ExtResource( 1 )] | ||
anchor_right = 0.0 | ||
anchor_bottom = 0.0 | ||
margin_right = 1024.0 | ||
margin_bottom = 600.0 | ||
timeline = "timeline-1638103740.json" | ||
|
||
[node name="Label" type="Label" parent="."] | ||
margin_right = 40.0 | ||
margin_bottom = 14.0 | ||
text = "Drag and drop scene" |
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,9 @@ | ||
extends Control | ||
|
||
|
||
func _on_DndTest_pressed(): | ||
get_tree().change_scene("res://Drag-and-drop-scene/Drag-and-drop-scene.tscn") | ||
|
||
|
||
func _on_CodeTest_pressed(): | ||
get_tree().change_scene("res://Code-scene/Code-scene.tscn") |
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,49 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[ext_resource path="res://Menu.gd" type="Script" id=1] | ||
|
||
[node name="Control" type="Control"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
script = ExtResource( 1 ) | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="CenterContainer" type="CenterContainer" parent="."] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"] | ||
margin_left = 431.0 | ||
margin_top = 260.0 | ||
margin_right = 592.0 | ||
margin_bottom = 340.0 | ||
custom_constants/separation = 13 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"] | ||
margin_right = 161.0 | ||
margin_bottom = 14.0 | ||
text = "Select a test to run:" | ||
align = 1 | ||
|
||
[node name="DndTest" type="Button" parent="CenterContainer/VBoxContainer"] | ||
margin_top = 27.0 | ||
margin_right = 161.0 | ||
margin_bottom = 47.0 | ||
text = "Start drag and drop test" | ||
|
||
[node name="CodeTest" type="Button" parent="CenterContainer/VBoxContainer"] | ||
margin_top = 60.0 | ||
margin_right = 161.0 | ||
margin_bottom = 80.0 | ||
text = "Start code test" | ||
|
||
[connection signal="pressed" from="CenterContainer/VBoxContainer/DndTest" to="." method="_on_DndTest_pressed"] | ||
[connection signal="pressed" from="CenterContainer/VBoxContainer/CodeTest" to="." method="_on_CodeTest_pressed"] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,5 +1,7 @@ | ||
[gd_resource type="Environment" load_steps=2 format=2] | ||
|
||
[sub_resource type="ProceduralSky" id=1] | ||
|
||
[resource] | ||
background_mode = 2 | ||
background_sky = SubResource( 1 ) |
Empty file.
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,55 @@ | ||
{ | ||
"files": [ | ||
|
||
], | ||
"folders": { | ||
"Characters": { | ||
"files": [ | ||
|
||
], | ||
"folders": { | ||
|
||
}, | ||
"metadata": { | ||
"color": null, | ||
"folded": false | ||
} | ||
}, | ||
"Definitions": { | ||
"files": [ | ||
|
||
], | ||
"folders": { | ||
|
||
}, | ||
"metadata": { | ||
"color": null, | ||
"folded": false | ||
} | ||
}, | ||
"Themes": { | ||
"files": [ | ||
"default-theme.cfg" | ||
], | ||
"folders": { | ||
|
||
}, | ||
"metadata": { | ||
"color": null, | ||
"folded": false | ||
} | ||
}, | ||
"Timelines": { | ||
"files": [ | ||
"timeline-1638103740.json" | ||
], | ||
"folders": { | ||
|
||
}, | ||
"metadata": { | ||
"color": null, | ||
"folded": false | ||
} | ||
} | ||
} | ||
} |
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,11 @@ | ||
[updates] | ||
|
||
updatenumber=1 | ||
|
||
[editor] | ||
|
||
character_preview_mode=1 | ||
|
||
[theme] | ||
|
||
default="default-theme.cfg" |
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,3 @@ | ||
[settings] | ||
|
||
name="Default Theme" |
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,15 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"character": "", | ||
"event_id": "dialogic_001", | ||
"portrait": "", | ||
"text": "Welcome to the Dialogic test project!\nIn this project we will test every feature to make sure they work before a release." | ||
} | ||
], | ||
"metadata": { | ||
"dialogic-version": "1.4 - DEV", | ||
"file": "timeline-1638103740.json", | ||
"name": "Start" | ||
} | ||
} |
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