Files
gymkhana-actions/docs/api/ESCDialogOption.md
Dennis Ploeger 58d880101d Optimized Docs (#7)
Authored-by: Dennis Ploeger <develop@dieploegers.de>
2021-06-22 23:06:20 +02:00

805 B

ESCDialogOption

Extends: ESCStatement < Object

Description

An option of an ESC dialog

Constants Descriptions

REGEX

const REGEX: String = "^[^-]*- \"(?<option>[^\"]+)\"( \\[(?<conditions>[^\\]]+)\\])?$"

Regex that matches dialog option lines

Property Descriptions

option

var option: String

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

is_valid

func is_valid() -> bool

Check, if conditions match