#==============================================================================
# 设定结束
#==============================================================================
def self.button_off
OFF || $game_switches[SWI]
end
end
class Window_Message
alias m5_wait_for_one_character wait_for_one_character
def wait_for_one_character
[$game_variables[M5MT20131130::SPE], 0].max.times do |i|
m5_wait_for_one_character
end
end
alias m5_20131130_process_escape_character process_escape_character
def process_escape_character(code, text, pos)
case code.upcase
when 'W'
[obtain_escape_param(text),5].max.times do |i|
update_show_fast
Fiber.yield unless @show_fast || @line_show_fast
end
when 'NW'
([obtain_escape_param(text),0].max).times { Fiber.yield }
else
m5_20131130_process_escape_character(code, text, pos)
end
end
alias m5_20131130_update_show_fast update_show_fast
def update_show_fast
m5_20131130_update_show_fast
return if M5MT20131130.button_off
@show_fast = @show_fast || Input.press?(M5MT20131130::BUT)
end
alias m5_20141218_wait wait
def m5_20141218_wait(duration)
return m5_20141218_wait if M5MT20131130.button_off
[duration,0].max.times do |i|
Fiber.yield unless Input.press?(M5MT20131130::BUT)
end
end
alias m5_20141218_input_pause input_pause
def input_pause
return m5_20141218_input_pause if M5MT20131130.button_off
self.pause = true
wait(10)
Fiber.yield until Input.trigger?(:B) || Input.trigger?(:C)||\
Input.press?(M5MT20131130::BUT)
Input.update
self.pause = false
end
end