123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- [gd_scene load_steps=11 format=3 uid="uid://6a0nxwkgf5dq"]
- [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"]
- layout_mode = 3
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- mouse_filter = 2
- script = ExtResource("12")
- [node name="TestsMenu" type="MenuButton" parent="."]
- layout_mode = 0
- offset_left = 10.0
- offset_top = 10.0
- offset_right = 125.0
- offset_bottom = 30.0
- text = "TESTS"
- flat = false
- script = ExtResource("4")
- [node name="LabelControls" type="Label" parent="."]
- layout_mode = 0
- offset_left = 157.0
- offset_top = 13.0
- offset_right = 646.0
- offset_bottom = 27.0
- text = "P - TOGGLE PAUSE / R - RESTART / C - TOGGLE COLLISION / F - TOGGLE FULL SCREEN / ESC - QUIT"
- [node name="LabelFPS" type="Label" parent="."]
- layout_mode = 1
- anchors_preset = 2
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 10.0
- offset_top = -19.0
- offset_right = 50.0
- offset_bottom = -5.0
- grow_vertical = 0
- text = "FPS: 0"
- script = ExtResource("1")
- [node name="LabelEngine" type="Label" parent="."]
- layout_mode = 1
- anchors_preset = 2
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 10.0
- offset_top = -39.0
- offset_right = 50.0
- offset_bottom = -25.0
- grow_vertical = 0
- text = "Physics engine:"
- script = ExtResource("3")
- [node name="LabelVersion" type="Label" parent="."]
- layout_mode = 1
- anchors_preset = 2
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 10.0
- offset_top = -59.0
- offset_right = 50.0
- offset_bottom = -45.0
- grow_vertical = 0
- text = "Godot Version:"
- script = ExtResource("2")
- [node name="LabelTest" type="Label" parent="."]
- layout_mode = 1
- anchors_preset = 2
- anchor_top = 1.0
- anchor_bottom = 1.0
- offset_left = 10.0
- offset_top = -79.0
- offset_right = 50.0
- offset_bottom = -65.0
- grow_vertical = 0
- text = "Test:"
- script = ExtResource("5")
- [node name="LabelPause" type="Label" parent="."]
- modulate = Color(1, 1, 0, 1)
- layout_mode = 1
- anchors_preset = 5
- anchor_left = 0.5
- anchor_right = 0.5
- offset_left = -62.0
- offset_top = 48.0
- offset_right = 62.0
- offset_bottom = 96.0
- grow_horizontal = 2
- theme_override_font_sizes/font_size = 32
- text = "PAUSED"
- script = ExtResource("6")
- [node name="PanelLog" type="Panel" parent="."]
- layout_mode = 1
- anchors_preset = 3
- anchor_left = 1.0
- anchor_top = 1.0
- anchor_right = 1.0
- anchor_bottom = 1.0
- offset_left = -630.0
- offset_top = -251.0
- grow_horizontal = 0
- grow_vertical = 0
- theme_override_styles/panel = SubResource("1")
- [node name="ButtonClear" type="Button" parent="PanelLog"]
- layout_mode = 1
- anchors_preset = 3
- 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
- grow_horizontal = 0
- grow_vertical = 0
- focus_mode = 0
- text = "Clear"
- [node name="CheckBoxScroll" type="CheckButton" parent="PanelLog"]
- layout_mode = 1
- anchors_preset = 3
- anchor_left = 1.0
- anchor_top = 1.0
- anchor_right = 1.0
- anchor_bottom = 1.0
- offset_left = -261.0
- offset_top = -35.0
- offset_right = -62.0
- offset_bottom = -4.0
- grow_horizontal = 0
- grow_vertical = 0
- focus_mode = 0
- text = "Automatic Scrolling"
- [node name="ScrollLog" type="ScrollContainer" parent="PanelLog"]
- layout_mode = 0
- offset_left = 10.0
- offset_top = 5.0
- offset_right = 619.0
- offset_bottom = 210.0
- script = ExtResource("11")
- auto_scroll = true
- [node name="VBoxLog" type="VBoxContainer" parent="PanelLog/ScrollLog"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_vertical = 3
- alignment = 2
- script = ExtResource("10")
- [node name="LabelLog" type="Label" parent="PanelLog/ScrollLog/VBoxLog"]
- layout_mode = 2
- text = "Log start"
- max_lines_visible = 5
- [connection signal="pressed" from="PanelLog/ButtonClear" to="PanelLog/ScrollLog/VBoxLog" method="clear"]
- [connection signal="toggled" from="PanelLog/CheckBoxScroll" to="PanelLog/ScrollLog" method="_on_check_box_scroll_toggled"]
|