class Window_SkillList < Window_Selectable
#--------------------------------------------------------------------------
# ● 绘制技能的使用消耗
#--------------------------------------------------------------------------
def draw_skill_cost(rect, skill)
if @actor.skill_tp_cost(skill) > 0
change_color(tp_cost_color)
draw_text(rect, @actor.skill_tp_cost(skill), 2)
rect.x -= 32
end
if @actor.skill_mp_cost(skill) > 0
change_color(mp_cost_color)
draw_text(rect, @actor.skill_mp_cost(skill), 2)
end
end
end
class Window_SkillList < Window_Selectable
#--------------------------------------------------------------------------
# ● 绘制技能的使用消耗
#--------------------------------------------------------------------------
def draw_skill_cost(rect, skill)
if @actor.skill_tp_cost(skill) > 0
change_color(tp_cost_color)
draw_text(rect, @actor.skill_tp_cost(skill), 2)
rect.x -= 32
end
if @actor.skill_mp_cost(skill) > 0
change_color(mp_cost_color)
draw_text(rect, @actor.skill_mp_cost(skill), 2)
end
end
end