From f20bd89dc4a7bf14a88b1effcaa1887b29314525 Mon Sep 17 00:00:00 2001 From: Sophia Pearson Date: Mon, 5 Sep 2022 20:35:53 +0200 Subject: gui: split GUI into Terminal components --- addons/gut/gui/gut_config_gui.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addons/gut/gui/gut_config_gui.gd') diff --git a/addons/gut/gui/gut_config_gui.gd b/addons/gut/gui/gut_config_gui.gd index dc58be4..4f056ff 100644 --- a/addons/gut/gui/gut_config_gui.gd +++ b/addons/gut/gui/gut_config_gui.gd @@ -272,8 +272,8 @@ func get_config_issues(): if(!has_directory): to_return.append('You do not have any directories set.') - if(_cfg_ctrls['prefix'].text == ''): - to_return.append("You must set a Script prefix or GUT won't find any scripts") + if(!_cfg_ctrls['suffix'].text.ends_with('.gd')): + to_return.append("Script suffix must end in '.gd'") return to_return @@ -354,6 +354,8 @@ func set_options(options): _add_title('Misc') _add_value('prefix', options.prefix, 'Script Prefix', "The filename prefix for all test scripts.") + _add_value('suffix', options.suffix, 'Script Suffix', + "Script suffix, including .gd extension. For example '_foo.gd'.") func get_options(base_opts): @@ -404,5 +406,6 @@ func get_options(base_opts): # Misc to_return.prefix = _cfg_ctrls.prefix.text + to_return.suffix = _cfg_ctrls.suffix.text return to_return -- cgit v1.2.3