class Window_Message
#--------------------------------------------------------------------------
# ● 输出一个字符后的等待
#--------------------------------------------------------------------------
@speed_quick = 1
@speed_bace = 5
def wait_for_one_character
update_show_fast
#~ Fiber.yield unless @show_fast || @line_show_fast
unless @show_fast || @line_show_fast
Fiber.yield
return "no"
else
return "yes"
end
end
def process_normal_character(c, pos)
text_width = text_size(c).width
draw_text(pos[:x], pos[:y], text_width * 2, pos[:height], c)
pos[:x] += text_width
if wait_for_one_character == "yes"
wait(@speed_quick)
else
wait(@speed_bace)
end
end
end
class Window_Message
#--------------------------------------------------------------------------
# ● 输出一个字符后的等待
#--------------------------------------------------------------------------
@speed_quick = 1
@speed_bace = 5
def wait_for_one_character
update_show_fast
#~ Fiber.yield unless @show_fast || @line_show_fast
unless @show_fast || @line_show_fast
Fiber.yield
return "no"
else
return "yes"
end
end
def process_normal_character(c, pos)
text_width = text_size(c).width
draw_text(pos[:x], pos[:y], text_width * 2, pos[:height], c)
pos[:x] += text_width
if wait_for_one_character == "yes"
wait(@speed_quick)
else
wait(@speed_bace)
end
end
end