#--------------------------------------------------------------------------
# ? Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.enabled?('Animated Gradient Bars')
#==========================================================================
class Sprite_Battler
#--------------------------------------------------------------------------
alias_method :tibuda_enbar_spr_battler_update, :update
def update
tibuda_enbar_spr_battler_update
if $scene.is_a?(Scene_Battle) && $scene.spriteset.is_a?(Spriteset_Battle)
if @battler.is_a?(Game_Enemy)
if @hpbar.is_a?(Sprite_ActorHpBar)
@hpbar.visible = @battler_visible
@hpbar.update
else
file = Gradient_Bars::Hp_Bar_Graphic[self.class.to_s]
@hpbar = Sprite_ActorHpBar.new(@battler, self.x-48, self.y, 100, 8, file)
@hpbar.z = self.z - 1
end
end
end
end
#--------------------------------------------------------------------------
alias_method :tibuda_enbar_spr_battler_dispose, :dispose
def dispose
tibuda_enbar_spr_battler_dispose
@hpbar.dispose if @hpbar.is_a?(Sprite_ActorHpBar)
end
#--------------------------------------------------------------------------
end
#==========================================================================
#--------------------------------------------------------------------------
# End SDK Enabled Check
#--------------------------------------------------------------------------
end
Please, make this compatible with RTAB!