godot-demo-projects/3d/physics_tests/main.tscn

187 lines
4.4 KiB
Plaintext

[gd_scene load_steps=11 format=3 uid="uid://pfb5u7r1hl8t"]
[ext_resource type="Script" path="res://utils/label_fps.gd" id="1"]
[ext_resource type="Script" path="res://utils/label_version.gd" id="2"]
[ext_resource type="Script" path="res://utils/label_engine.gd" id="3"]
[ext_resource type="Script" path="res://tests_menu.gd" id="4"]
[ext_resource type="Script" path="res://utils/label_test.gd" id="5"]
[ext_resource type="Script" path="res://utils/label_pause.gd" id="6"]
[ext_resource type="Script" path="res://utils/container_log.gd" id="10"]
[ext_resource type="Script" path="res://utils/scroll_log.gd" id="11"]
[ext_resource type="Script" path="res://tests.gd" id="12"]
[sub_resource type="StyleBoxFlat" id="1"]
bg_color = Color(0, 0, 0, 0.176471)
[node name="Main" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
script = ExtResource( "12" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TestsMenu" type="MenuButton" parent="."]
offset_left = 10.0
offset_top = 10.0
offset_right = 125.0
offset_bottom = 30.0
text = "TESTS"
flat = false
script = ExtResource( "4" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelControls" type="Label" parent="."]
offset_left = 157.0
offset_top = 13.0
offset_right = 375.0
offset_bottom = 27.0
text = "P - TOGGLE PAUSE / R - RESTART / C - TOGGLE COLLISION / F - TOGGLE FULL SCREEN / ESC - QUIT"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelFPS" type="Label" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -19.0
offset_right = 50.0
offset_bottom = -5.0
text = "FPS: 0"
script = ExtResource( "1" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelEngine" type="Label" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -39.0
offset_right = 50.0
offset_bottom = -25.0
text = "Physics engine:"
script = ExtResource( "3" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelVersion" type="Label" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -59.0
offset_right = 50.0
offset_bottom = -45.0
text = "Godot Version:"
script = ExtResource( "2" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelTest" type="Label" parent="."]
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = -79.0
offset_right = 50.0
offset_bottom = -65.0
text = "Test:"
script = ExtResource( "5" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelPause" type="Label" parent="."]
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -25.5
offset_top = -25.0
offset_right = 25.5
offset_bottom = -11.0
text = "PAUSED"
script = ExtResource( "6" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelLog" type="Panel" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -428.0
offset_top = -125.0
theme_override_styles/panel = SubResource( "1" )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ButtonClear" type="Button" parent="PanelLog"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -48.0
offset_top = -25.0
offset_right = -5.0
offset_bottom = -5.0
focus_mode = 0
text = "clear"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CheckBoxScroll" type="CheckBox" parent="PanelLog"]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -150.0
offset_top = -27.0
offset_right = -54.0
offset_bottom = -3.0
focus_mode = 0
text = "auto-scroll"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScrollLog" type="ScrollContainer" parent="PanelLog"]
offset_left = 10.0
offset_top = 5.0
offset_right = 418.0
offset_bottom = 94.0
script = ExtResource( "11" )
__meta__ = {
"_edit_use_anchors_": false
}
auto_scroll = true
[node name="VBoxLog" type="VBoxContainer" parent="PanelLog/ScrollLog"]
offset_right = 408.0
offset_bottom = 89.0
size_flags_horizontal = 3
size_flags_vertical = 3
alignment = 2
script = ExtResource( "10" )
[node name="LabelLog" type="Label" parent="PanelLog/ScrollLog/VBoxLog"]
offset_top = 63.0
offset_right = 408.0
offset_bottom = 89.0
text = "Log start"
max_lines_visible = 5
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="PanelLog/ButtonClear" to="PanelLog/ScrollLog/VBoxLog" method="clear"]
[connection signal="toggled" from="PanelLog/CheckBoxScroll" to="PanelLog/ScrollLog" method="set_auto_scroll"]