$VIPArcherScript ||= {};$VIPArcherScript[:message_back] = 20141117
module VIPArcher end
module VIPArcher::MESSAGE
AFFIX_VER = 1
BACK_NAME = "Message"
end
class Window_Message < Window_Base
include VIPArcher::MESSAGE
alias vip_20141117_create_back_bitmap create_back_bitmap
def create_back_bitmap
back_bitmap_name = BACK_NAME + "_" + $game_variables[AFFIX_VER].to_s
begin
@back_bitmap = Cache.system(back_bitmap_name)
rescue
vip_20141117_create_back_bitmap
end
@game_variables = $game_variables[AFFIX_VER]
end
alias vip_20141117_update_back_sprite update_back_sprite
def update_back_sprite
vip_20141117_update_back_sprite
@back_sprite.y = Graphics.height - @back_bitmap.height
end
alias vip_20141117_update_background update_background
def update_background
dispose_back_bitmap
dispose_back_sprite
create_back_bitmap
create_back_sprite
vip_20141117_update_background
end
alias vip_20141117_update update
def update
vip_20141117_update
update_background if @game_variables != $game_variables[AFFIX_VER]
end
end