class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# ● 绘制区域 2
#--------------------------------------------------------------------------
def draw_block2(y)
draw_skills(0, y) #在区域2调用 draw_skills(x, y) 方法,被给x赋值为0。
end
#--------------------------------------------------------------------------
# ● 绘制技能
#--------------------------------------------------------------------------
def draw_skills(x, y) #该方法就是将该人物习得的技能按ID顺序从上倒下纵向排列着描绘出来。
@actor.skills.each_with_index do |item, i|
draw_item_name(item, x, y + line_height * i)
end
end
end
class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# ● 绘制区域 2
#--------------------------------------------------------------------------
def draw_block2(y)
draw_skills(0, y) #在区域2调用 draw_skills(x, y) 方法,被给x赋值为0。
end
#--------------------------------------------------------------------------
# ● 绘制技能
#--------------------------------------------------------------------------
def draw_skills(x, y) #该方法就是将该人物习得的技能按ID顺序从上倒下纵向排列着描绘出来。
@actor.skills.each_with_index do |item, i|
draw_item_name(item, x, y + line_height * i)
end
end
end