Files
godot-demo-projects/viewport/dynamic_split_screen/menu.tscn
Benjamin Navarro fe1ccaea77 [3.x] Add a 2D version of the dynamic split screen demo (#762)
* add a 2D version of the dynamic split screen demo

* refactor the dynamic split screen demo

 - both 2D and 3D scenes have the exact same hierarchy
 - a single camera_controller.gd script instead of one per mode
 - the third viewport for 2D mode has been removed
2025-10-02 17:03:12 -07:00

57 lines
1.7 KiB
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://noto_sans_ui_regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://menu.gd" type="Script" id=2]
[sub_resource type="DynamicFont" id=1]
size = 45
font_data = ExtResource( 1 )
[sub_resource type="Theme" id=2]
default_font = SubResource( 1 )
[node name="Menu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
rect_rotation = -0.0105554
theme = SubResource( 2 )
script = ExtResource( 2 )
[node name="CenterContainer" type="CenterContainer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 112.0
margin_top = 152.0
margin_right = 912.0
margin_bottom = 448.0
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
margin_right = 800.0
margin_bottom = 150.0
rect_min_size = Vector2( 800, 150 )
custom_colors/font_color = Color( 0.290196, 0.290196, 0.290196, 1 )
text = "Dynamic Split Screen"
align = 1
valign = 1
[node name="StartButtons" type="VBoxContainer" parent="CenterContainer/VBoxContainer"]
margin_top = 154.0
margin_right = 800.0
margin_bottom = 296.0
[node name="Start2D" type="Button" parent="CenterContainer/VBoxContainer/StartButtons"]
margin_right = 800.0
margin_bottom = 69.0
text = "Start 2D demo"
[node name="Start3D" type="Button" parent="CenterContainer/VBoxContainer/StartButtons"]
margin_top = 73.0
margin_right = 800.0
margin_bottom = 142.0
text = "Start 3D demo"
[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButtons/Start2D" to="." method="_load_2d_demo"]
[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButtons/Start3D" to="." method="_load_3d_demo"]