mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-13 06:42:35 +00:00
25 lines
366 B
Ruby
25 lines
366 B
Ruby
# frozen_string_literal: true
|
|
|
|
class IMICFPS
|
|
class SoundEffect
|
|
class FadeInAndOut < FadeIn
|
|
def setup
|
|
@hang_time = @options[:hang_time] || 0.0
|
|
|
|
super
|
|
end
|
|
|
|
# TODO: Handle hang time
|
|
def ratio
|
|
r = super
|
|
|
|
if r < 0.5
|
|
r * 2
|
|
else
|
|
2.0 - (r * 2)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|