@@ -24,6 +24,7 @@ mouse_filter = 2
2424
2525[node name ="Window" type ="Control" parent ="WindowContainer" ]
2626unique_name_in_owner = true
27+ visible = false
2728layout_mode = 2
2829anchors_preset = 0
2930offset_right = 1152.0
@@ -43,7 +44,9 @@ grow_horizontal = 0
4344grow_vertical = 0
4445mouse_filter = 2
4546
46- [node name ="MarginContainer" type ="MarginContainer" parent ="WindowContainer/Overlay" ]
47+ [node name ="ZoomButtons" type ="HBoxContainer" parent ="WindowContainer/Overlay" ]
48+ unique_name_in_owner = true
49+ visible = false
4750layout_mode = 1
4851anchors_preset = 3
4952anchor_left = 1.0
@@ -55,17 +58,30 @@ offset_top = -40.0
5558grow_horizontal = 0
5659grow_vertical = 0
5760mouse_filter = 2
58- theme_override_constants/margin_left = 4
59- theme_override_constants/margin_top = 4
60- theme_override_constants/margin_right = 4
61- theme_override_constants/margin_bottom = 4
6261
63- [node name ="ZoomButton" type ="Button" parent ="WindowContainer/Overlay/MarginContainer" ]
62+ [node name ="ZoomOutButton" type ="Button" parent ="WindowContainer/Overlay/ZoomButtons" ]
63+ modulate = Color (1 , 1 , 1 , 0.470588 )
64+ custom_minimum_size = Vector2 (25 , 0 )
65+ layout_mode = 2
66+ focus_mode = 0
67+ theme_override_font_sizes/font_size = 24
68+ text = "-"
69+
70+ [node name ="ZoomButton" type ="Button" parent ="WindowContainer/Overlay/ZoomButtons" ]
6471unique_name_in_owner = true
6572modulate = Color (1 , 1 , 1 , 0.470588 )
6673layout_mode = 2
6774focus_mode = 0
6875theme_override_font_sizes/font_size = 24
76+ text = "1.0x"
77+
78+ [node name ="ZoomInButton" type ="Button" parent ="WindowContainer/Overlay/ZoomButtons" ]
79+ modulate = Color (1 , 1 , 1 , 0.470588 )
80+ custom_minimum_size = Vector2 (25 , 0 )
81+ layout_mode = 2
82+ focus_mode = 0
83+ theme_override_font_sizes/font_size = 24
84+ text = "+"
6985
7086[node name ="MouseOverride" type ="MarginContainer" parent ="." ]
7187unique_name_in_owner = true
@@ -85,14 +101,13 @@ horizontal_alignment = 1
85101
86102[node name ="SelectedNodeBox" type ="VBoxContainer" parent ="." ]
87103unique_name_in_owner = true
88- visible = false
89104layout_mode = 2
90105size_flags_vertical = 4
91106
92107[node name ="Label" type ="Label" parent ="SelectedNodeBox" ]
93108custom_minimum_size = Vector2 (200 , 0 )
94109layout_mode = 2
95- text = "Use block coding to create custom behavior and game mechanics for \" {node} \" ."
110+ text = "Use block coding to create custom behavior and game mechanics for \" ZoomOutButton \" ."
96111horizontal_alignment = 1
97112autowrap_mode = 2
98113
@@ -130,17 +145,21 @@ unique_name_in_owner = true
130145layout_mode = 2
131146size_flags_horizontal = 4
132147theme_type_variation = &"InspectorActionButton"
148+ disabled = true
133149text = "Open in Editor"
134150
135151[node name ="ReplaceBlockCodeButton" type ="Button" parent ="SelectedNodeWithBlockCodeBox/ButtonsBox" ]
136152unique_name_in_owner = true
137153layout_mode = 2
138154size_flags_horizontal = 4
139155theme_type_variation = &"InspectorActionButton"
156+ disabled = true
140157text = "Override Block Code"
141158icon = ExtResource ("2_710vn" )
142159
143- [connection signal ="pressed" from ="WindowContainer/Overlay/MarginContainer/ZoomButton" to ="." method ="_on_zoom_button_pressed" ]
160+ [connection signal ="pressed" from ="WindowContainer/Overlay/ZoomButtons/ZoomOutButton" to ="." method ="_on_zoom_out_button_pressed" ]
161+ [connection signal ="pressed" from ="WindowContainer/Overlay/ZoomButtons/ZoomButton" to ="." method ="_on_zoom_button_pressed" ]
162+ [connection signal ="pressed" from ="WindowContainer/Overlay/ZoomButtons/ZoomInButton" to ="." method ="_on_zoom_in_button_pressed" ]
144163[connection signal ="pressed" from ="SelectedNodeBox/ButtonsBox/AddBlockCodeButton" to ="." method ="_on_add_block_code_button_pressed" ]
145164[connection signal ="pressed" from ="SelectedNodeWithBlockCodeBox/ButtonsBox/OpenSceneButton" to ="." method ="_on_open_scene_button_pressed" ]
146165[connection signal ="pressed" from ="SelectedNodeWithBlockCodeBox/ButtonsBox/ReplaceBlockCodeButton" to ="." method ="_on_replace_block_code_button_pressed" ]
0 commit comments