From a0fb8b9da6dbf6bd24567b5aead079bc284b9f3a Mon Sep 17 00:00:00 2001 From: Derek Hoffmann Date: Sun, 6 Oct 2024 14:44:25 -0400 Subject: [PATCH] rubocop --- script-watch.lic | 64 ++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/script-watch.lic b/script-watch.lic index 47dd23af31..45b02f3c66 100644 --- a/script-watch.lic +++ b/script-watch.lic @@ -47,38 +47,38 @@ class ScriptWatch temp_output = temp_list.select { |s| !(@ignored_scripts.include?(s.name)) } .collect { |s| - output = "" - output.concat @script_prefix - if @enable_links - case $frontend - when 'genie' - # use alternate link syntax for genie, so end users don't need to enable it globally - # enabling links generally in genie can cause issus with .NET UI. This link syntax - # bypasses the global setting, which *shouldn't* cause the kind of problems enabling - # links globally in genie can cause - # genie alternate link syntax: {:} - output.concat "{#{s.name}:#{$clean_lich_char}#{s.paused? ? 'unpause' : 'pause'} #{s.name}}" - else - # standard link syntax for Wrayth (and maybe others?) - # in theory frostbite should use this, but there is a bug with multiple links in one - # line with current version at this time - (DD: 2023-08-22) - # v1.16.0-beta was released 2023-02-05 - output.concat "#{s.name}" - end - else - output.concat s.name - end - output.concat @script_postfix - output.concat " (paused)" if s.paused? - - if @display_arguments && !(s.vars.empty?) - output.concat @script_argument_separator - output.concat @argument_prefix - output.concat s.vars.drop(1).join("#{@argument_postfix}#{@argument_separator}#{@argument_prefix}") - output.concat @argument_postfix - end - - output + output = "" + output.concat @script_prefix + if @enable_links + case $frontend + when 'genie' + # use alternate link syntax for genie, so end users don't need to enable it globally + # enabling links generally in genie can cause issus with .NET UI. This link syntax + # bypasses the global setting, which *shouldn't* cause the kind of problems enabling + # links globally in genie can cause + # genie alternate link syntax: {:} + output.concat "{#{s.name}:#{$clean_lich_char}#{s.paused? ? 'unpause' : 'pause'} #{s.name}}" + else + # standard link syntax for Wrayth (and maybe others?) + # in theory frostbite should use this, but there is a bug with multiple links in one + # line with current version at this time - (DD: 2023-08-22) + # v1.16.0-beta was released 2023-02-05 + output.concat "#{s.name}" + end + else + output.concat s.name + end + output.concat @script_postfix + output.concat " (paused)" if s.paused? + + if @display_arguments && !(s.vars.empty?) + output.concat @script_argument_separator + output.concat @argument_prefix + output.concat s.vars.drop(1).join("#{@argument_postfix}#{@argument_separator}#{@argument_prefix}") + output.concat @argument_postfix + end + + output } .join(@script_separator)