mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 02:15:54 +00:00
Updated dialogic
This commit is contained in:
parent
1d11462073
commit
cbb82512ee
483 changed files with 5743 additions and 2177 deletions
|
|
@ -19,6 +19,7 @@ signal variable_changed(info:Dictionary)
|
|||
## `new_value` | [type Variant]| The value that [variable] has after the change (the result). [br]
|
||||
## `value` | [type Variant]| The value that the variable is changed by/to. [br]
|
||||
## `value_str` | [type String] | Whatever has been given as the value (not interpreted, so a variable is just a string).[br]
|
||||
@warning_ignore("unused_signal") # This is emitted from the variable event
|
||||
signal variable_was_set(info:Dictionary)
|
||||
|
||||
|
||||
|
|
@ -59,7 +60,7 @@ func parse_variables(text:String) -> String:
|
|||
|
||||
# Trying to extract the curly brackets from the text
|
||||
var regex := RegEx.new()
|
||||
regex.compile("(?<!\\\\)\\{(?<variable>([^{}]|\\{.*\\})*)\\}")
|
||||
regex.compile(r"(?<!\\)\{(?<variable>([^{}]|\{[^}]*\})*)\}")
|
||||
|
||||
var parsed := text.replace('\\{', '{')
|
||||
for result in regex.search_all(text):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue