Make some demos work again, reimport

This commit is contained in:
Bojidar Marinov
2018-01-16 17:45:36 +02:00
parent dabd28cc92
commit 03ba4fc1df
34 changed files with 823 additions and 494 deletions

View File

@@ -12,10 +12,11 @@ func update_text():
child.queue_free()
if regex.is_valid():
var matches = regex.search($Text.get_text())
for result in matches.get_strings():
var label = Label.new()
label.text = result
$List.add_child(label)
if matches != null:
for result in matches.get_strings():
var label = Label.new()
label.text = result
$List.add_child(label)
func _ready():
$Text.set_text("They asked me \"What's going on \\\"in the manor\\\"?\"")

View File

@@ -2,22 +2,22 @@
[ext_resource path="res://regex.gd" type="Script" id=1]
[node name="VBoxContainer" type="VBoxContainer"]
[node name="VBoxContainer" type="VBoxContainer" index="0"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 1.0
anchor_bottom = 1.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0
script = ExtResource( 1 )
_sections_unfolded = [ "Size Flags" ]
[node name="Expression" type="LineEdit" parent="."]
[node name="Expression" type="LineEdit" parent="." index="0"]
anchor_left = 0.0
anchor_top = 0.0
@@ -26,19 +26,21 @@ anchor_bottom = 0.0
margin_right = 1024.0
margin_bottom = 24.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 1
size_flags_horizontal = 1
size_flags_vertical = 1
text = "\"((?:\\\\.|[^\"])*)\""
expand_to_len = false
focus_mode = 2
context_menu_enabled = true
placeholder_alpha = 0.6
caret_blink = false
caret_blink_speed = 0.65
caret_position = 0
_sections_unfolded = [ "Size Flags" ]
[node name="Text" type="TextEdit" parent="."]
[node name="Text" type="TextEdit" parent="." index="1"]
anchor_left = 0.0
anchor_top = 0.0
@@ -49,23 +51,30 @@ margin_right = 1024.0
margin_bottom = 328.0
rect_min_size = Vector2( 0, 300 )
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
text = ""
readonly = false
highlight_current_line = false
syntax_highlighting = false
show_line_numbers = false
highlight_all_occurrences = false
override_selected_font_color = false
context_menu_enabled = true
smooth_scrolling = false
v_scroll_speed = 80.0
hiding_enabled = 0
wrap_lines = false
caret_block_mode = false
caret_blink = false
caret_blink_speed = 0.65
caret_moving_by_right_click = true
_sections_unfolded = [ "Rect", "Size Flags" ]
[node name="List" type="VBoxContainer" parent="."]
[node name="List" type="VBoxContainer" parent="." index="2"]
anchor_left = 0.0
anchor_top = 0.0
@@ -75,8 +84,8 @@ margin_top = 332.0
margin_right = 1024.0
margin_bottom = 332.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 1
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
alignment = 0