#============================================================================== # ■ Window_BattleStatus2 #------------------------------------------------------------------------------ #  バトル画面でパーティメンバーのステータスを表示するウィンドウです。 #============================================================================== class Window_BattleStatus2 < Window_Selectable #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- def initialize super(0, 0, 416, 96) refresh self.active = false end #-------------------------------------------------------------------------- # ● 解放 #-------------------------------------------------------------------------- def dispose super end #-------------------------------------------------------------------------- # ● リフレッシュ #-------------------------------------------------------------------------- def refresh self.contents.clear @item_max = $game_party.members.size for i in 0...@item_max draw_item(i) end end #-------------------------------------------------------------------------- # ● 項目の描画 # index : 項目番号 #-------------------------------------------------------------------------- def draw_item(index) rect = item_rect(index) rect.x += 4 rect.width -= 8 self.contents.font.color = normal_color actor = $game_party.members[index] height = WLH - 4 draw_x = 96 * index self.contents.font.size = 16 draw_actor_state(actor, 4+ draw_x, 0, 48, false) draw_actor_name(actor, 4 + draw_x, 0, 80) draw_actor_hp(actor, 4 + draw_x, height, 80) draw_actor_mp(actor, 4 + draw_x, height*2 , 80) end end