#============================================================================== # ■ Window_SkillList #============================================================================== class Window_SkillList < Window_Selectable #-------------------------------------------------------------------------- # ◎ スキルの使用コストを描画(エイリアス再定義) #-------------------------------------------------------------------------- def draw_skill_cost(rect, skill) #統合ベーススクリプト導入時の処理 if $kure_integrate_script[:integrate] #ディレイが存在する場合はディレイを表示 if @actor.delay_time(skill) != 0 change_color(power_down_color) draw_text(rect, "Delay " + @actor.delay_time(skill).to_s, 2) return end end x = rect.x + rect.width - 30 y = rect.y #TPコスト if @actor.skill_tp_cost(skill) > 0 change_color(tp_cost_color, enable?(skill)) draw_text(x, y, 30, line_height, @actor.skill_tp_cost(skill), 2) x -= 33 end #MPコスト if @actor.skill_mp_cost(skill) > 0 change_color(mp_cost_color, enable?(skill)) draw_text(x, y, 30, line_height, @actor.skill_mp_cost(skill), 2) x -= 33 end #リミットコスト if skill.limit_cost > 0 change_color(crisis_color, enable?(skill)) draw_text(x, y, 30, line_height, skill.limit_cost, 2) x -= 33 end #HPコスト if $kure_integrate_script[:integrate] && @actor.skill_hp_cost(skill) > 0 change_color(hp_gauge_color1, enable?(skill)) draw_text(x, y, 30, line_height, @actor.skill_hp_cost(skill), 2) end end end