# ▽△▽ XRXSv9. BaST-VX.BS4. 横型バトルステータス ▽△▽ # # publish 2010/ 4/17 # update - /21 # #============================================================================== # カスタマイズコマンド #============================================================================== module XRXSV9 # # 上に表示する? # BSonHead = false # # パーティメンバー数に応じて自動縦伸縮する? # BSAutoSizing = true end #============================================================================== # 表示レイアウト #============================================================================== if XRXSV9::BSonHead class Game_Battler def battlestatus_y return 128 end def battlestatus_cp_y return 128 end end class Game_Actor < Game_Battler def battlestatus_offset return 0 end def battlestatus_cp_y return self.battlestatus_y - 30 end def battlestatus_y return 64 + 24 * self.index.to_i end end class Scene_Battle < Scene_Base def battlestatus_offset return 0 end end class Window_BattleStatus < Window_Selectable def initialize super(0, 0, 416, 128) refresh self.active = false end end else class Game_Actor < Game_Battler def battlestatus_cp_y return self.battlestatus_y - 30 end def battlestatus_y return 352 + 24 * self.index.to_i end end end class Game_Actor < Game_Battler def battlestatus_x(window_width = 416) return 32 end def battlestatus_cp_x return self.battlestatus_offset + 114 end end #============================================================================== # バトルーステータスウィンドウ #============================================================================== class Window_BattleStatus < Window_Selectable #-------------------------------------------------------------------------- # ● リフレッシュ #-------------------------------------------------------------------------- def refresh @spacing = 1 @item_max = $game_party.members.size @column_max = 1 if XRXSV9::BSAutoSizing self.height = WLH * [@item_max, 1].max + 32 create_contents else self.contents.clear end for i in 0...@item_max draw_item(i) end end #-------------------------------------------------------------------------- # ● 項目の描画 #-------------------------------------------------------------------------- def draw_item(index) rect = item_rect(index) self.contents.clear_rect(rect) self.contents.font.color = normal_color actor = $game_party.members[index] drawable_width = rect.width - 4 self.contents.blt(2, rect.y, actor.miniface, actor.miniface.rect) rescue nil draw_actor_name(actor, 52, rect.y - 1) draw_actor_state(actor, 146, rect.y, 48) draw_actor_hp(actor, 196, rect.y, 120) draw_actor_mp(actor, 322, rect.y, 60) end #-------------------------------------------------------------------------- # ▼ カーソルの更新 #-------------------------------------------------------------------------- def update_cursor if @index < 0 self.cursor_rect.empty else self.cursor_rect = item_rect(@index) end end end