Exemple #1
0
        public void PaintWorld(WorldLayer layer)
        {
            var percentLife = Hud.Game.Me.Defense.HealthPct;

            if (percentLife <= (float)lifePercentageToDisplayGlobes && percentLife > 0f)
            {
                var actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.HealthGlobe);
                foreach (var actor in actors)
                {
                    // HealthGlobeDecorator.ToggleDecorators<GroundLabelDecorator>(!actor.IsOnScreen); // do not display ground labels when the actor is on the screen
                    HealthGlobeDecorator.Paint(layer, actor, actor.FloorCoordinate, "health globe");
                }
            }
        }
        public void PaintWorld(WorldLayer layer)
        {
            if (!ShowHealthGlobes || !ShowHealthGlobesOnNonBarb && Hud.Game.Me.HeroClassDefinition.HeroClass != HeroClass.Barbarian || Hud.Game.Me.IsInTown)
            {
                return;
            }
            var actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.HealthGlobe);

            foreach (var actor in actors)
            {
                HealthGlobeDecorator.ToggleDecorators <GroundLabelDecorator>(!actor.IsOnScreen); // do not display ground labels when the actor is on the screen
                HealthGlobeDecorator.Paint(layer, actor, actor.FloorCoordinate, "health globe");
            }
        }