class Window_EquipStatus < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, window_width, window_height)
@actor = nil
@temp_actor = nil
@hurt = 0
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_actor_name(@actor, 4, 0) if @actor
6.times {|i| draw_item(0, line_height * (1 + i), 2 + i) }
draw_current_param2(0,0) if @actor
end
#--------------------------------------------------------------------------
# ● 绘制總戰力
#--------------------------------------------------------------------------
def draw_current_param2(x, y)
@hurt = 0
6.times{|n| @hurt + @actor.param(2 + n) }
change_color(system_color)
draw_text(x-25, y, self.width, line_height, @hurt.to_s, 2)
end
end
class Window_EquipStatus < Window_Base
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, window_width, window_height)
@actor = nil
@temp_actor = nil
@hurt = 0
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
contents.clear
draw_actor_name(@actor, 4, 0) if @actor
6.times {|i| draw_item(0, line_height * (1 + i), 2 + i) }
draw_current_param2(0,0) if @actor
end
#--------------------------------------------------------------------------
# ● 绘制總戰力
#--------------------------------------------------------------------------
def draw_current_param2(x, y)
@hurt = 0
6.times{|n| @hurt + @actor.param(2 + n) }
change_color(system_color)
draw_text(x-25, y, self.width, line_height, @hurt.to_s, 2)
end
end