Skip to content

Commit

Permalink
Base project with both ways of instancing Dialogic
Browse files Browse the repository at this point in the history
  • Loading branch information
coppolaemilio committed Nov 28, 2021
1 parent 3b42104 commit d8db425
Show file tree
Hide file tree
Showing 16 changed files with 244 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code-scene/Code-scene.gd
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)
16 changes: 16 additions & 0 deletions Code-scene/Code-scene.tscn
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"
22 changes: 22 additions & 0 deletions Drag-and-drop-scene/Drag-and-drop-scene.tscn
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"
9 changes: 9 additions & 0 deletions Menu.gd
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")
49 changes: 49 additions & 0 deletions Menu.tscn
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 modified addons/dialogic/Localization/dialogic.en.translation
Binary file not shown.
Binary file modified addons/dialogic/Localization/dialogic.es.translation
Binary file not shown.
Binary file modified addons/dialogic/Localization/dialogic.fr.translation
Binary file not shown.
Binary file modified addons/dialogic/Localization/dialogic.zh_CN.translation
Binary file not shown.
2 changes: 2 additions & 0 deletions default_env.tres
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 added dialogic/definitions.json
Empty file.
55 changes: 55 additions & 0 deletions dialogic/folder_structure.json
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
}
}
}
}
11 changes: 11 additions & 0 deletions dialogic/settings.cfg
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"
3 changes: 3 additions & 0 deletions dialogic/themes/default-theme.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[settings]

name="Default Theme"
15 changes: 15 additions & 0 deletions dialogic/timelines/timeline-1638103740.json
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"
}
}
57 changes: 57 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,68 @@

config_version=4

_global_script_classes=[ {
"base": "Reference",
"class": "DTS",
"language": "GDScript",
"path": "res://addons/dialogic/Localization/translation_service.gd"
}, {
"base": "Node",
"class": "Dialogic",
"language": "GDScript",
"path": "res://addons/dialogic/Other/DialogicClass.gd"
}, {
"base": "Control",
"class": "DialogicBackgroundMusic",
"language": "GDScript",
"path": "res://addons/dialogic/Nodes/BackgroundMusic.gd"
}, {
"base": "Node",
"class": "DialogicCustomEvents",
"language": "GDScript",
"path": "res://addons/dialogic/Nodes/DialogicCustomEvents.gd"
}, {
"base": "Node",
"class": "DialogicDefinitionsUtil",
"language": "GDScript",
"path": "res://addons/dialogic/Other/DialogicDefinitionsUtil.gd"
}, {
"base": "Node",
"class": "DialogicParser",
"language": "GDScript",
"path": "res://addons/dialogic/Parser/DialogicParser.gd"
}, {
"base": "Reference",
"class": "DialogicResources",
"language": "GDScript",
"path": "res://addons/dialogic/Other/DialogicResources.gd"
}, {
"base": "Reference",
"class": "DialogicUtil",
"language": "GDScript",
"path": "res://addons/dialogic/Other/DialogicUtil.gd"
} ]
_global_script_class_icons={
"DTS": "",
"Dialogic": "",
"DialogicBackgroundMusic": "",
"DialogicCustomEvents": "",
"DialogicDefinitionsUtil": "",
"DialogicParser": "",
"DialogicResources": "",
"DialogicUtil": ""
}

[application]

config/name="Dialogic Test Project"
run/main_scene="res://Menu.tscn"
config/icon="res://icon.png"

[editor_plugins]

enabled=PoolStringArray( "res://addons/dialogic/plugin.cfg" )

[physics]

common/enable_pause_aware_picking=true
Expand Down

0 comments on commit d8db425

Please sign in to comment.