class Window_Base < Window
def draw_actor_battler(actor, x, y)
bitmap = RPG::Cache.battler(actor.battler_name, actor.battler_hue)
cw = bitmap.width
ch = bitmap.height
rect = Rect.new(0, 0, cw, ch)
self.contents.blt(x, y, bitmap, rect)
end
end
class Window_StatusTop < Window_Base
def initialize
super(0, 0, 640, 64)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $defaultfonttype
self.contents.font.size = $defaultfontsize
refresh
end
def refresh
self.contents.clear
self.contents.font.color = crisis_color
self.contents.draw_text(272, 0, 128, 32, "Status")
end
end
class Window_Status < Window_Base
def initialize(actor)
super(0, 0, 640, 416)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $defaultfonttype
self.contents.font.size = $defaultfontsize
@actor = actor
refresh
end
def refresh
self.contents.clear
draw_actor_battler(@actor, 160, 128)
draw_actor_graphic(@actor, 32, 96)
draw_actor_name(@actor, 4, 0)
draw_actor_class(@actor, 4 + 144, 0)
draw_actor_level(@actor, 96, 32)
draw_actor_state(@actor, 96, 64)
draw_actor_hp(@actor, 320, 16, 172)
draw_actor_sp(@actor, 320, 48, 172)
draw_actor_parameter(@actor, 320, 80, 0)
draw_actor_parameter(@actor, 320, 112, 1)
draw_actor_parameter(@actor, 320, 144, 2)
draw_actor_parameter(@actor, 320, 176, 3)
draw_actor_parameter(@actor, 320, 208, 4)
draw_actor_parameter(@actor, 320, 240, 5)
draw_actor_parameter(@actor, 320, 272, 6)
self.contents.font.color = system_color
self.contents.draw_text(320, 304, 80, 32, "Exp:")
self.contents.draw_text(320, 338, 80, 32, "Next Level:")
self.contents.font.color = normal_color
self.contents.draw_text(320 + 72, 304, 84, 32, @actor.exp_s, 2)
self.contents.draw_text(320 + 72, 338, 84, 32, @actor.next_rest_exp_s, 2)
self.contents.font.color = system_color
self.contents.draw_text(0, 200, 96, 32, "Equipment:")
draw_item_name($data_weapons[@actor.weapon_id], 0, 224)
draw_item_name($data_armors[@actor.armor1_id], 0, 256)
draw_item_name($data_armors[@actor.armor2_id], 0, 288)
draw_item_name($data_armors[@actor.armor3_id], 0, 320)
draw_item_name($data_armors[@actor.armor4_id], 0, 352)
end
def dummy
self.contents.font.color = system_color
self.contents.draw_text(320, 112, 96, 32, $data_system.words.weapon)
self.contents.draw_text(320, 176, 96, 32, $data_system.words.armor1)
self.contents.draw_text(320, 240, 96, 32, $data_system.words.armor2)
self.contents.draw_text(320, 304, 96, 32, $data_system.words.armor3)
self.contents.draw_text(320, 368, 96, 32, $data_system.words.armor4)
draw_item_name($data_weapons[@actor.weapon_id], 0, 224)
draw_item_name($data_armors[@actor.armor1_id], 0, 256)
draw_item_name($data_armors[@actor.armor2_id], 0, 288)
draw_item_name($data_armors[@actor.armor3_id], 0, 320)
draw_item_name($data_armors[@actor.armor4_id], 0, 352)
end
end