#--------------------------------------------------------------------------
# ● 更新画面
#--------------------------------------------------------------------------
def update
super
if @deck_size > 0
if @prc_appear > 0
@prc_appear += 1
if @prc_appear > 122
@prc_appear = 0
@sprite_effect_type = :appear
elsif @prc_appear > 60
@animation_id = 118 unless animation?
end
else
update_bitmap
end
update_position
setup_new_effect
setup_new_animation
update_effect
else
self.bitmap = nil
@effect_type = nil
end
draw_left_cards
end
#--------------------------------------------------------------------------
# ● 更新源位图(Source Bitmap)
#--------------------------------------------------------------------------
def update_bitmap
new_bitmap = Cache.system("back_POP_left")
if bitmap != new_bitmap
self.bitmap = new_bitmap
end
end
#--------------------------------------------------------------------------
# ● 描绘剩余卡牌
#--------------------------------------------------------------------------
def draw_left_cards
set_handcards #这里获取@deck_size的最新值
self.bitmap.draw_text(text_rect, @deck_size, 1) if self.bitmap
end