diff --git a/Code-scene/Code-scene.gd b/Code-scene/Code-scene.gd new file mode 100644 index 0000000..3de364f --- /dev/null +++ b/Code-scene/Code-scene.gd @@ -0,0 +1,5 @@ +extends Control + +func _ready(): + var dia = Dialogic.start('Start') + add_child(dia) diff --git a/Code-scene/Code-scene.tscn b/Code-scene/Code-scene.tscn new file mode 100644 index 0000000..16c3e62 --- /dev/null +++ b/Code-scene/Code-scene.tscn @@ -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" diff --git a/Drag-and-drop-scene/Drag-and-drop-scene.tscn b/Drag-and-drop-scene/Drag-and-drop-scene.tscn new file mode 100644 index 0000000..2f06159 --- /dev/null +++ b/Drag-and-drop-scene/Drag-and-drop-scene.tscn @@ -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" diff --git a/Menu.gd b/Menu.gd new file mode 100644 index 0000000..9bc84ff --- /dev/null +++ b/Menu.gd @@ -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") diff --git a/Menu.tscn b/Menu.tscn new file mode 100644 index 0000000..a75b0a3 --- /dev/null +++ b/Menu.tscn @@ -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"] diff --git a/addons/dialogic/Localization/dialogic.en.translation b/addons/dialogic/Localization/dialogic.en.translation index f21f0b2..1b771f1 100644 Binary files a/addons/dialogic/Localization/dialogic.en.translation and b/addons/dialogic/Localization/dialogic.en.translation differ diff --git a/addons/dialogic/Localization/dialogic.es.translation b/addons/dialogic/Localization/dialogic.es.translation index 0c798a3..1793012 100644 Binary files a/addons/dialogic/Localization/dialogic.es.translation and b/addons/dialogic/Localization/dialogic.es.translation differ diff --git a/addons/dialogic/Localization/dialogic.fr.translation b/addons/dialogic/Localization/dialogic.fr.translation index f59d858..c18249e 100644 Binary files a/addons/dialogic/Localization/dialogic.fr.translation and b/addons/dialogic/Localization/dialogic.fr.translation differ diff --git a/addons/dialogic/Localization/dialogic.zh_CN.translation b/addons/dialogic/Localization/dialogic.zh_CN.translation index 2a2f57c..60ce0de 100644 Binary files a/addons/dialogic/Localization/dialogic.zh_CN.translation and b/addons/dialogic/Localization/dialogic.zh_CN.translation differ diff --git a/default_env.tres b/default_env.tres index 98f26a7..20207a4 100644 --- a/default_env.tres +++ b/default_env.tres @@ -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 ) diff --git a/dialogic/definitions.json b/dialogic/definitions.json new file mode 100644 index 0000000..e69de29 diff --git a/dialogic/folder_structure.json b/dialogic/folder_structure.json new file mode 100644 index 0000000..3da2ac1 --- /dev/null +++ b/dialogic/folder_structure.json @@ -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 + } + } + } +} diff --git a/dialogic/settings.cfg b/dialogic/settings.cfg new file mode 100644 index 0000000..9e9c2bd --- /dev/null +++ b/dialogic/settings.cfg @@ -0,0 +1,11 @@ +[updates] + +updatenumber=1 + +[editor] + +character_preview_mode=1 + +[theme] + +default="default-theme.cfg" diff --git a/dialogic/themes/default-theme.cfg b/dialogic/themes/default-theme.cfg new file mode 100644 index 0000000..ffc0195 --- /dev/null +++ b/dialogic/themes/default-theme.cfg @@ -0,0 +1,3 @@ +[settings] + +name="Default Theme" diff --git a/dialogic/timelines/timeline-1638103740.json b/dialogic/timelines/timeline-1638103740.json new file mode 100644 index 0000000..5083987 --- /dev/null +++ b/dialogic/timelines/timeline-1638103740.json @@ -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" + } +} diff --git a/project.godot b/project.godot index 05cf948..b11189e 100644 --- a/project.godot +++ b/project.godot @@ -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