#----------------------------------------
# Window_HudStats
#----------------------------------------
class Window_HudSkills < Window_Base
#----------------------------------------
# Object Initialization
#----------------------------------------
def initialize
super(421, 0, 219, 100)
self.contents = Bitmap.new(width - 2, height - 2)
refresh
end
def refresh
self.contents.clear
self.contents.font.color = normal_color
self.contents.font.size = 16
#Fishing
fishlvl = $game_variables[8]
#Cooking
cooklvl = $game_variables[26]
#Hunting
huntlvl = $game_variables[29]
#Alchemy
alclvl = $game_variables[32]
#Agility
agilvl = $game_variables[35]
#-------------------------
#Text coding and placement
#-------------------------
self.contents.draw_text(35, 7, 50, 25, "#{fishlvl}")
self.contents.draw_text(100, 7, 50, 25, "#{cooklvl}")
self.contents.draw_text(165, 7, 50, 25, "#{huntlvl}")
self.contents.draw_text(35, 38, 50, 25, "#{alclvl}")
self.contents.draw_text(100, 38, 50, 25, "#{agilvl}")
#--------------------------
#Image coding and placement
#--------------------------
@bitmap = RPG::Cache.icon("fish.png")
self.contents.blt(7, 4, @bitmap, Rect.new(0, 0, @bitmap.width, @bitmap.height), 160)
@bitmap = RPG::Cache.icon("fo8.png")
self.contents.blt(71, 4, @bitmap, Rect.new(0, 0, @bitmap.width, @bitmap.height), 160)
@bitmap = RPG::Cache.icon("005-weapon05.png")
self.contents.blt(141, 4, @bitmap, Rect.new(0, 0, @bitmap.width, @bitmap.height), 160)
@bitmap = RPG::Cache.icon("skill_022.png")
self.contents.blt(7, 35, @bitmap, Rect.new(0, 0, @bitmap.width, @bitmap.height), 160)
@bitmap = RPG::Cache.icon("020-accessory05.png")
self.contents.blt(71, 35, @bitmap, Rect.new(0, 0, @bitmap.width, @bitmap.height), 160)
end
end