From eb5210b6e921f35945766cee41cac89a4d79f5f0 Mon Sep 17 00:00:00 2001 From: User5981 <13667502+User5981@users.noreply.github.com> Date: Wed, 20 Feb 2019 08:33:32 +0100 Subject: [PATCH] Fixes blinking target on minimap --- HuntersVengeancePlugin.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/HuntersVengeancePlugin.cs b/HuntersVengeancePlugin.cs index c6d556f..40ec224 100644 --- a/HuntersVengeancePlugin.cs +++ b/HuntersVengeancePlugin.cs @@ -1,6 +1,6 @@ //css_reference C:\v9.0.dll; // https://github.com/User5981/Resu -// Hunter's Vengeance Plugin for TurboHUD Version 19/02/2019 07:11 +// Hunter's Vengeance Plugin for TurboHUD Version 20/02/2019 08:17 using System; using System.Collections.Generic; @@ -98,7 +98,7 @@ public void PaintWorld(WorldLayer layer) if (TargetForAll) { if (Hud.Game.IsInTown) return; - goto TargetOnMinimap; + else goto TargetOnMinimap; } else return; } @@ -110,7 +110,7 @@ public void PaintWorld(WorldLayer layer) OutlineBrush.DrawWorldEllipse(50, -1, Hud.Game.Me.FloorCoordinate); var Smonster = Hud.Game.SelectedMonster2 ?? Hud.Game.SelectedMonster1; - if ((Smonster == null)) return; + if ((Smonster == null)) goto MiniMapCircle; var monsters = Hud.Game.AliveMonsters.Where(monster => monster.Attackable && monster == Smonster); foreach (var monster in monsters) @@ -127,7 +127,7 @@ public void PaintWorld(WorldLayer layer) float visibleY; float MidX = (float)midX; float MidY = (float)midY; - + if (monsterScreenCoordinate.X > MidX) {visibleX = monsterScreenCoordinate.X - 60f;} else {visibleX = monsterScreenCoordinate.X + 50f;} if (monsterScreenCoordinate.Y > MidY) {visibleY = monsterScreenCoordinate.Y - 150f;} else {visibleY = monsterScreenCoordinate.Y + 50f;} @@ -135,10 +135,12 @@ public void PaintWorld(WorldLayer layer) TextFont.DrawText(layout, visibleX, visibleY); } + goto MiniMapCircle; MiniMapCircle: if (Hud.Game.IsInTown) return; ZeiMiniMapDecorator.Paint(layer, null, Hud.Game.Me.FloorCoordinate, null); + goto TargetOnMinimap; TargetOnMinimap: var cursorScreenCoord = Hud.Window.CreateScreenCoordinate(Hud.Window.CursorX, Hud.Window.CursorY);