From 1ce0b60a2656b2919f493d156bc02e43b3ab5534 Mon Sep 17 00:00:00 2001 From: bene1ux Date: Tue, 18 Nov 2025 09:00:42 +0800 Subject: [PATCH] Fix to custom icons (cherry picked from commit e6eab1f5f335053e03d38cdcbb540349019b604e) --- Modules/IconBuilder.cs | 3 ++- Modules/IconRenderer.cs | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Modules/IconBuilder.cs b/Modules/IconBuilder.cs index 49e5032..63b07bf 100644 --- a/Modules/IconBuilder.cs +++ b/Modules/IconBuilder.cs @@ -1,4 +1,4 @@ -using ExileCore.PoEMemory; +using ExileCore.PoEMemory; using ExileCore.PoEMemory.Components; using ExileCore.PoEMemory.MemoryObjects; using ExileCore.Shared.Enums; @@ -547,6 +547,7 @@ private MapIcon CreateIcon(Entity entity) var icon = new MapIcon(entity); icon.Settings = customPathIconSettings; icon.Type = MapIconTypes.CustomPath; + icon.Renderer = MapIconRenderers.Default; icon.Name = entity.RenderName; icon.Show = () => true; DebugCustomIcon(icon); diff --git a/Modules/IconRenderer.cs b/Modules/IconRenderer.cs index c777521..da2ad33 100644 --- a/Modules/IconRenderer.cs +++ b/Modules/IconRenderer.cs @@ -1,4 +1,4 @@ -using DieselTools_ExileAPI; +using DieselTools_ExileAPI; using ExileCore.PoEMemory.Components; using ExileCore.PoEMemory.MemoryObjects; using ExileCore.Shared.Cache; @@ -125,6 +125,8 @@ public void Render() { switch (mapIcon.Renderer) { case MapIconRenderers.Default: iconColor = mapIcon.Hidden() ? mapIcon.Settings.HiddenTint : mapIcon.Settings.Tint; + // icon + Graphics.DrawImage(iconFileName, mapIcon.DrawRect.Value, iconUV, iconColor); // text if (mapIcon.Settings.DrawName) Graphics.DrawText(mapIcon.Name, iconPosition.Translate(0, 0), FontAlign.Center); break;