exp_con = Sprite.new
exp_con.bitmap = Bitmap.new(100, 22)
exp_con.x = 37 #87 - (exp_con.bitmap.width / 2)
exp_con.y = @face.src_rect.height + (exp_con.bitmap.height * 4)
exp_con.z = 101
exp_con.bitmap.fill_rect(0,0,98,18, Color.new(255,255,255))
exp_con.bitmap.fill_rect(2,2,94,14, Color.new(0,0,0))
exp_bar = Sprite.new
exp_bar.bitmap = Bitmap.new(94,14)
exp_bar.x = exp_con.x + 2
exp_bar.y = exp_con.y + 2
exp_bar.z = exp_con.z
exp_bar.bitmap.font.name = ["Centaur", "Tahoma"]
exp_val = $game_party.actors[0].exp
exp_bar.bitmap.clear
exp_barlength = (94 * exp_val) / $game_party.actors[0].rest_exp
exp_color = Color.new(0,0,255)
exp_bar.bitmap.fill_rect(0,0,exp_barlength,20, exp_color)
exp_str = "EXP"
exp_rect = exp_bar.bitmap.text_size(exp_str)
exp_rect.x = (exp_bar.bitmap.width / 2) - (exp_rect.width / 2)
exp_rect.y = (exp_bar.bitmap.height / 2) - (exp_rect.height / 2)
exp_bar.bitmap.font.color = Color.new(0,0,0)
for xo in [-1, 0, 1]
for yo in [-1, 0, 1]
exp_bar.bitmap.draw_text(exp_rect.x + xo, exp_rect.y + yo, exp_rect.width, exp_rect.height, exp_str)
end
end
exp_bar.bitmap.font.color = Color.new(255,255,255)
exp_bar.bitmap.draw_text(exp_rect, exp_str