Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
vtcifer authored Oct 6, 2024
1 parent 9dd6fd2 commit a0fb8b9
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions script-watch.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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: {<text to display>:<link command>}
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 "<d cmd='#{$clean_lich_char}#{s.paused? ? 'unpause' : 'pause'} #{s.name}'>#{s.name}</d>"
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: {<text to display>:<link command>}
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 "<d cmd='#{$clean_lich_char}#{s.paused? ? 'unpause' : 'pause'} #{s.name}'>#{s.name}</d>"
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)

Expand Down

0 comments on commit a0fb8b9

Please sign in to comment.