feat: Implemented all dialog features. Fixes #345 (#376)

Co-authored-by: Dennis Ploeger <develop@dieploegers.de>
Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
Dennis Ploeger
2021-08-27 08:15:52 +02:00
committed by GitHub
parent 2ed184ad4a
commit 1f28fdc8f3
19 changed files with 418 additions and 172 deletions

View File

@@ -21,25 +21,17 @@ A Regex that matches the end of a dialog
### REGEX
```gdscript
const REGEX: String = "^(\\s*)\\?( (?<type>[^ ]+))?( (?<avatar>[^ ]+))?( (?<timeout>[^ ]+))?( (?<timeout_option>.+))?$"
const REGEX: String = "^(\\s*)\\?( (?<avatar>[^ ]+))?( (?<timeout>[^ ]+))?( (?<timeout_option>.+))?$"
```
Regex that matches dialog lines
## Property Descriptions
### type
```gdscript
var type: String = ""
```
Dialog type
### avatar
```gdscript
var avatar: String = ""
var avatar: String = "-"
```
Avatar used in the dialog
@@ -84,7 +76,7 @@ Construct a dialog from a dialog string
func is_valid() -> bool
```
Dialogs have no conditions, just return true
Check if dialog is valid
### run