#==========================================================================
# ** File Window "Shyguy"
#==========================================================================
# by Solstice
# Version 1 [VX]
# January 26th, 2008
#==========================================================================
class Game_System
attr_accessor :gb_shyguystats
end
class Scene_File
alias gamebaker_fileshyguy_writesave write_save_data
def write_save_data(file)
$game_system.gb_shyguystats = [$game_party.members[0].name]
for i in 0...$game_party.members.size
$game_system.gb_shyguystats += [$game_party.members[i].level]
end
gamebaker_fileshyguy_writesave(file)
end
end
class Window_SaveFile
alias gamebaker_fileshyguy_drawchars draw_party_characters
def draw_party_characters(x, y)
begin
actor = @game_system.gb_shyguystats
x += 30
x += 24 if @characters.size == 3
x += 48 if @characters.size == 2
x += 72 if @characters.size == 1
y -= 24
temp = self.contents.font.size
self.contents.font.size = 16
for i in 0...@characters.size
name = @characters[i][0]
index = @characters[i][1]
draw_character(name, index, x + i * 48, y)
self.contents.draw_text(x + i * 48 - 16, 40, 32, 16, actor[i + 1], 1)
end
self.contents.font.size = temp
self.contents.draw_text(0, 34 - WLH, contents.width - 4, WLH, actor[0], 2)
rescue
gamebaker_fileshyguy_drawchars(x,y)
end
end
end