Skip to content

Commit 09977d1

Browse files
committed
Connects buttons
1 parent 7788764 commit 09977d1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

addons/block_code/ui/block_canvas/block_canvas.tscn

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ mouse_filter = 2
2424

2525
[node name="Window" type="Control" parent="WindowContainer"]
2626
unique_name_in_owner = true
27-
visible = false
2827
layout_mode = 2
2928
anchors_preset = 0
3029
offset_right = 1152.0
@@ -108,13 +107,14 @@ horizontal_alignment = 1
108107

109108
[node name="SelectedNodeBox" type="VBoxContainer" parent="."]
110109
unique_name_in_owner = true
110+
visible = false
111111
layout_mode = 2
112112
size_flags_vertical = 4
113113

114114
[node name="Label" type="Label" parent="SelectedNodeBox"]
115115
custom_minimum_size = Vector2(200, 0)
116116
layout_mode = 2
117-
text = "Use block coding to create custom behavior and game mechanics for \"ZoomInButton\"."
117+
text = "Use block coding to create custom behavior and game mechanics for \"{node}\"."
118118
horizontal_alignment = 1
119119
autowrap_mode = 2
120120

@@ -152,21 +152,19 @@ unique_name_in_owner = true
152152
layout_mode = 2
153153
size_flags_horizontal = 4
154154
theme_type_variation = &"InspectorActionButton"
155-
disabled = true
156155
text = "Open in Editor"
157156

158157
[node name="ReplaceBlockCodeButton" type="Button" parent="SelectedNodeWithBlockCodeBox/ButtonsBox"]
159158
unique_name_in_owner = true
160159
layout_mode = 2
161160
size_flags_horizontal = 4
162161
theme_type_variation = &"InspectorActionButton"
163-
disabled = true
164162
text = "Override Block Code"
165163
icon = ExtResource("2_710vn")
166164

167-
[connection signal="pressed" from="WindowContainer/Overlay/MarginContainer/ZoomButtons/ZoomOutButton" to="." method="_on_zoom_button_pressed"]
165+
[connection signal="pressed" from="WindowContainer/Overlay/MarginContainer/ZoomButtons/ZoomOutButton" to="." method="_on_zoom_out_button_pressed"]
168166
[connection signal="pressed" from="WindowContainer/Overlay/MarginContainer/ZoomButtons/ZoomButton" to="." method="_on_zoom_button_pressed"]
169-
[connection signal="pressed" from="WindowContainer/Overlay/MarginContainer/ZoomButtons/ZoomInButton" to="." method="_on_zoom_button_pressed"]
167+
[connection signal="pressed" from="WindowContainer/Overlay/MarginContainer/ZoomButtons/ZoomInButton" to="." method="_on_zoom_in_button_pressed"]
170168
[connection signal="pressed" from="SelectedNodeBox/ButtonsBox/AddBlockCodeButton" to="." method="_on_add_block_code_button_pressed"]
171169
[connection signal="pressed" from="SelectedNodeWithBlockCodeBox/ButtonsBox/OpenSceneButton" to="." method="_on_open_scene_button_pressed"]
172170
[connection signal="pressed" from="SelectedNodeWithBlockCodeBox/ButtonsBox/ReplaceBlockCodeButton" to="." method="_on_replace_block_code_button_pressed"]

0 commit comments

Comments
 (0)