#============================================================================== # ■ XP-RGSS-18 スキルBP制 拡張パーツ・BP表示 by Claimh #------------------------------------------------------------------------------ # ・スキル選択画面に消費BPの表示を追加します。 #============================================================================== #============================================================================== # ■ Window_Skill #============================================================================== class Window_Skill < Window_Selectable #-------------------------------------------------------------------------- # ● 項目の描画 # index : 項目番号 #-------------------------------------------------------------------------- def draw_item(index) skill = @data[index] if @actor.skill_can_use?(skill.id) self.contents.font.color = normal_color else self.contents.font.color = disabled_color end x = 4 + index % 2 * (288 + 32) y = index / 2 * 32 rect = Rect.new(x, y, self.width / @column_max - 32, 32) self.contents.fill_rect(rect, Color.new(0, 0, 0, 0)) bitmap = RPG::Cache.icon(skill.icon_name) opacity = self.contents.font.color == normal_color ? 255 : 128 self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity) self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0) #--修正----- # 戦闘時のSP消費なし設定時はSPを表示させない if SysSkill_BP::BATTLE_SP_USE self.contents.draw_text(x + 196, y, 48, 32, skill.sp_cost.to_s, 2) end #----------- #--追加----- self.contents.font.color = crisis_color self.contents.draw_text(x + 232, y, 48, 32, SysSkill_BP.bp_cost(skill.id).to_s, 2) #----------- end end