File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11extends VBoxContainer
22
3- # Member variables
43var regex = RegEx .new ()
54
5+ func _ready ():
6+ $ Text .set_text ("They asked me \" What's going on \\\" in the manor\\\" ?\" " )
7+ update_expression ($ Expression .text )
8+
9+
610func update_expression (text ):
711 regex .compile (text )
812 update_text ()
913
14+
1015func update_text ():
1116 for child in $ List .get_children ():
1217 child .queue_free ()
@@ -17,7 +22,3 @@ func update_text():
1722 var label = Label .new ()
1823 label .text = result
1924 $ List .add_child (label )
20-
21- func _ready ():
22- $ Text .set_text ("They asked me \" What's going on \\\" in the manor\\\" ?\" " )
23- update_expression ($ Expression .text )
Original file line number Diff line number Diff line change 22
33[ext_resource path ="res://regex.gd" type ="Script" id =1 ]
44
5- [node name ="VBoxContainer " type ="VBoxContainer" ]
5+ [node name ="Regex " type ="VBoxContainer" ]
66anchor_right = 1.0
77anchor_bottom = 1.0
88margin_left = 14.0
You can’t perform that action at this time.
0 commit comments