示例#1
0
        public void PaintWorld(WorldLayer layer)
        {
            var actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.PowerGlobe);

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

            actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.RiftOrb);
            foreach (var actor in actors)
            {
                RiftOrbDecorator.ToggleDecorators <GroundLabelDecorator>(!actor.IsOnScreen); // do not display ground labels when the actor is on the screen
                RiftOrbDecorator.Paint(layer, actor, actor.FloorCoordinate, "rift orb");
            }
        }
示例#2
0
        public void PaintWorld(WorldLayer layer)
        {
            var actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.PowerGlobe);

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

            actors = Hud.Game.Actors.Where(x => x.SnoActor.Kind == ActorKind.RiftOrb);
            foreach (var actor in actors)
            {
                RiftOrbDecorator.ToggleDecorators <GroundLabelDecorator>(!actor.IsOnScreen); // do not display ground labels when the actor is on the screen
                RiftOrbDecorator.Paint(layer, actor, actor.FloorCoordinate, "进度球");
                if (EnableSpeak && (actor.LastSpeak == null) && Hud.LastSpeak.TimerTest(2000) && !actor.IsOnScreen && Hud.Game.SpecialArea == SpecialArea.GreaterRift)
                {
                    Hud.Speak("进度球");
                    actor.LastSpeak = Hud.CreateAndStartWatch();
                }
            }
        }