alias hzhj_old_update_make_tag update
def update
hzhj_old_update_make_tag
if !@character.is_a?(EFS_Battler) and !@character.is_a?(Game_Player)
@tags_sprites.each{|sprite|sprite.visible = false}
else
if show_team_flag?
@team_flag_sprite.visible = true
else
@team_flag_sprite.visible = false
end
# 刷新 标记 可见状态
if show_team_tag?
@team_tag_sprite.visible = true
if @selected
@tags_sprites.each do |sprite|
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height
sprite.z = z
sprite.x = @character.screen_x
#blink_on
shif = @character.is_cal
if @character.ammo>0
sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60
else
sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50
end
sprite.opacity = 255
end#loop
else
# 刷新坐标
@tags_sprites.each do |sprite|
#sprite.zoom_y = 1
sprite.ox = sprite.bitmap.width / 2
sprite.oy = sprite.bitmap.height
sprite.z = z
sprite.x = @character.screen_x
#blink_on
shif = @character.is_cal
if @character.ammo>0
sprite.y = shif ? @character.screen_y-92 : @character.screen_y-60
else
sprite.y = shif ? @character.screen_y-82 : @character.screen_y-50
end
sprite.opacity = 125
end#loop
end #if include
else
@tags_sprites.each{|sprite|sprite.visible = false}
end
end
end
end