Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Modules/IconBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ExileCore.PoEMemory;
using ExileCore.PoEMemory;
using ExileCore.PoEMemory.Components;
using ExileCore.PoEMemory.MemoryObjects;
using ExileCore.Shared.Enums;
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion Modules/IconRenderer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using DieselTools_ExileAPI;
using DieselTools_ExileAPI;
using ExileCore.PoEMemory.Components;
using ExileCore.PoEMemory.MemoryObjects;
using ExileCore.Shared.Cache;
Expand Down Expand Up @@ -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;
Expand Down