end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
x = i * 160
y = 25
actor = $game_party.actors
@actor = actor
testname = @actor.name.to_s
#-------------------------------------------------------------------
bitmap=Bitmap.new("Graphics/menu/Status/#{testname}"+"_a")
src_rect = Rect.new(0, 0, bitmap.width, bitmap.height)
self.contents.blt(x, y, bitmap, src_rect)
#-------------------------------------------------------------------
draw_actor_hp(actor, x + 23, y + 58)
draw_actor_sp(actor, x + 20, y + 72)
end
end
#--------------------------------------------------------------------------
# ● 刷新光标矩形
#--------------------------------------------------------------------------
def update_cursor_rect
if @index < 0
self.cursor_rect.empty
else
self.cursor_rect.set(@index*160, 50, 150, 76)
end
end
end作者: keshom 时间: 2009-7-22 14:07 ★Window_Gold