Issue 336 (#380)

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-30 20:57:25 +02:00
committed by GitHub
parent 3b36031f24
commit 3dc779311c
35 changed files with 389 additions and 254 deletions

View File

@@ -13,7 +13,7 @@ An option of an ESC dialog
### REGEX
```gdscript
const REGEX: String = "^[^-]*- \"(?<option>[^\"]+)\"( \\[(?<conditions>[^\\]]+)\\])?$"
const REGEX: String = "^[^-]*- (?<trans_key>[^:]+)?:?\"(?<option>[^\"]+)\"( \\[(?<conditions>[^\\]]+)\\])?$"
```
Regex that matches dialog option lines
@@ -26,6 +26,8 @@ Regex that matches dialog option lines
var option: String
```
- **Getter**: `get_option`
Option displayed in the HUD
### conditions
@@ -46,6 +48,12 @@ func _init(option_string: String)
Create a dialog option from a string
### get\_option
```gdscript
func get_option()
```
### is\_valid
```gdscript