Files
godot-demo-projects/viewport/split_screen_input/split_screen_demo.tscn

74 lines
1.8 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://b6rmkiaj8404h"]
[ext_resource type="Script" uid="uid://db1rlmm1lqfb1" path="res://root.gd" id="1_2itit"]
[ext_resource type="PackedScene" uid="uid://db3nuuj3pqwor" path="res://split_screen.tscn" id="1_mcbdt"]
[node name="Node" type="Node"]
script = ExtResource("1_2itit")
[node name="Panel" type="Panel" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="SplitScreen1" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -375.0
offset_top = -387.0
offset_right = -25.0
offset_bottom = -13.0
grow_horizontal = 2
grow_vertical = 2
[node name="SplitScreen2" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 25.0
offset_top = -387.0
offset_right = 375.0
offset_bottom = -13.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(132, 0)
[node name="SplitScreen3" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -375.0
offset_top = 13.0
offset_right = -25.0
offset_bottom = 387.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(0, 132)
[node name="SplitScreen4" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 25.0
offset_top = 13.0
offset_right = 375.0
offset_bottom = 387.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(132, 132)
[node name="PlayArea" type="SubViewport" parent="."]
render_target_update_mode = 4