Skip to content

Commit 075f9ee

Browse files
committed
icons size reduced
1 parent fc73ea1 commit 075f9ee

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

addons/block_code/code_generation/block_definition.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func get_output_parameters() -> Dictionary:
9292

9393
static 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"):

addons/block_code/ui/blocks/utilities/template_editor/collapsable_settings.tscn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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"]
88
offset_right = 36.0
@@ -16,7 +16,7 @@ flat = true
1616
icon_alignment = 1
1717

1818
[node name="CollapseButton" type="Button" parent="."]
19-
visible = false
19+
custom_minimum_size = Vector2(20, 20)
2020
layout_mode = 2
2121
icon = ExtResource("3_6qcv3")
2222
flat = true
-14 Bytes
Loading

addons/block_code/ui/blocks/utilities/template_editor/minus.png.import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
importer="texture"
44
type="CompressedTexture2D"
5-
uid="uid://cggw8t7knh1fr"
5+
uid="uid://di3ona3fudjkx"
66
path="res://.godot/imported/minus.png-7cbe293178ea19d9e5fbc8ba50c3a01b.ctex"
77
metadata={
88
"vram_texture": false
-14 Bytes
Loading

addons/block_code/ui/blocks/utilities/template_editor/plus.png.import

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
importer="texture"
44
type="CompressedTexture2D"
5-
uid="uid://dw1hpu2eili0q"
5+
uid="uid://br7yvjjtbuups"
66
path="res://.godot/imported/plus.png-415014510d01c9db50069dbfc9e6ab6f.ctex"
77
metadata={
88
"vram_texture": false

addons/block_code/ui/blocks/utilities/template_editor/template_editor.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)