#===============================================================================
# ** Window_Chat (1)
#-------------------------------------------------------------------------------
# Author Me
and Mr.Mo
# Version 1.0
# Date 11-04-06
#===============================================================================
class Window_Chat < Window_Base
#--------------------------------------------------------------------------
# * Initializes chat window.
#--------------------------------------------------------------------------
def initialize
super(0, 416-48-116, 416, 116)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.size = 16
self.opacity = 160
refresh
end
#--------------------------------------------------------------------------
# * Refreshes chat window.
#--------------------------------------------------------------------------
def refresh
$game_temp.chat_refresh = true
self.contents.clear
$game_temp.chat_log.delete_at(0) if $game_temp.chat_log.size > 5
for i in 0..$game_temp.chat_log.size - 1
self.contents.draw_text(0, i * 16 - 8, 640, 32, $game_temp.chat_log[i])
end
end
#--------------------------------------------------------------------------
# * Updates chat window.
#--------------------------------------------------------------------------
def update
# Only refresh when the Chat Changes
refresh if $game_temp.chat_refresh
super
end
end