File tree Expand file tree Collapse file tree 7 files changed +8
-7
lines changed
ui/blocks/utilities/template_editor Expand file tree Collapse file tree 7 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ func get_output_parameters() -> Dictionary:
9292
9393static func parse_display_template (template_string : String ):
9494 # separate the template string by | character
95- # for normal and advanced parameters
95+ # for normal and advanced parameters (advanced parameters are hidden)
9696 var sep = template_string .find ("|" )
9797 var template_string_normal : String
9898 var template_string_advanced : String
@@ -118,6 +118,7 @@ static func parse_display_template(template_string: String):
118118 elif regex_match .names .has ("const_parameter" ):
119119 var parameter_string := regex_match .get_string ("const_parameter" )
120120 items .append ({"const_parameter" : _parse_parameter_format (parameter_string )})
121+
121122 # Parse the advanced part of the template string
122123 for regex_match in _display_template_regex .search_all (template_string_advanced ):
123124 if regex_match .names .has ("label" ):
Original file line number Diff line number Diff line change 11[gd_scene load_steps =4 format =3 uid ="uid://1xfpd777g8pf" ]
22
33[ext_resource type ="Script" path ="res://addons/block_code/ui/blocks/utilities/template_editor/collapsable_settings.gd" id ="1_f0ssn" ]
4- [ext_resource type ="Texture2D" uid ="uid://dw1hpu2eili0q " path ="res://addons/block_code/ui/blocks/utilities/template_editor/plus.png" id ="2_8s057" ]
5- [ext_resource type ="Texture2D" uid ="uid://cggw8t7knh1fr " path ="res://addons/block_code/ui/blocks/utilities/template_editor/minus.png" id ="3_6qcv3" ]
4+ [ext_resource type ="Texture2D" uid ="uid://br7yvjjtbuups " path ="res://addons/block_code/ui/blocks/utilities/template_editor/plus.png" id ="2_8s057" ]
5+ [ext_resource type ="Texture2D" uid ="uid://di3ona3fudjkx " path ="res://addons/block_code/ui/blocks/utilities/template_editor/minus.png" id ="3_6qcv3" ]
66
77[node name ="CollapsableSettings" type ="HBoxContainer" ]
88offset_right = 36.0
@@ -16,7 +16,7 @@ flat = true
1616icon_alignment = 1
1717
1818[node name ="CollapseButton" type ="Button" parent ="." ]
19- visible = false
19+ custom_minimum_size = Vector2 ( 20 , 20 )
2020layout_mode = 2
2121icon = ExtResource ("3_6qcv3" )
2222flat = true
Original file line number Diff line number Diff line change 22
33importer="texture"
44type="CompressedTexture2D"
5- uid="uid://cggw8t7knh1fr "
5+ uid="uid://di3ona3fudjkx "
66path="res://.godot/imported/minus.png-7cbe293178ea19d9e5fbc8ba50c3a01b.ctex"
77metadata={
88"vram_texture": false
Original file line number Diff line number Diff line change 22
33importer="texture"
44type="CompressedTexture2D"
5- uid="uid://dw1hpu2eili0q "
5+ uid="uid://br7yvjjtbuups "
66path="res://.godot/imported/plus.png-415014510d01c9db50069dbfc9e6ab6f.ctex"
77metadata={
88"vram_texture": false
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ func _update_from_format_string():
8989
9090 var match_id = 0
9191 var is_collapsable = false
92- var collapsable : CollapsableSettings = CollapsableSettingsScene .instantiate ()
92+ var collapsable : = CollapsableSettingsScene .instantiate () as CollapsableSettings
9393 for item in BlockDefinition .parse_display_template (format_string ):
9494 var hidden = item .has ("hidden" ) and item .get ("hidden" )
9595 if hidden :
You can’t perform that action at this time.
0 commit comments