mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 03:53:48 +00:00
Updated dialogic
This commit is contained in:
parent
1d11462073
commit
cbb82512ee
483 changed files with 5743 additions and 2177 deletions
|
|
@ -1 +1 @@
|
|||
uid://cebop4iepynvu
|
||||
uid://or77lo7du0ot
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
uid://bylu81d2no1m5
|
||||
uid://bqu863yjcjc8y
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://due48ce7jiudt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bylu81d2no1m5" path="res://addons/dialogic/Modules/Glossary/glossary_editor.gd" id="1_tf3p1"]
|
||||
[ext_resource type="Script" uid="uid://bqu863yjcjc8y" path="res://addons/dialogic/Modules/Glossary/glossary_editor.gd" id="1_tf3p1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cenut3sc5cul0" path="res://addons/dialogic/Modules/Glossary/add-glossary.svg" id="2_0elx7"]
|
||||
|
||||
[sub_resource type="Image" id="Image_2730t"]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
uid://defa11l8ebb1n
|
||||
uid://80elcodyqohb
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
uid://lcdc2gipcdh2
|
||||
uid://787tgkcn11ya
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ func parse_glossary(text: String) -> String:
|
|||
if regex_options.is_empty():
|
||||
continue
|
||||
|
||||
var pattern: String = '(?<=\\W|^)(?<!\\\\)(?<word>' + regex_options + ')(?!])(?=\\W|$)'
|
||||
var pattern: String = r'(?<=\W|^)(?<!\\)(?<word>' + regex_options + r')(?!])(?=\W|$)'
|
||||
|
||||
if entry.get('case_sensitive', def_case_sensitive):
|
||||
regex.compile(pattern)
|
||||
|
|
@ -78,7 +78,7 @@ func parse_glossary(text: String) -> String:
|
|||
color = color_overrides[entry_key].to_html()
|
||||
|
||||
text = regex.sub(text,
|
||||
'[url=' + entry_key + ']' +
|
||||
'[url="' + entry_key + '"]' +
|
||||
'[color=' + color + ']${word}[/color]' +
|
||||
'[/url]',
|
||||
true
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
uid://57up7ahwbwwi
|
||||
uid://drwqxg5amy4u
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue