Skip to content

Commit 62bade9

Browse files
committed
Merge remote-tracking branch 'org/main'
2 parents f1d4a70 + a9b207d commit 62bade9

658 files changed

Lines changed: 16043 additions & 6129 deletions

File tree

Some content is hidden

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

.github/FUNDING.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# These are supported funding model platforms
22

3-
github: coppolaemilio
4-
patreon: coppolaemilio
3+
github: jowan-spooner
4+
patreon: jowanspooner
55
open_collective: # Replace with a single Open Collective username
6-
ko_fi: coppolaemilio
6+
ko_fi: jowan_spooner
77
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
88
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
99
liberapay: # Replace with a single Liberapay username

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ If applicable, add screenshots to help explain your problem.
2727

2828
**System (please complete the following information):**
2929
- OS: [e.g. Windows, Linux]
30-
- Godot Version: [e.g. 3.2.3]
31-
- Dialogic Version: [e.g. 1.0]
30+
- Godot Version: [e.g. 4.2.2]
31+
- Dialogic Version: [e.g. 2.0 Alpha 14, please be specific!]
3232

3333
## Solutions
3434

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Dialogic 1 Repository
4+
url: https://github.com/dialogic-godot/dialogic-1/issues
5+
about: Please post anything related to Dialogc 1.x (Godot 3.x) on the Dialogic 1 Repository!
6+

.github/workflows/unit_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
# Insert here the Godot version you want to run your tests with.
25-
godot-version: ['4.2.1']
25+
godot-version: ['4.3']
2626

2727
name: "CI Unit Test v${{ matrix.godot-version }}"
2828
runs-on: 'ubuntu-22.04'
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: "Checkout your Repository"
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
lfs: true
3737

@@ -93,7 +93,7 @@ jobs:
9393
9494
- name: "Upload Unit Test Reports"
9595
if: ${{ always() }}
96-
uses: actions/upload-artifact@v3
96+
uses: actions/upload-artifact@v4
9797
with:
9898
name: "godot-version"
9999
path: |

.github/workflows/unit_test_report.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717

1818
- name: "Publish Test Report"
1919
if: ${{ always() }}
20-
uses: dorny/test-reporter@v1.6.0
20+
uses: dorny/test-reporter@v1.9.1
2121
with:
22+
artifact: "godot-version"
2223
name: "test_report"
23-
path: "reports/**/results.xml"
24-
reporter: java-junit
24+
path: "**/reports/**/results.xml"
25+
reporter: java-junit

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 - 2023 Emilio Coppola
3+
Copyright (c) 2020 - present Emilio Coppola
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22
<img width="1280" alt="cover" src="https://user-images.githubusercontent.com/2206700/189457799-6327bab0-b085-4421-8640-6a18e395d17d.png">
33
</p>
44

5-
<h1 align="center">Dialogic</h1>
5+
<h1 align="center">Dialogic 2</h1>
66

77
<p align="center">
8-
Create dialogs, characters and scenes to display conversations in your Godot games.
8+
Create <b>Dialogs</b>, <b>Visual Novels</b>, <b>RPGs</b>, and <b>manage Characters</b> with Godot to create your Game!
9+
</p>
10+
11+
<p align="center">
12+
<a href="https://discord.gg/DjcDgDaTMe" target="_blank" style="text-decoration:none"><img alt="Discord" src="https://img.shields.io/discord/628713677239091231?logo=discord&labelColor=CFC9C8&color=646FA9"></a>
13+
<a href="https://godotengine.org/download/" target="_blank" style="text-decoration:none"><img alt="Godot v4.3+" src="https://img.shields.io/badge/Godot-v4.3+-%23478cbf?labelColor=CFC9C8&color=49A9B4" /></a>
14+
<a href="https://docs.dialogic.pro/introduction.html" target="_blank" style="text-decoration:none"><img alt="Dialogic 2 Documentation" src="https://img.shields.io/badge/documention-online-green?labelColor=CFC9C8&color=6BCD69"></a>
15+
<a href="https://github.com/dialogic-godot/dialogic/actions/workflows/unit_test.yml" target="_blank style="text-decoration:none"><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/dialogic-godot/dialogic/unit_test.yml?labelColor=CFC9C8&color=DBDCB8"></a>
16+
<a href="https://github.com/dialogic-godot/dialogic/releases" target="_blank" style="text-decoration:none"><img alt="Latest Dialogic Release" src="https://img.shields.io/github/v/release/dialogic-godot/dialogic?include_prereleases&labelColor=CFC9C8&color=CBA18C"></a>
917
</p>
1018

