예제 #1
0
        public void PaintWorld(WorldLayer layer)
        {
            var actors = Hud.Game.Actors;

            foreach (var actor in actors)
            {
                switch (actor.SnoActor.Sno)
                {
                case 223675:
                    FrozenBallDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 4803:
                    MoltenExplosionDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 4804:
                case 224225:
                case 247987:
                    MoltenDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 84608:
                    DesecratorDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 341512:
                    ThunderstormDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 108869:
                case 3865:
                    PlaguedDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 93837:
                    GhomDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 219702:
                case 221225:
                    ArcaneDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 257306:
                    ArcaneSpawnDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case 349774:
                    FrozenPulseDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;
                }
            }
        }
예제 #2
0
        public void PaintWorld(WorldLayer layer)
        {
            foreach (var actor in Hud.Game.Actors)
            {
                switch (actor.SnoActor.Sno)
                {
                case ActorSnoEnum._monsteraffix_frozen_iceclusters:
                    FrozenBallDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monsteraffix_molten_deathstart_proxy:
                    MoltenExplosionDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monsteraffix_molten_deathexplosion_proxy:
                case ActorSnoEnum._monsteraffix_molten_firering:
                    // case 247987:
                    MoltenDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monsteraffix_desecrator_damage_aoe:
                    DesecratorDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._x1_monsteraffix_thunderstorm_impact:
                    ThunderstormDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monsteraffix_plagued_endcloud:
                case ActorSnoEnum._creepmobarm:
                    PlaguedDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._gluttony_gascloud_proxy:
                    GhomDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._monsteraffix_arcaneenchanted_petsweep:
                case ActorSnoEnum._monsteraffix_arcaneenchanted_petsweep_reverse:
                    ArcaneDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._arcaneenchanteddummy_spawn:
                    ArcaneSpawnDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;

                case ActorSnoEnum._x1_monsteraffix_frozenpulse_monster:
                    FrozenPulseDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
                    break;
                }
            }
        }
예제 #3
0
        public void PaintTopInGame(ClipState clipState)
        {
            if (Hud.Render.UiHidden)
            {
                return;
            }
            if (clipState != ClipState.BeforeClip)
            {
                return;
            }
            if ((Hud.Game.MapMode == MapMode.WaypointMap) || (Hud.Game.MapMode == MapMode.ActMap))
            {
                return;
            }

            if (!ShowInTown && Hud.Game.IsInTown)
            {
                return;
            }
            if (!ShowOutOfTown && !Hud.Game.IsInTown)
            {
                return;
            }

            var uiRect = Hud.Render.InGameBottomHudUiElement.Rectangle;

            var w = Hud.Window.Size.Height * 0.017f;
            var h = Hud.Window.Size.Height * 0.014f;

            var x = uiRect.Left + uiRect.Width * 0.09f;
            var y = uiRect.Bottom - h - (Hud.Window.Size.Height / 600);

            EliteDecorator.Paint(x + w * 0, y, w, h, HorizontalAlign.Center);
            PhysicalDecorator.Paint(x + w * 1, y, w, h, HorizontalAlign.Center);
            FireDecorator.Paint(x + w * 2, y, w, h, HorizontalAlign.Center);
            LightningDecorator.Paint(x + w * 3, y, w, h, HorizontalAlign.Center);
            ColdDecorator.Paint(x + w * 4, y, w, h, HorizontalAlign.Center);
            PoisonDecorator.Paint(x + w * 5, y, w, h, HorizontalAlign.Center);
            ArcaneDecorator.Paint(x + w * 6, y, w, h, HorizontalAlign.Center);
            HolyDecorator.Paint(x + w * 7, y, w, h, HorizontalAlign.Center);
        }
예제 #4
0
        public void PaintTopInGame(ClipState clipState)
        {
            if (Hud.Render.UiHidden)
            {
                return;
            }
            if (clipState != ClipState.BeforeClip)
            {
                return;
            }

            if (!ShowInTown && Hud.Game.IsInTown)
            {
                return;
            }
            if (!ShowOutOfTown && !Hud.Game.IsInTown)
            {
                return;
            }

            var uiRect = Hud.Render.GetUiElement("Root.NormalLayer.game_dialog_backgroundScreenPC.game_window_hud_overlay").Rectangle;

            var w = Hud.Window.Size.Height * 0.017f;
            var h = Hud.Window.Size.Height * 0.014f;

            var x = uiRect.Left + uiRect.Width * 0.09f;
            var y = uiRect.Bottom - h - (Hud.Window.Size.Height / 600);

            EliteDecorator.Paint(x + w * 0, y, w, h, HorizontalAlign.Center);
            PhysicalDecorator.Paint(x + w * 1, y, w, h, HorizontalAlign.Center);
            FireDecorator.Paint(x + w * 2, y, w, h, HorizontalAlign.Center);
            LightningDecorator.Paint(x + w * 3, y, w, h, HorizontalAlign.Center);
            ColdDecorator.Paint(x + w * 4, y, w, h, HorizontalAlign.Center);
            PoisonDecorator.Paint(x + w * 5, y, w, h, HorizontalAlign.Center);
            ArcaneDecorator.Paint(x + w * 6, y, w, h, HorizontalAlign.Center);
            HolyDecorator.Paint(x + w * 7, y, w, h, HorizontalAlign.Center);
        }