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
|
||||
|
||||
@@ -9,7 +9,14 @@
|
||||
`say object text [type] [avatar]`
|
||||
|
||||
Runs the specified string as a dialog said by the object. Blocks execution
|
||||
until the dialog finishes playing. Optional parameters:
|
||||
until the dialog finishes playing.
|
||||
|
||||
The text supports translation keys by prepending the key and separating
|
||||
it with a `:` from the text.
|
||||
|
||||
Example: `say player ROOM1_PICTURE:"Picture's looking good."`
|
||||
|
||||
Optional parameters:
|
||||
|
||||
* "type" determines the type of dialog UI to use. Default value is "default"
|
||||
* "avatar" determines the avatar to use for the dialog. Default value is
|
||||
|
||||
Reference in New Issue
Block a user