class Game_Message
AUTO_FLAG_SW = 1 # オートモードのオン/オフ用スイッチ番号
AUTO_WAIT_VAR = 1 # ウェイト時間参照用の変数番号
def auto_mode?; $game_switches[AUTO_FLAG_SW]; end
def auto_mode_flip; $game_switches[AUTO_FLAG_SW] ^= true; end
def auto_wait; $game_variables[AUTO_WAIT_VAR]; end
end
class Window_Message < Window_Base
alias __old_update update
def update
__old_update
auto_mode_check
end
alias __old_input_pause input_pause
def input_pause
if $game_message.auto_mode?
self.pause = true
wait($game_message.auto_wait)
self.pause = false
else
__old_input_pause
end
end
def auto_mode_check
if Input.trigger?(:L)
Input.update
Sound.play_ok
$game_message.auto_mode_flip
end
end
end
Y2xhc3MgR2FtZV9NZXNzYWdlCiAgQVVUT19GTEFHX1NXICA9IDEgIyDjgqrjg7zjg4jjg6Ljg7zjg4njga7jgqrjg7Mv44Kq44OV55So44K544Kk44OD44OB55Wq5Y+3CiAgQVVUT19XQUlUX1ZBUiA9IDEgIyDjgqbjgqfjgqTjg4jmmYLplpPlj4LnhafnlKjjga7lpInmlbDnlarlj7cKICAKICBkZWYgYXV0b19tb2RlPzsgJGdhbWVfc3dpdGNoZXNbQVVUT19GTEFHX1NXXTsgZW5kCiAgZGVmIGF1dG9fbW9kZV9mbGlwOyAkZ2FtZV9zd2l0Y2hlc1tBVVRPX0ZMQUdfU1ddIF49IHRydWU7IGVuZAogIGRlZiBhdXRvX3dhaXQ7ICRnYW1lX3ZhcmlhYmxlc1tBVVRPX1dBSVRfVkFSXTsgZW5kICAKZW5kCgpjbGFzcyBXaW5kb3dfTWVzc2FnZSA8IFdpbmRvd19CYXNlCiAgYWxpYXMgX19vbGRfdXBkYXRlIHVwZGF0ZQogIGRlZiB1cGRhdGUKICAgIF9fb2xkX3VwZGF0ZQogICAgYXV0b19tb2RlX2NoZWNrCiAgZW5kCgogIGFsaWFzIF9fb2xkX2lucHV0X3BhdXNlIGlucHV0X3BhdXNlCiAgZGVmIGlucHV0X3BhdXNlCiAgICBpZiAkZ2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