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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user