public void PaintTopInGame(ClipState clipState) { if (Hud.Render.UiHidden) { return; } if (clipState != ClipState.BeforeClip) { return; } if (Hud.Game.Me.PortraitUiElement.Rectangle == null) { return; } var uiRect = Hud.Game.Me.PortraitUiElement.Rectangle; int index = Hud.Game.Me.Hero.BattleTag.IndexOf("#"); if (index > 0) { MyAccountName = Hud.Game.Me.Hero.BattleTag.Substring(0, index); } if (Hud.Game.Me.CurrentLevelNormal == 70) { ParagonPercentage = string.Format(CultureInfo.InvariantCulture, "{0:0.##}%", (Hud.Game.Me.CurrentLevelParagonDouble - Hud.Game.Me.CurrentLevelParagon) * 100); } else if (Hud.Game.Me.CurrentLevelNormal < 70) { ParagonPercentage = string.Format(CultureInfo.InvariantCulture, "{0:0.##}%", Convert.ToSingle(Hud.Game.Me.CurrentLevelNormal) / 70 * 100); } if (ParagonPercentageOnTheRight & DisplayParagonPercentage) { ParagonPercentageDecorator.Paint(uiRect.Left + uiRect.Width * 0.71f, uiRect.Top + uiRect.Height * 0.79f, uiRect.Width * 0.48f, uiRect.Height * 0.14f, HorizontalAlign.Center); } else if (DisplayParagonPercentage) { ParagonPercentageDecorator.Paint(uiRect.Left + uiRect.Width * -0.18f, uiRect.Top + uiRect.Height * 0.79f, uiRect.Width * 0.48f, uiRect.Height * 0.14f, HorizontalAlign.Center); } ; foreach (var player in Hud.Game.Players.OrderBy(p => p.PortraitIndex)) { if (player == null || player.PortraitUiElement == null || player.PortraitUiElement.Rectangle == null || player.BattleTagAbovePortrait == null) { continue; } var portrait = player.PortraitUiElement.Rectangle; GRlevel = player.HighestHeroSoloRiftLevel; SheetDPS = player.Offense.SheetDps; EHP = player.Defense.EhpCur; Class = IsZDPS(player) ? "Z " + player.HeroClassDefinition.HeroClass : player.HeroClassDefinition.HeroClass.ToString(); var Nemo = player.Powers.GetBuff(318820); if (Nemo == null || !Nemo.Active) { Nemesis = ""; } else { Nemesis = " [Nemesis]"; } var Unit = player.Powers.GetBuff(318769); if (Unit == null || !Unit.Active) { Unity = ""; } else { Unity = " [Unity]"; } var MyUnit = Hud.Game.Me.Powers.GetBuff(318769); if (player.CurrentLevelNormal == 70 && ShowGreaterRiftMaxLevel) { uint TextNumber = 795145286; if (GRlevel > 0 && GRlevel < 10) { TextNumber = (uint)(795145286 + GRlevel); } else if (GRlevel > 9 && GRlevel < 20) { TextNumber = (uint)(795145309 + GRlevel); } else if (GRlevel > 19 && GRlevel < 30) { TextNumber = (uint)(795145332 + GRlevel); } else if (GRlevel > 29 && GRlevel < 40) { TextNumber = (uint)(795145355 + GRlevel); } else if (GRlevel > 39 && GRlevel < 50) { TextNumber = (uint)(795145378 + GRlevel); } else if (GRlevel > 49 && GRlevel < 60) { TextNumber = (uint)(795145401 + GRlevel); } else if (GRlevel > 59 && GRlevel < 70) { TextNumber = (uint)(795145424 + GRlevel); } else if (GRlevel > 69 && GRlevel < 80) { TextNumber = (uint)(795145447 + GRlevel); } else if (GRlevel > 79 && GRlevel < 90) { TextNumber = (uint)(795145470 + GRlevel); } else if (GRlevel > 89 && GRlevel < 100) { TextNumber = (uint)(795145493 + GRlevel); } else if (GRlevel > 99 && GRlevel < 110) { TextNumber = (uint)(469991699 + GRlevel); } else if (GRlevel > 109 && GRlevel < 120) { TextNumber = (uint)(469991722 + GRlevel); } else if (GRlevel > 119 && GRlevel < 130) { TextNumber = (uint)(469991745 + GRlevel); } else if (GRlevel > 129 && GRlevel < 140) { TextNumber = (uint)(469991768 + GRlevel); } else if (GRlevel > 139 && GRlevel < 150) { TextNumber = (uint)(469991791 + GRlevel); } else if (GRlevel == 150) { TextNumber = 469991964; } if (GRlevel != 0) { var texture = Hud.Texture.GetTexture(TextNumber); if (texture == null) { texture = Hud.Texture.GetTexture(795145286); } var glow = Hud.Texture.GetTexture(1738962956); HighestSoloRiftLevelDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.2f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); glow.Draw(portrait.Left + portrait.Width * 0.17f, portrait.Top + portrait.Height * 0.08f, 60f, 60f, 0.5f); texture.Draw(portrait.Left + portrait.Width * 0.30f, portrait.Top + portrait.Height * 0.14f, 37f, 37f, 1f); } } if (!player.IsMe) { if (Nemo == null || !Nemo.Active) { } else { if (ParagonPercentageOnTheRight) { NemesisDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { NemesisDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; }; } ; if (MyUnit == null || !MyUnit.Active) { } else { if (!player.IsMe) { if (Unit == null || !Unit.Active) { } else { if (Nemo == null || !Nemo.Active) { if (ParagonPercentageOnTheRight) { UnityDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { UnityDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; } else { if (ParagonPercentageOnTheRight) { UnityDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.93f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { UnityDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.93f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; } } } } if (IsZDPS(player)) { ZDPSDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } if (player.AnimationState == AcdAnimationState.Idle && player.CoordinateKnown) { if (player.PortraitIndex == 0) { if (player.FloorCoordinate != Player0pos) { _watch0.Restart(); } int AFK0 = (int)(_watch0.ElapsedMilliseconds / 60000); if (AFK0 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); isAFK0 = true; } else { isAFK0 = false; } } if (player.PortraitIndex == 1) { if (player.FloorCoordinate != Player1pos) { _watch1.Restart(); } int AFK1 = (int)(_watch1.ElapsedMilliseconds / 60000); if (AFK1 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); isAFK1 = true; } else { isAFK1 = false; } } if (player.PortraitIndex == 2) { if (player.FloorCoordinate != Player2pos) { _watch2.Restart(); } int AFK2 = (int)(_watch2.ElapsedMilliseconds / 60000); if (AFK2 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); isAFK2 = true; } else { isAFK2 = false; } } if (player.PortraitIndex == 3) { if (player.FloorCoordinate != Player3pos) { _watch3.Restart(); } int AFK3 = (int)(_watch3.ElapsedMilliseconds / 60000); if (AFK3 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); isAFK3 = true; } else { isAFK3 = false; } } } else { if (player.PortraitIndex == 0) { _watch0.Restart(); } if (player.PortraitIndex == 1) { _watch1.Restart(); } if (player.PortraitIndex == 2) { _watch2.Restart(); } if (player.PortraitIndex == 3) { _watch3.Restart(); } } if (player.PortraitIndex == 0 && LastChatLine.Contains(MyAccountName)) { if (!LastChatLine.Contains("AFK")) { _watch0.Restart(); } if (LastChatLine.Contains("teleported") || LastChatLine.Contains("returning") || LastChatLine.Contains("slain") || LastChatLine.Contains("AFK")) { } else { _NPCwatch0.Restart(); } } else if (player.PortraitIndex == 1 && LastChatLine.Contains(player.BattleTagAbovePortrait)) { if (!LastChatLine.Contains("AFK")) { _watch1.Restart(); } if (LastChatLine.Contains("teleported") || LastChatLine.Contains("returning") || LastChatLine.Contains("slain") || LastChatLine.Contains("AFK")) { } else { _NPCwatch1.Restart(); } } else if (player.PortraitIndex == 2 && LastChatLine.Contains(player.BattleTagAbovePortrait)) { if (!LastChatLine.Contains("AFK")) { _watch2.Restart(); } if (LastChatLine.Contains("teleported") || LastChatLine.Contains("returning") || LastChatLine.Contains("slain") || LastChatLine.Contains("AFK")) { } else { _NPCwatch2.Restart(); } } else if (player.PortraitIndex == 3 && LastChatLine.Contains(player.BattleTagAbovePortrait)) { if (!LastChatLine.Contains("AFK")) { _watch3.Restart(); } if (LastChatLine.Contains("teleported") || LastChatLine.Contains("returning") || LastChatLine.Contains("slain") || LastChatLine.Contains("AFK")) { } else { _NPCwatch3.Restart(); } } if (player.PortraitIndex == 0) { if (!string.IsNullOrEmpty(player.BattleTagAbovePortrait) && player.BattleTagAbovePortrait != NamePlayer0) { _NPCwatch0.Restart(); _watch0.Restart(); } Player0pos = player.FloorCoordinate; int NPC0 = (int)(_NPCwatch0.ElapsedMilliseconds / 60000); if (NPC0 > 3 && !isAFK0 && NPCDeco) { NPCDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } NamePlayer0 = player.BattleTagAbovePortrait; } else if (player.PortraitIndex == 1) { if (!string.IsNullOrEmpty(player.BattleTagAbovePortrait) && player.BattleTagAbovePortrait != NamePlayer1) { _NPCwatch1.Restart(); _watch1.Restart(); } Player1pos = player.FloorCoordinate; int NPC1 = (int)(_NPCwatch1.ElapsedMilliseconds / 60000); if (NPC1 > 3 && !isAFK1 && NPCDeco) { NPCDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } NamePlayer1 = player.BattleTagAbovePortrait; } else if (player.PortraitIndex == 2) { if (!string.IsNullOrEmpty(player.BattleTagAbovePortrait) && player.BattleTagAbovePortrait != NamePlayer2) { _NPCwatch2.Restart(); _watch2.Restart(); } Player2pos = player.FloorCoordinate; int NPC2 = (int)(_NPCwatch2.ElapsedMilliseconds / 60000); if (NPC2 > 3 && !isAFK2 && NPCDeco) { NPCDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } NamePlayer2 = player.BattleTagAbovePortrait; } else if (player.PortraitIndex == 3) { if (!string.IsNullOrEmpty(player.BattleTagAbovePortrait) && player.BattleTagAbovePortrait != NamePlayer3) { _NPCwatch3.Restart(); _watch3.Restart(); } Player3pos = player.FloorCoordinate; int NPC3 = (int)(_NPCwatch3.ElapsedMilliseconds / 60000); if (NPC3 > 3 && !isAFK3 && NPCDeco) { NPCDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.6f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } NamePlayer3 = player.BattleTagAbovePortrait; } } TimeToNextParagon = TimeToParagonLevel(Hud.Game.Me.CurrentLevelParagon + 1, false); }
public void PaintTopInGame(ClipState clipState) { if (Hud.Render.UiHidden) { return; } if (clipState != ClipState.BeforeClip) { return; } if (Hud.Game.Me.PortraitUiElement.Rectangle == null) { return; } var uiRect = Hud.Game.Me.PortraitUiElement.Rectangle; if (Hud.Game.Me.CurrentLevelNormal == 70) { ParagonPercentage = string.Format(CultureInfo.InvariantCulture, "{0:0.##}%", (Hud.Game.Me.CurrentLevelParagonFloat - Hud.Game.Me.CurrentLevelParagon) * 100); } else if (Hud.Game.Me.CurrentLevelNormal < 70) { ParagonPercentage = string.Format(CultureInfo.InvariantCulture, "{0:0.##}%", Convert.ToSingle(Hud.Game.Me.CurrentLevelNormal) / 70 * 100); } if (ParagonPercentageOnTheRight & DisplayParagonPercentage) { ParagonPercentageDecorator.Paint(uiRect.Left + uiRect.Width * 0.71f, uiRect.Top + uiRect.Height * 0.79f, uiRect.Width * 0.48f, uiRect.Height * 0.14f, HorizontalAlign.Center); } else if (DisplayParagonPercentage) { ParagonPercentageDecorator.Paint(uiRect.Left + uiRect.Width * -0.18f, uiRect.Top + uiRect.Height * 0.79f, uiRect.Width * 0.48f, uiRect.Height * 0.14f, HorizontalAlign.Center); } ; foreach (var player in Hud.Game.Players.OrderBy(p => p.PortraitIndex)) { if (player == null) { continue; } if (player.PortraitUiElement == null) { continue; } if (player.PortraitUiElement.Rectangle == null) { continue; } var portrait = player.PortraitUiElement.Rectangle; GRlevel = player.HighestHeroSoloRiftLevel; SheetDPS = player.Offense.SheetDps; EHP = player.Defense.EhpCur; Class = (IsZDPS(player)) ? "Z " + player.HeroClassDefinition.HeroClass : player.HeroClassDefinition.HeroClass.ToString();; var Nemo = player.Powers.GetBuff(318820); if (Nemo == null || !Nemo.Active) { Nemesis = ""; } else { Nemesis = " [Nemesis]"; } var Unit = player.Powers.GetBuff(318769); if (Unit == null || !Unit.Active) { Unity = ""; } else { Unity = " [Unity]"; } var MyUnit = Hud.Game.Me.Powers.GetBuff(318769); if (player.CurrentLevelNormal == 70 && ShowGreaterRiftMaxLevel) { var grk = Hud.Inventory.GetSnoItem(2835237830); var texture = Hud.Texture.GetItemTexture(grk); HighestSoloRiftLevelDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.2f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); texture.Draw(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.17f, 20f, 20f, 1f); } if (!player.IsMe) { if (Nemo == null || !Nemo.Active) { } else { if (ParagonPercentageOnTheRight) { NemesisDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { NemesisDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; }; } ; if (MyUnit == null || !MyUnit.Active) { } else { if (!player.IsMe) { if (Unit == null || !Unit.Active) { } else { if (Nemo == null || !Nemo.Active) { if (ParagonPercentageOnTheRight) { UnityDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { UnityDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.79f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; } else { if (ParagonPercentageOnTheRight) { UnityDecorator.Paint(portrait.Left + portrait.Width * 0.71f, portrait.Top + portrait.Height * 0.93f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); } else { UnityDecorator.Paint(portrait.Left + portrait.Width * -0.18f, portrait.Top + portrait.Height * 0.93f, portrait.Width * 0.28f, portrait.Height * 0.14f, HorizontalAlign.Center); }; } } } } if (IsZDPS(player)) { ZDPSDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } if (player.AnimationState == AcdAnimationState.Idle && player.CoordinateKnown) { if (player.PortraitIndex == 0) { if (player.FloorCoordinate != Player0pos) { _watch0.Restart(); } int AFK0 = (int)(_watch0.ElapsedMilliseconds / 60000); if (AFK0 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } } if (player.PortraitIndex == 1) { if (player.FloorCoordinate != Player1pos) { _watch1.Restart(); } int AFK1 = (int)(_watch1.ElapsedMilliseconds / 60000); if (AFK1 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } } if (player.PortraitIndex == 2) { if (player.FloorCoordinate != Player2pos) { _watch2.Restart(); } int AFK2 = (int)(_watch2.ElapsedMilliseconds / 60000); if (AFK2 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } } if (player.PortraitIndex == 3) { if (player.FloorCoordinate != Player3pos) { _watch3.Restart(); } int AFK3 = (int)(_watch3.ElapsedMilliseconds / 60000); if (AFK3 > 3) { AFKDecorator.Paint(portrait.Left + portrait.Width * 0.26f, portrait.Top + portrait.Height * 0.4f, portrait.Width * 0.5f, portrait.Height * 0.1f, HorizontalAlign.Center); } } } else { if (player.PortraitIndex == 0) { _watch0.Restart(); } if (player.PortraitIndex == 1) { _watch1.Restart(); } if (player.PortraitIndex == 2) { _watch2.Restart(); } if (player.PortraitIndex == 3) { _watch3.Restart(); } } if (player.PortraitIndex == 0) { Player0pos = player.FloorCoordinate; } if (player.PortraitIndex == 1) { Player1pos = player.FloorCoordinate; } if (player.PortraitIndex == 2) { Player2pos = player.FloorCoordinate; } if (player.PortraitIndex == 3) { Player3pos = player.FloorCoordinate; } } }
public void PaintWorld(WorldLayer layer) { var players = Hud.Game.Players.Where(player => !player.IsMe && player.CoordinateKnown && Hud.Game.Me.SnoArea.Sno == player.SnoArea.Sno && (player.HeadStone == null)); foreach (var player in players) { if (player != null && player.IsOnScreen) { if (player.SnoActor != null && (uint)player.SnoActor.Sno != 0 && player.SnoActor.Sno.ToString().Contains("female")) //is female { switch (player.PortraitIndex) { case 1: FemalePlayer1 = true; break; case 2: FemalePlayer2 = true; break; case 3: FemalePlayer3 = true; break; } } else // is male { switch (player.PortraitIndex) { case 1: FemalePlayer1 = false; break; case 2: FemalePlayer2 = false; break; case 3: FemalePlayer3 = false; break; } } } var HeroTexture = Hud.Texture.GetTexture(890155253); if (player.HeroClassDefinition.HeroClass.ToString() == "Barbarian") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(3921484788); } else { HeroTexture = Hud.Texture.GetTexture(1030273087); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "Crusader") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(3742271755); } else { HeroTexture = Hud.Texture.GetTexture(3435775766); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "DemonHunter") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(3785199803); } else { HeroTexture = Hud.Texture.GetTexture(2939779782); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "Monk") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(2227317895); } else { HeroTexture = Hud.Texture.GetTexture(2918463890); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "Necromancer") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(3285997023); } else { HeroTexture = Hud.Texture.GetTexture(473831658); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "WitchDoctor") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(3925954876); } else { HeroTexture = Hud.Texture.GetTexture(1603231623); } } else if (player.HeroClassDefinition.HeroClass.ToString() == "Wizard") { if ((player.PortraitIndex == 1 && !FemalePlayer1) || (player.PortraitIndex == 2 && !FemalePlayer2) || (player.PortraitIndex == 3 && !FemalePlayer3)) { HeroTexture = Hud.Texture.GetTexture(44435619); } else { HeroTexture = Hud.Texture.GetTexture(876580014); } } float PlayersHeadOpacity = 1f; var Elites = Hud.Game.Monsters.Where(M => M.IsAlive && M.Rarity != ActorRarity.Normal && M.Rarity != ActorRarity.RareMinion && M.Rarity != ActorRarity.Hireling && M.FloorCoordinate.XYDistanceTo(player.FloorCoordinate) <= 25); if (Elites.Count() > 0) { PlayersHeadOpacity = 0.20f; } Hud.Render.GetMinimapCoordinates(player.FloorCoordinate.X, player.FloorCoordinate.Y, out float textureX, out float textureY); HeroTexture.Draw(textureX - 11, textureY - 11, 22.3f, 24.1f, PlayersHeadOpacity); if (!DecoratorByClass.TryGetValue(player.HeroClassDefinition.HeroClass, out WorldDecoratorCollection decorator)) { continue; } decorator.Paint(layer, null, player.FloorCoordinate.Offset(NameOffsetX, NameOffsetY, NameOffsetZ), player.BattleTagAbovePortrait); if (IsZDPS(player)) { ZDPSDecorator.Paint(layer, null, player.FloorCoordinate, "Z"); } } if (ShowCompanions && Hud.Game.NumberOfPlayersInGame == 1) { var companions = Hud.Game.Actors.Where(C => C.SnoActor.Sno == ActorSnoEnum._hireling_scoundrel || C.SnoActor.Sno == ActorSnoEnum._hireling_enchantress || C.SnoActor.Sno == ActorSnoEnum._hireling_templar); foreach (var companion in companions) { var CompTexture = Hud.Texture.GetTexture(890155253); if (companion.SnoActor.Sno == ActorSnoEnum._hireling_scoundrel) { CompTexture = Hud.Texture.GetTexture(441912908); // scoundrel } else if (companion.SnoActor.Sno == ActorSnoEnum._hireling_enchantress) { CompTexture = Hud.Texture.GetTexture(2807221403); // enchantress } else if (companion.SnoActor.Sno == ActorSnoEnum._hireling_templar) { CompTexture = Hud.Texture.GetTexture(1094113362); // templar } else { continue; } float CompanionsHeadOpacity = 1f; var Elites = Hud.Game.Monsters.Where(M => M.IsAlive && M.Rarity != ActorRarity.Normal && M.Rarity != ActorRarity.RareMinion && M.Rarity != ActorRarity.Hireling && M.FloorCoordinate.XYDistanceTo(companion.FloorCoordinate) <= 25); if (Elites.Count() > 0) { CompanionsHeadOpacity = 0.20f; } Hud.Render.GetMinimapCoordinates(companion.FloorCoordinate.X, companion.FloorCoordinate.Y, out float textureX, out float textureY); CompTexture.Draw(textureX - 11, textureY - 11, 22.3f, 24.1f, CompanionsHeadOpacity); } } }