From df95cd44296c36afc5dd3a2ed91eb83432e68147 Mon Sep 17 00:00:00 2001 From: Brent Hansen Date: Wed, 1 Oct 2025 21:06:49 -0500 Subject: [PATCH] Working --- addons/gut/diff_tool.gd | 8 ++++++-- addons/gut/gui/GutBottomPanel.tscn | 1 + addons/gut/gut_config.gd | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/gut/diff_tool.gd b/addons/gut/diff_tool.gd index d1b50915..9d4fe5b7 100644 --- a/addons/gut/diff_tool.gd +++ b/addons/gut/diff_tool.gd @@ -40,9 +40,13 @@ func get_total_count(): return _total_count func get_short_summary(): - var text = str(_strutils.truncate_string(str(_value_1), 50), + var gc = GutUtils.GutConfig.new() + gc.load_options(GutUtils.EditorGlobals.editor_run_gut_config_path) + var max_length = gc.options["max_console_output_length"] +# print(max_length) + var text = str(_strutils.truncate_string(str(_value_1), max_length), ' ', _compare.get_compare_symbol(are_equal), ' ', - _strutils.truncate_string(str(_value_2), 50)) + _strutils.truncate_string(str(_value_2), max_length)) if(!are_equal): text += str(' ', get_different_count(), ' of ', get_total_count(), ' ', _desc_things, ' do not match.') diff --git a/addons/gut/gui/GutBottomPanel.tscn b/addons/gut/gui/GutBottomPanel.tscn index 82574908..7dfae3c7 100644 --- a/addons/gut/gui/GutBottomPanel.tscn +++ b/addons/gut/gui/GutBottomPanel.tscn @@ -275,6 +275,7 @@ size_flags_horizontal = 3 size_flags_vertical = 3 [node name="ShortcutDialog" parent="." instance=ExtResource("7_srqj5")] +size = Vector2i(1512, 1571) visible = false [node name="ShellOutOptions" parent="." instance=ExtResource("7_xv2r3")] diff --git a/addons/gut/gut_config.gd b/addons/gut/gut_config.gd index 0d4f9495..6b520cbe 100644 --- a/addons/gut/gut_config.gd +++ b/addons/gut/gut_config.gd @@ -58,6 +58,7 @@ var default_options = { wait_log_delay = .5, gut_on_top = true, + max_console_output_length = 50 }