1119
## Table of Contents
@@ -16,36 +24,57 @@
1624
- [Credits](#credits)
1725
- [License](#license)
1826

19-
## Version (Currently in Alpha)
20-
21-
Dialogic 2.0 is a major rewrite of the plugin including many compatibility-breaking changes. It is currently developed exclusively for Godot 4 and requires at least Godot 4.1.
27+
## Version
2228

23-
![Godot v4.0](https://img.shields.io/badge/Godot-v4.1-%23478cbf)
29+
Dialogic 2 **requires at least Godot 4.3**.
2430

25-
[If you are looking for the Godot 3.5 version you can find it here.](https://github.com/dialogic-godot/dialogic/tree/dialogic-1)
31+
[If you are looking for the Godot 3.x version (Dialogic 1.x) you can find it here.](https://github.com/dialogic-godot/dialogic-1)
2632

2733
## Installation
28-
Follow the installation instructions on our [Getting Started](https://dialogic-docs.coppolaemilio.com/getting-started.html#1-installation--activation) documentation.
34+
Follow the installation instructions on our [Getting Started](https://docs.dialogic.pro/getting-started.html#1-installation--activation) documentation.
2935

3036
Dialogic comes with an auto-updater so you can install future versions right from within the plugin.
3137

3238
## Documentation
33-
As the plugin is still in alpha state, only limited documentation is available. However you can read all the existing documentation here:
34-
[Dialogic Documentation](https://dialogic-docs.coppolaemilio.com/)
39+
You can find the official documentation of Dialogic here: [Dialogic Documentation](https://docs.dialogic.pro/)
40+
41+
There is a Class Reference as well: [Class Reference](https://docs.dialogic.pro/class_index.html)
42+
43+
44+
## Connect with us!
45+
If you need help or want to share your Dialogic projects, take a look at the following options:
46+
47+
- Ask questions, or report bugs on our [Discord](https://discord.gg/DjcDgDaTMe)
48+
- Report bugs and issues on the [GitHub Issues Page](https://github.com/dialogic-godot/dialogic/issues)
49+
- Ask questions on [GitHub Discussions](https://github.com/dialogic-godot/dialogic/discussions)
3550

3651
## Testing
37-
Dialogic uses [Unit Tests](https://en.wikipedia.org/wiki/Unit_testing) to ensure specific parts function as expected. These tests run on every git push and pull request. The framework to do these tests is called [gdUnit4](https://github.com/MikeSchulze/gdUnit4) and our tests reside in the [addons/dialogic/Tests/Unit](https://github.com/dialogic-godot/dialogic/tree/main/addons/dialogic/Tests/Unit) path. We recommend installing the `gdUnit4` add-on from the `AssetLib`, with this add-on, you can run tests locally.
52+
Dialogic uses [Unit Tests](https://en.wikipedia.org/wiki/Unit_testing) to ensure specific parts function as expected. These tests run on every git push and pull request. The framework to do these tests is called [gdUnit4](https://github.com/MikeSchulze/gdUnit4) and our tests reside in the [/Tests/Unit](https://github.com/dialogic-godot/dialogic/tree/main/Tests/Unit) path. We recommend installing the `gdUnit4` add-on from the `AssetLib`, with this add-on, you can run tests locally.
3853

3954
To get started, take a look at the existing files in the path and read the documentation to [create your first test](https://mikeschulze.github.io/gdUnit4/first_steps/firstTest/).
4055

56+
## Interacting with the Source Code
57+
All methods and variables in the Dialogic 2 source **code prefixed with an underscore (`_`)** are considered *private*, for instance: `_remove_character()`.
58+
59+
While you can use them, they may change in their behavior or change their signature, causing breakage in your code while moving between versions.
60+
Most private methods are used inside public ones; if you need help, check the documentation.
61+
62+
**Public methods and variables can be found in our [Class Reference](https://docs.dialogic.pro/class_index.html).**
63+
64+
During the Alpha and Beta version stages, code may change at any Dialogic Release to allow drafting a better design.
65+
Changelogs will accommodate for these changes and inform you on how to update your code.
66+
67+
4168
## Credits
42-
Made by [Emilio Coppola](https://github.com/coppolaemilio) and [Jowan-Spooner](https://github.com/Jowan-Spooner).
69+
Made by [Jowan-Spooner](https://github.com/Jowan-Spooner) and [Emilio Coppola](https://github.com/coppolaemilio).
4370

44-
Contributors: [zaknafean](https://github.com/zaknafean), [thebardsrc](https://github.com/thebardsrc), [and more!](https://github.com/dialogic-godot/dialogic/graphs/contributors).
71+
Contributors: [CakeVR](https://github.com/CakeVR), [Exelia](https://github.com/exelia-antonov), [zaknafean](https://github.com/zaknafean), [and more!](https://github.com/dialogic-godot/dialogic/graphs/contributors).
4572

4673
Special thanks: [Arnaud](https://github.com/arnaudvergnet), [AnidemDex](https://github.com/AnidemDex), [ellogwen](https://github.com/ellogwen), [Tim Krief](https://github.com/timkrief), [Toen](https://twitter.com/ToenAndreMC), Òscar, [Francisco Presencia](https://francisco.io/), [M7mdKady14](https://github.com/M7mdKady14).
4774

48-
### Thank you to all my [Patreons](https://www.patreon.com/coppolaemilio) and Github sponsors for making this possible!
75+
### Thank you to all my [Patreons](https://www.patreon.com/jowanspooner) and Github sponsors for making this possible!
4976

5077
## License
5178
This project is licensed under the terms of the [MIT license](https://github.com/dialogic-godot/dialogic/blob/main/LICENSE).
79+
80+
Dialogic may use the [Roboto font](https://fonts.google.com/specimen/Roboto), licensed under [Apache license, Version 2.0](https://github.com/dialogic-godot/dialogic/tree/main/addons/dialogic/Example%20Assets/Fonts/LICENSE.txt).
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"@path": "res://addons/dialogic/Resources/character.gd",
3+
"@subpath": NodePath(""),
4+
"_translation_id": "",
5+
"color": Color(1, 1, 1, 1),
6+
"custom_info": {
7+
"sound_mood_default": "",
8+
"sound_moods": {},
9+
"style": ""
10+
},
11+
"default_portrait": "",
12+
"description": "",
13+
"display_name": "unit_test_character",
14+
"mirror": false,
15+
"nicknames": [""],
16+
"offset": Vector2(0, 0),
17+
"portraits": {},
18+
"scale": 1.0
19+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://ciqdfnu6b3se

Tests/Unit/glossary_resource_test.gd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const NAME_ENTRY := "Example Name"
66
const EXAMPLE_TITLE := "Example Title"
77
const ALTERNATIVE_ENTRIES := ["A", "BE", "VERY LONG ENTRY"]
88

9-
const SAMPLE_ENTRY := {
9+
var SAMPLE_ENTRY := {
1010
DialogicGlossary.TITLE_PROPERTY: EXAMPLE_TITLE,
1111
DialogicGlossary.NAME_PROPERTY: NAME_ENTRY,
1212
DialogicGlossary.ALTERNATIVE_PROPERTY: ALTERNATIVE_ENTRIES
@@ -18,7 +18,7 @@ const SAMPLE_ENTRY := {
1818
func test_add_entry() -> void:
1919
var glossary: DialogicGlossary = DialogicGlossary.new()
2020

21-
assert(glossary.try_add_entry(SAMPLE_ENTRY), "Unable to add entry.")
21+
assert(glossary.try_add_entry(SAMPLE_ENTRY.duplicate()), "Unable to add entry.")
2222

2323
const NAME_COUNTER := 1
2424
var total_entry_count := ALTERNATIVE_ENTRIES.size() + NAME_COUNTER
@@ -36,7 +36,7 @@ func test_add_entry() -> void:
3636
func test_replace_entries() -> void:
3737
var glossary: DialogicGlossary = DialogicGlossary.new()
3838

39-
assert(glossary.try_add_entry(SAMPLE_ENTRY), "Unable to add entry.")
39+
assert(glossary.try_add_entry(SAMPLE_ENTRY.duplicate()), "Unable to add entry.")
4040

4141
const NEW_NAME := "NEW NAME"
4242

@@ -55,7 +55,7 @@ func test_replace_entries() -> void:
5555
func test_remove_entry() -> void:
5656
var glossary: DialogicGlossary = DialogicGlossary.new()
5757

58-
assert(glossary.try_add_entry(SAMPLE_ENTRY), "Unable to add entry.")
58+
assert(glossary.try_add_entry(SAMPLE_ENTRY.duplicate()), "Unable to add entry.")
5959

6060
const NAME_COUNTER := 1
6161
var total_entry_count := ALTERNATIVE_ENTRIES.size() + NAME_COUNTER
@@ -72,5 +72,5 @@ func test_remove_entry() -> void:
7272
func test_add_duplicates() -> void:
7373
var glossary: DialogicGlossary = DialogicGlossary.new()
7474

75-
assert(glossary.try_add_entry(SAMPLE_ENTRY), "Unable to add entry.")
76-
assert(not glossary.try_add_entry(SAMPLE_ENTRY), "Entry should not have been added.")
75+
assert(glossary.try_add_entry(SAMPLE_ENTRY.duplicate()), "Unable to add entry.")
76+
assert(not glossary.try_add_entry(SAMPLE_ENTRY.duplicate()), "Entry should not have been added.")

0 commit comments

Comments
 (0)