[gd_scene load_steps=5 format=2] [ext_resource path="res://addons/gut/GutScene.gd" type="Script" id=1] [sub_resource type="StyleBoxFlat" id=1] content_margin_left = -1.0 content_margin_right = -1.0 content_margin_top = -1.0 content_margin_bottom = -1.0 bg_color = Color( 0.193863, 0.205501, 0.214844, 1 ) draw_center = true border_width_left = 0 border_width_top = 0 border_width_right = 0 border_width_bottom = 0 border_color = Color( 0.8, 0.8, 0.8, 1 ) border_blend = false corner_radius_top_left = 20 corner_radius_top_right = 20 corner_radius_bottom_right = 0 corner_radius_bottom_left = 0 corner_detail = 8 expand_margin_left = 0.0 expand_margin_right = 0.0 expand_margin_top = 0.0 expand_margin_bottom = 0.0 shadow_color = Color( 0, 0, 0, 0.6 ) shadow_size = 0 anti_aliasing = true anti_aliasing_size = 1 _sections_unfolded = [ "Corner Radius" ] [sub_resource type="StyleBoxFlat" id=2] content_margin_left = -1.0 content_margin_right = -1.0 content_margin_top = -1.0 content_margin_bottom = -1.0 bg_color = Color( 1, 1, 1, 1 ) draw_center = true border_width_left = 0 border_width_top = 0 border_width_right = 0 border_width_bottom = 0 border_color = Color( 0, 0, 0, 1 ) border_blend = false corner_radius_top_left = 5 corner_radius_top_right = 5 corner_radius_bottom_right = 0 corner_radius_bottom_left = 0 corner_detail = 8 expand_margin_left = 0.0 expand_margin_right = 0.0 expand_margin_top = 0.0 expand_margin_bottom = 0.0 shadow_color = Color( 0, 0, 0, 0.6 ) shadow_size = 0 anti_aliasing = true anti_aliasing_size = 1 _sections_unfolded = [ "Border", "Corner Radius" ] [sub_resource type="Theme" id=3] resource_local_to_scene = true Panel/styles/panel = SubResource( 2 ) Panel/styles/panelf = null Panel/styles/panelnc = null _sections_unfolded = [ "Panel", "Panel/colors", "Panel/styles", "Resource" ] [node name="Gut" type="Panel" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 740.0 margin_bottom = 320.0 rect_min_size = Vector2( 740, 250 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 custom_styles/panel = SubResource( 1 ) script = ExtResource( 1 ) _sections_unfolded = [ "Theme", "Transform", "Z Index", "custom_styles" ] [node name="TitleBar" type="Panel" parent="." index="0"] editor/display_folded = true anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 0.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 theme = SubResource( 3 ) _sections_unfolded = [ "Rect", "Theme" ] [node name="Title" type="Label" parent="TitleBar" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 0.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_colors/font_color = Color( 0, 0, 0, 1 ) text = "Gut" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Anchor", "custom_colors", "custom_fonts" ] [node name="Time" type="Label" parent="TitleBar" index="1"] anchor_left = 1.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 0.0 margin_left = -114.0 margin_right = -53.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_colors/font_color = Color( 0, 0, 0, 1 ) text = "9999.99" valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Anchor", "custom_colors" ] [node name="Maximize" type="Button" parent="TitleBar" index="2"] anchor_left = 1.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 0.0 margin_left = -30.0 margin_top = 10.0 margin_right = -6.0 margin_bottom = 30.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 custom_colors/font_color = Color( 0, 0, 0, 1 ) toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "M" flat = true align = 1 _sections_unfolded = [ "Anchor", "custom_colors" ] [node name="ScriptProgress" type="ProgressBar" parent="." index="1"] editor/display_folded = true anchor_left = 0.0 anchor_top = 1.0 anchor_right = 0.0 anchor_bottom = 1.0 margin_left = 70.0 margin_top = -100.0 margin_right = 180.0 margin_bottom = -70.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 0 min_value = 0.0 max_value = 100.0 step = 1.0 page = 0.0 value = 0.0 exp_edit = false rounded = false percent_visible = true [node name="Label" type="Label" parent="ScriptProgress" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = -70.0 margin_right = -10.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Script" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="TestProgress" type="ProgressBar" parent="." index="2"] editor/display_folded = true anchor_left = 0.0 anchor_top = 1.0 anchor_right = 0.0 anchor_bottom = 1.0 margin_left = 70.0 margin_top = -70.0 margin_right = 180.0 margin_bottom = -40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 0 min_value = 0.0 max_value = 100.0 step = 1.0 page = 0.0 value = 0.0 exp_edit = false rounded = false percent_visible = true [node name="Label" type="Label" parent="TestProgress" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = -70.0 margin_right = -10.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Tests" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="TextDisplay" type="Panel" parent="." index="3"] editor/display_folded = true anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_top = 40.0 margin_bottom = -107.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 _sections_unfolded = [ "Anchor", "Grow Direction", "Visibility" ] __meta__ = { "_edit_group_": true } [node name="RichTextLabel" type="TextEdit" parent="TextDisplay" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 text = "" readonly = true highlight_current_line = false syntax_highlighting = true show_line_numbers = false highlight_all_occurrences = false override_selected_font_color = false context_menu_enabled = true smooth_scrolling = true v_scroll_speed = 80.0 hiding_enabled = 0 wrap_lines = false caret_block_mode = false caret_blink = false caret_blink_speed = 0.65 caret_moving_by_right_click = true _sections_unfolded = [ "Anchor", "Caret", "Grow Direction", "Margin", "Visibility", "custom_colors" ] [node name="FocusBlocker" type="Panel" parent="TextDisplay" index="1"] self_modulate = Color( 1, 1, 1, 0 ) anchor_left = 0.0 anchor_top = 0.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_right = -10.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 _sections_unfolded = [ "Anchor", "Visibility" ] [node name="Navigation" type="Panel" parent="." index="4"] editor/display_folded = true self_modulate = Color( 1, 1, 1, 0 ) anchor_left = 0.0 anchor_top = 1.0 anchor_right = 0.0 anchor_bottom = 1.0 margin_left = 220.0 margin_top = -100.0 margin_right = 580.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 _sections_unfolded = [ "Visibility" ] [node name="Previous" type="Button" parent="Navigation" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = -30.0 margin_right = 50.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "<" flat = false align = 1 [node name="Next" type="Button" parent="Navigation" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 230.0 margin_right = 310.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = ">" flat = false align = 1 [node name="Run" type="Button" parent="Navigation" index="2"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 60.0 margin_right = 220.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Run" flat = false align = 1 [node name="CurrentScript" type="Button" parent="Navigation" index="3"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = -30.0 margin_top = 50.0 margin_right = 310.0 margin_bottom = 90.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "res://test/unit/test_gut.gd" flat = false clip_text = true align = 1 [node name="ShowScripts" type="Button" parent="Navigation" index="4"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 320.0 margin_top = 50.0 margin_right = 360.0 margin_bottom = 90.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "..." flat = false align = 1 [node name="LogLevelSlider" type="HSlider" parent="." index="5"] editor/display_folded = true anchor_left = 0.0 anchor_top = 1.0 anchor_right = 0.0 anchor_bottom = 1.0 margin_left = 80.0 margin_top = -40.0 margin_right = 130.0 margin_bottom = -20.0 rect_scale = Vector2( 2, 2 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 0 min_value = 0.0 max_value = 2.0 step = 1.0 page = 0.0 value = 0.0 exp_edit = false rounded = false editable = true tick_count = 3 ticks_on_borders = true focus_mode = 2 _sections_unfolded = [ "Rect" ] [node name="Label" type="Label" parent="LogLevelSlider" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = -35.0 margin_top = 5.0 margin_right = 25.0 margin_bottom = 25.0 rect_scale = Vector2( 0.5, 0.5 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 text = "Log Level" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Rect" ] [node name="ScriptsList" type="ItemList" parent="." index="6"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 1.0 margin_left = 180.0 margin_top = 40.0 margin_right = 620.0 margin_bottom = -108.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = true focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 items = [ ] select_mode = 0 allow_reselect = true icon_mode = 1 fixed_icon_size = Vector2( 0, 0 ) _sections_unfolded = [ "Anchor", "Columns", "Grow Direction", "Icon", "Margin", "Mouse", "Rect", "Size Flags", "Theme", "Visibility", "custom_colors", "custom_constants" ] [node name="ExtraOptions" type="Panel" parent="." index="7"] anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_left = -210.0 margin_top = -246.0 margin_bottom = -106.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 custom_styles/panel = SubResource( 1 ) _sections_unfolded = [ "Anchor", "Visibility" ] [node name="IgnorePause" type="CheckBox" parent="ExtraOptions" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 10.0 margin_top = 10.0 margin_right = 128.0 margin_bottom = 34.0 rect_scale = Vector2( 1.5, 1.5 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = true enabled_focus_mode = 2 shortcut = null group = null text = "Ignore Pauses" flat = false align = 0 _sections_unfolded = [ "Rect" ] [node name="DisableBlocker" type="CheckBox" parent="ExtraOptions" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 10.0 margin_top = 50.0 margin_right = 130.0 margin_bottom = 74.0 rect_scale = Vector2( 1.5, 1.5 ) rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = true enabled_focus_mode = 2 shortcut = null group = null text = "Selectable" flat = false align = 0 _sections_unfolded = [ "Rect", "Size Flags" ] [node name="Copy" type="Button" parent="ExtraOptions" index="2"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 20.0 margin_top = 90.0 margin_right = 200.0 margin_bottom = 130.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Copy" flat = false align = 1 [node name="ResizeHandle" type="Control" parent="." index="8"] anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_left = -40.0 margin_top = -40.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 _sections_unfolded = [ "Anchor", "Grow Direction", "Material", "Visibility" ] [node name="Continue" type="Panel" parent="." index="9"] self_modulate = Color( 1, 1, 1, 0 ) anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 margin_left = -150.0 margin_top = -100.0 margin_right = -30.0 margin_bottom = -10.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 _sections_unfolded = [ "Anchor", "Visibility" ] [node name="Continue" type="Button" parent="Continue" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 50.0 margin_right = 119.0 margin_bottom = 90.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 disabled = true toggle_mode = false enabled_focus_mode = 2 shortcut = null group = null text = "Continue" flat = false align = 1 [node name="ShowExtras" type="Button" parent="Continue" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 50.0 margin_right = 120.0 margin_bottom = 40.0 rect_pivot_offset = Vector2( 35, 20 ) rect_clip_content = false focus_mode = 2 mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 toggle_mode = true enabled_focus_mode = 2 shortcut = null group = null text = "_" flat = false align = 1 _sections_unfolded = [ "Rect" ] [node name="Summary" type="Node2D" parent="." index="10"] editor/display_folded = true position = Vector2( 0, 3 ) _sections_unfolded = [ "Transform" ] [node name="Passing" type="Label" parent="Summary" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_top = 10.0 margin_right = 40.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_colors/font_color = Color( 0, 0, 0, 1 ) text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [node name="Failing" type="Label" parent="Summary" index="1"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 40.0 margin_top = 10.0 margin_right = 80.0 margin_bottom = 24.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_colors/font_color = Color( 0, 0, 0, 1 ) text = "0" align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 [connection signal="mouse_entered" from="TitleBar" to="." method="_on_TitleBar_mouse_entered"] [connection signal="mouse_exited" from="TitleBar" to="." method="_on_TitleBar_mouse_exited"] [connection signal="draw" from="TitleBar/Maximize" to="." method="_on_Maximize_draw"] [connection signal="pressed" from="TitleBar/Maximize" to="." method="_on_Maximize_pressed"] [connection signal="gui_input" from="TextDisplay/RichTextLabel" to="." method="_on_RichTextLabel_gui_input"] [connection signal="gui_input" from="TextDisplay/FocusBlocker" to="." method="_on_FocusBlocker_gui_input"] [connection signal="pressed" from="Navigation/Previous" to="." method="_on_Previous_pressed"] [connection signal="pressed" from="Navigation/Next" to="." method="_on_Next_pressed"] [connection signal="pressed" from="Navigation/Run" to="." method="_on_Run_pressed"] [connection signal="pressed" from="Navigation/CurrentScript" to="." method="_on_CurrentScript_pressed"] [connection signal="pressed" from="Navigation/ShowScripts" to="." method="_on_ShowScripts_pressed"] [connection signal="value_changed" from="LogLevelSlider" to="." method="_on_LogLevelSlider_value_changed"] [connection signal="item_selected" from="ScriptsList" to="." method="_on_ScriptsList_item_selected"] [connection signal="pressed" from="ExtraOptions/IgnorePause" to="." method="_on_IgnorePause_pressed"] [connection signal="toggled" from="ExtraOptions/DisableBlocker" to="." method="_on_DisableBlocker_toggled"] [connection signal="pressed" from="ExtraOptions/Copy" to="." method="_on_Copy_pressed"] [connection signal="mouse_entered" from="ResizeHandle" to="." method="_on_ResizeHandle_mouse_entered"] [connection signal="mouse_exited" from="ResizeHandle" to="." method="_on_ResizeHandle_mouse_exited"] [connection signal="pressed" from="Continue/Continue" to="." method="_on_Continue_pressed"] [connection signal="draw" from="Continue/ShowExtras" to="." method="_on_ShowExtras_draw"] [connection signal="toggled" from="Continue/ShowExtras" to="." method="_on_ShowExtras_toggled"]