Vendor gdUnit4 for Godot 4 client testing (D-030). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
135 lines
4.2 KiB
Plaintext
135 lines
4.2 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://bf24pr1xj60o6"]
|
|
|
|
[ext_resource type="Script" path="res://addons/gdUnit4/test/mocker/resources/scenes/TestScene.gd" id="1"]
|
|
[ext_resource type="Texture2D" path="res://addons/gdUnit4/src/core/assets/touch-button.png" id="2_xgglm"]
|
|
|
|
[node name="Control" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
script = ExtResource("1")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
|
|
[node name="test1" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Test 1"
|
|
|
|
[node name="test2" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Test 2"
|
|
|
|
[node name="test3" type="Button" parent="VBoxContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
text = "Test 3"
|
|
|
|
[node name="PanelContainer" type="TabContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
current_tab = 0
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/PanelContainer"]
|
|
layout_mode = 2
|
|
metadata/_tab_index = 0
|
|
|
|
[node name="Panel1" type="ColorRect" parent="VBoxContainer/PanelContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/PanelContainer/HBoxContainer/Panel1"]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 14.0
|
|
grow_horizontal = 2
|
|
text = "Panel 1"
|
|
|
|
[node name="Panel2" type="ColorRect" parent="VBoxContainer/PanelContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/PanelContainer/HBoxContainer/Panel2"]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 14.0
|
|
grow_horizontal = 2
|
|
text = "Panel 2"
|
|
|
|
[node name="Panel3" type="ColorRect" parent="VBoxContainer/PanelContainer/HBoxContainer"]
|
|
custom_minimum_size = Vector2(100, 0)
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/PanelContainer/HBoxContainer/Panel3"]
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_bottom = 14.0
|
|
grow_horizontal = 2
|
|
text = "Panel 3"
|
|
|
|
[node name="Line2D" type="Line2D" parent="VBoxContainer"]
|
|
points = PackedVector2Array(0, 0, 20, 0)
|
|
width = 30.0
|
|
default_color = Color(1, 0.0509804, 0.192157, 1)
|
|
|
|
[node name="Line2D2" type="Line2D" parent="VBoxContainer"]
|
|
points = PackedVector2Array(20, 0, 40, 0)
|
|
width = 30.0
|
|
default_color = Color(0.0392157, 1, 0.278431, 1)
|
|
|
|
[node name="Line2D3" type="Line2D" parent="VBoxContainer"]
|
|
points = PackedVector2Array(40, 0, 60, 0)
|
|
width = 30.0
|
|
default_color = Color(1, 0.0392157, 0.247059, 1)
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Touch1" type="TouchScreenButton" parent="CanvasLayer"]
|
|
unique_name_in_owner = true
|
|
position = Vector2(643, 295)
|
|
texture_normal = ExtResource("2_xgglm")
|
|
texture_pressed = ExtResource("2_xgglm")
|
|
|
|
[node name="Button" type="Button" parent="CanvasLayer"]
|
|
custom_minimum_size = Vector2(200, 80)
|
|
offset_left = 923.0
|
|
offset_top = 529.0
|
|
offset_right = 1123.0
|
|
offset_bottom = 609.0
|
|
text = "Exit"
|
|
|
|
[node name="TextInput" type="LineEdit" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 0
|
|
offset_left = 694.0
|
|
offset_top = 189.0
|
|
offset_right = 1020.0
|
|
offset_bottom = 268.0
|
|
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/test1" to="." method="_on_test_pressed" binds= [1]]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/test2" to="." method="_on_test_pressed" binds= [2]]
|
|
[connection signal="pressed" from="VBoxContainer/HBoxContainer/test3" to="." method="_on_test_pressed" binds= [3]]
|
|
[connection signal="pressed" from="CanvasLayer/Touch1" to="." method="_on_touch_1_pressed"]
|
|
[connection signal="released" from="CanvasLayer/Touch1" to="." method="_on_touch_1_released"]
|
|
[connection signal="pressed" from="CanvasLayer/Button" to="." method="_on_exit_pressed"]
|