Co-authored-by: Dennis Ploeger <develop@dieploegers.de> Co-authored-by: dploeger <dploeger@users.noreply.github.com>
907 B
907 B
ESCDialogOption
Extends: ESCStatement < Object
Description
An option of an ESC dialog
Constants Descriptions
REGEX
const REGEX: String = "^[^-]*- (?<trans_key>[^:]+)?:?\"(?<option>[^\"]+)\"( \\[(?<conditions>[^\\]]+)\\])?$"
Regex that matches dialog option lines
Property Descriptions
option
var option: String
- Getter:
get_option
Option displayed in the HUD
conditions
var conditions: Array
Conditions to show this dialog
Method Descriptions
_init
func _init(option_string: String)
Create a dialog option from a string
get_option
func get_option()
is_valid
func is_valid() -> bool
Check, if conditions match