将这段代码插入
class Window_Status < Window_Selectable #-------------------------------------------------------------------------- # ● 绘制能力值 #-------------------------------------------------------------------------- def draw_parameters(x, y) [0,1].each do |i| draw_actor_param(@actor, x, y + line_height * i, i + 2) end draw_actor_param(@actor, x, y + line_height * 2, 6) end end class Window_EquipStatus < Window_Base #-------------------------------------------------------------------------- # ● 刷新 #-------------------------------------------------------------------------- def refresh contents.clear draw_actor_name(@actor, 4, 0) if @actor [0,1,2,3].each do |i| draw_item(0, line_height * (1 + i), i) end draw_item(0, line_height * (1 + 4), 6) end end
class Window_Status < Window_Selectable
#--------------------------------------------------------------------------
# ● 绘制能力值
#--------------------------------------------------------------------------
def draw_parameters(x, y)
[0,1].each do |i|
draw_actor_param(@actor, x, y + line_height * i, i + 2)
end
draw_actor_param(@actor, x, y + line_height * 2, 6)
end
end
class Window_EquipStatus < Window_Base
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_actor_name(@actor, 4, 0) if @actor
[0,1,2,3].each do |i|
draw_item(0, line_height * (1 + i), i)
end
draw_item(0, line_height * (1 + 4), 6)
end
end
|