main.tscn 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://utils/label_fps.gd" type="Script" id=1]
  3. [ext_resource path="res://utils/label_version.gd" type="Script" id=2]
  4. [ext_resource path="res://utils/label_engine.gd" type="Script" id=3]
  5. [ext_resource path="res://tests_menu.gd" type="Script" id=4]
  6. [ext_resource path="res://utils/label_test.gd" type="Script" id=5]
  7. [ext_resource path="res://utils/label_pause.gd" type="Script" id=6]
  8. [ext_resource path="res://utils/container_log.gd" type="Script" id=10]
  9. [ext_resource path="res://utils/scroll_log.gd" type="Script" id=11]
  10. [ext_resource path="res://tests.gd" type="Script" id=12]
  11. [sub_resource type="StyleBoxFlat" id=1]
  12. bg_color = Color( 0, 0, 0, 0.176471 )
  13. [node name="Main" type="Control"]
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. mouse_filter = 2
  17. script = ExtResource( 12 )
  18. __meta__ = {
  19. "_edit_use_anchors_": false
  20. }
  21. [node name="TestsMenu" type="MenuButton" parent="."]
  22. pause_mode = 2
  23. margin_left = 10.0
  24. margin_top = 10.0
  25. margin_right = 125.0
  26. margin_bottom = 30.0
  27. text = "TESTS"
  28. flat = false
  29. script = ExtResource( 4 )
  30. __meta__ = {
  31. "_edit_use_anchors_": false
  32. }
  33. [node name="LabelControls" type="Label" parent="."]
  34. pause_mode = 2
  35. margin_left = 157.0
  36. margin_top = 13.0
  37. margin_right = 646.0
  38. margin_bottom = 27.0
  39. text = "P - TOGGLE PAUSE / R - RESTART / C - TOGGLE COLLISION / F - TOGGLE FULL SCREEN / ESC - QUIT"
  40. __meta__ = {
  41. "_edit_use_anchors_": false
  42. }
  43. [node name="LabelFPS" type="Label" parent="."]
  44. pause_mode = 2
  45. anchor_top = 1.0
  46. anchor_bottom = 1.0
  47. margin_left = 10.0
  48. margin_top = -19.0
  49. margin_right = 50.0
  50. margin_bottom = -5.0
  51. text = "FPS: 0"
  52. script = ExtResource( 1 )
  53. __meta__ = {
  54. "_edit_use_anchors_": false
  55. }
  56. [node name="LabelEngine" type="Label" parent="."]
  57. pause_mode = 2
  58. anchor_top = 1.0
  59. anchor_bottom = 1.0
  60. margin_left = 10.0
  61. margin_top = -39.0
  62. margin_right = 50.0
  63. margin_bottom = -25.0
  64. text = "Physics engine:"
  65. script = ExtResource( 3 )
  66. __meta__ = {
  67. "_edit_use_anchors_": false
  68. }
  69. [node name="LabelVersion" type="Label" parent="."]
  70. pause_mode = 2
  71. anchor_top = 1.0
  72. anchor_bottom = 1.0
  73. margin_left = 10.0
  74. margin_top = -59.0
  75. margin_right = 50.0
  76. margin_bottom = -45.0
  77. text = "Godot Version:"
  78. script = ExtResource( 2 )
  79. __meta__ = {
  80. "_edit_use_anchors_": false
  81. }
  82. [node name="LabelTest" type="Label" parent="."]
  83. pause_mode = 2
  84. anchor_top = 1.0
  85. anchor_bottom = 1.0
  86. margin_left = 10.0
  87. margin_top = -79.0
  88. margin_right = 50.0
  89. margin_bottom = -65.0
  90. text = "Test:"
  91. script = ExtResource( 5 )
  92. __meta__ = {
  93. "_edit_use_anchors_": false
  94. }
  95. [node name="LabelPause" type="Label" parent="."]
  96. pause_mode = 2
  97. anchor_left = 0.5
  98. anchor_top = 1.0
  99. anchor_right = 0.5
  100. anchor_bottom = 1.0
  101. margin_left = -20.0
  102. margin_top = -40.9695
  103. margin_right = 31.0
  104. margin_bottom = -26.9695
  105. text = "PAUSED"
  106. script = ExtResource( 6 )
  107. __meta__ = {
  108. "_edit_use_anchors_": false
  109. }
  110. [node name="PanelLog" type="Panel" parent="."]
  111. pause_mode = 2
  112. anchor_left = 1.0
  113. anchor_top = 1.0
  114. anchor_right = 1.0
  115. anchor_bottom = 1.0
  116. margin_left = -428.0
  117. margin_top = -125.0
  118. custom_styles/panel = SubResource( 1 )
  119. __meta__ = {
  120. "_edit_use_anchors_": false
  121. }
  122. [node name="ButtonClear" type="Button" parent="PanelLog"]
  123. anchor_left = 1.0
  124. anchor_top = 1.0
  125. anchor_right = 1.0
  126. anchor_bottom = 1.0
  127. margin_left = -48.0
  128. margin_top = -25.0
  129. margin_right = -5.0
  130. margin_bottom = -5.0
  131. focus_mode = 0
  132. text = "clear"
  133. __meta__ = {
  134. "_edit_use_anchors_": false
  135. }
  136. [node name="CheckBoxScroll" type="CheckBox" parent="PanelLog"]
  137. anchor_left = 1.0
  138. anchor_top = 1.0
  139. anchor_right = 1.0
  140. anchor_bottom = 1.0
  141. margin_left = -150.0
  142. margin_top = -27.0
  143. margin_right = -54.0
  144. margin_bottom = -3.0
  145. focus_mode = 0
  146. pressed = true
  147. text = "auto-scroll"
  148. __meta__ = {
  149. "_edit_use_anchors_": false
  150. }
  151. [node name="ScrollLog" type="ScrollContainer" parent="PanelLog"]
  152. margin_left = 10.0
  153. margin_top = 5.0
  154. margin_right = 418.0
  155. margin_bottom = 94.0
  156. scroll_horizontal_enabled = false
  157. script = ExtResource( 11 )
  158. __meta__ = {
  159. "_edit_use_anchors_": false
  160. }
  161. auto_scroll = true
  162. [node name="VBoxLog" type="VBoxContainer" parent="PanelLog/ScrollLog"]
  163. margin_right = 408.0
  164. margin_bottom = 89.0
  165. size_flags_horizontal = 3
  166. size_flags_vertical = 3
  167. alignment = 2
  168. script = ExtResource( 10 )
  169. [node name="LabelLog" type="Label" parent="PanelLog/ScrollLog/VBoxLog"]
  170. margin_top = 75.0
  171. margin_right = 408.0
  172. margin_bottom = 89.0
  173. text = "Log start"
  174. valign = 2
  175. autowrap = true
  176. max_lines_visible = 5
  177. __meta__ = {
  178. "_edit_use_anchors_": false
  179. }
  180. [connection signal="pressed" from="PanelLog/ButtonClear" to="PanelLog/ScrollLog/VBoxLog" method="clear"]
  181. [connection signal="toggled" from="PanelLog/CheckBoxScroll" to="PanelLog/ScrollLog" method="set_auto_scroll"]