88[ext_resource type ="PackedScene" uid ="uid://dad7fkhmsooc6" path ="res://src/ui_widgets/number_edit.tscn" id ="7_wrrfr" ]
99[ext_resource type ="PackedScene" uid ="uid://oltvrf01xrxl" path ="res://src/ui_widgets/zoom_menu.tscn" id ="8_xtdmn" ]
1010[ext_resource type ="Script" uid ="uid://b6pmlbnl76wmm" path ="res://src/ui_parts/viewport.gd" id ="9_4xrk7" ]
11- [ext_resource type ="Script" uid ="uid://rqrxhe8wa6fn" path ="res://src/ui_parts/tab_bar.gd" id ="9_rll1m" ]
1211[ext_resource type ="Shader" uid ="uid://i2y5pyhcgra2" path ="res://src/shaders/zoom_shader.gdshader" id ="10_x7ybk" ]
1312[ext_resource type ="Texture2D" uid ="uid://c68og6bsqt0lb" path ="res://assets/icons/backgrounds/Checkerboard.svg" id ="11_1bm1s" ]
1413[ext_resource type ="Script" uid ="uid://dtplje5mhdmrj" path ="res://src/ui_parts/display_texture.gd" id ="12_qi23s" ]
1514[ext_resource type ="Script" uid ="uid://csqewpxr21ywy" path ="res://src/ui_parts/handles_manager.gd" id ="13_lwhwy" ]
15+ [ext_resource type ="Texture2D" uid ="uid://8x628rb2bnep" path ="res://assets/icons/TabSwitcher.svg" id ="14_ryr8t" ]
1616[ext_resource type ="Script" uid ="uid://cm5033meho5vr" path ="res://src/ui_widgets/camera.gd" id ="15_hevpa" ]
1717
1818[sub_resource type ="ShaderMaterial" id ="ShaderMaterial_kqplg" ]
@@ -33,13 +33,6 @@ grow_vertical = 2
3333theme_override_constants/separation = 0
3434script = ExtResource ("1_oib5g" )
3535
36- [node name ="TabBar" type ="Control" parent ="." ]
37- clip_contents = true
38- custom_minimum_size = Vector2 (0 , 24 )
39- layout_mode = 2
40- size_flags_horizontal = 3
41- script = ExtResource ("9_rll1m" )
42-
4336[node name ="ViewportPanel" type ="PanelContainer" parent ="." ]
4437layout_mode = 2
4538size_flags_vertical = 3
@@ -58,7 +51,7 @@ unique_name_in_owner = true
5851disable_3d = true
5952handle_input_locally = false
6053gui_snap_controls_to_pixels = false
61- size = Vector2i (720 , 1225 )
54+ size = Vector2i (720 , 1249 )
6255size_2d_override_stretch = true
6356render_target_update_mode = 4
6457script = ExtResource ("9_4xrk7" )
@@ -111,7 +104,6 @@ alignment = 2
111104[node name ="LeftMenu" type ="HBoxContainer" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions" ]
112105unique_name_in_owner = true
113106layout_mode = 2
114- size_flags_horizontal = 2
115107theme_override_constants/separation = 5
116108
117109[node name ="Visuals" type ="Button" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/LeftMenu" ]
@@ -155,6 +147,22 @@ max_length = 20
155147min_value = 0.001
156148allow_lower = false
157149
150+ [node name ="spacer" type ="Control" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions" ]
151+ layout_mode = 2
152+ size_flags_horizontal = 3
153+
154+ [node name ="TabSwitcher" type ="Button" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions" ]
155+ layout_mode = 2
156+ focus_mode = 0
157+ mouse_default_cursor_shape = 2
158+ theme_type_variation = &"IconButton"
159+ icon = ExtResource ("14_ryr8t" )
160+ icon_alignment = 1
161+
162+ [node name ="spacer2" type ="Control" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions" ]
163+ layout_mode = 2
164+ size_flags_horizontal = 3
165+
158166[node name ="ZoomMenu" parent ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions" instance =ExtResource ("8_xtdmn" )]
159167unique_name_in_owner = true
160168layout_mode = 2
@@ -197,5 +205,6 @@ horizontal_alignment = 2
197205[connection signal ="pressed" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/LeftMenu/Reference" to ="." method ="_on_reference_pressed" ]
198206[connection signal ="toggled" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/LeftMenu/Snapping/SnapButton" to ="." method ="_on_snap_button_toggled" ]
199207[connection signal ="value_changed" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/LeftMenu/Snapping/SnapNumberEdit" to ="." method ="_on_snap_number_edit_value_changed" ]
208+ [connection signal ="pressed" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/TabSwitcher" to ="." method ="_on_tab_switcher_pressed" ]
200209[connection signal ="zoom_changed" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/ZoomMenu" to ="ViewportPanel/VBoxContainer/ViewportContainer/Viewport" method ="_on_zoom_changed" ]
201210[connection signal ="zoom_reset_pressed" from ="ViewportPanel/VBoxContainer/Toolbar/ViewportOptions/ZoomMenu" to ="ViewportPanel/VBoxContainer/ViewportContainer/Viewport" method ="center_frame" ]
0 commit comments