Add embedded Brainwasher/Poison BLP assets, fix GO tracking activation

Convert custom icon PNGs to BLP2 DXT5 with correct header layout
(mipSizes at 0x54). Fix hasActiveTracking() to check g_go_id_tracking
so brainwasher works standalone. Support per-category scale in Lua.
This commit is contained in:
MarcelineVQ
2026-03-08 10:05:41 -07:00
parent d28b6c8e04
commit cd7c867f00
4 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -87,13 +87,13 @@ local NPC_CATEGORIES = {
{ name = "Auctioneer", trackingType = "auctioneer", icon = "Interface\\Minimap\\Tracking\\Auctioneer" },
{ name = "Banker", trackingType = "banker", icon = "Interface\\Minimap\\Tracking\\Banker" },
{ name = "Battle Master", trackingType = "battlemaster", icon = "Interface\\Minimap\\Tracking\\BattleMaster" },
{ name = "Brainwasher", trackingType = "brainwasher", icon = "Interface\\Icons\\INV_Gizmo_01" },
{ name = "Brainwasher", trackingType = "brainwasher", icon = "Interface\\Minimap\\Tracking\\Brainwasher", scale = 1.7 },
{ name = "Class Trainer", trackingType = "trainer", icon = "Interface\\Minimap\\Tracking\\Class",
getFilter = function() return (UnitClass("player")) end },
{ name = "Flight Master", trackingType = "flightmaster", icon = "Interface\\Minimap\\Tracking\\FlightMaster" },
{ name = "Innkeeper", trackingType = "innkeeper", icon = "Interface\\Minimap\\Tracking\\Innkeeper" },
{ name = "Mailbox", trackingType = "mailbox", icon = "Interface\\Minimap\\Tracking\\Mailbox" },
{ name = "Poison Vendor", trackingType = "vendor", icon = "Interface\\Icons\\INV_Potion_19",
{ name = "Poison Vendor", trackingType = "vendor", icon = "Interface\\Minimap\\Tracking\\Poison",
getFilter = function() return getLocaleFilter(POISON_FILTERS) end },
{ name = "Profession Trainer", trackingType = "trainer", icon = "Interface\\Minimap\\Tracking\\Profession",
getExclude = function() return UnitClass("player") end },
@@ -124,7 +124,7 @@ local function updateDllTracking()
local inc = cat.getFilter and cat.getFilter() or nil
local exc = cat.getExclude and cat.getExclude() or nil
if activeNpcCategories[cat.name] then
SetObjectTypeBlip(cat.trackingType, cat.icon, 1.5, inc, exc)
SetObjectTypeBlip(cat.trackingType, cat.icon, cat.scale or 1.5, inc, exc)
else
SetObjectTypeBlip(cat.trackingType, nil, nil, inc, exc)
end
+3
View File
@@ -767,6 +767,9 @@ fn hasActiveTracking() bool {
for (&g_go_tracking) |*entry| {
if (entry.active) return true;
}
for (&g_go_id_tracking) |*entry| {
if (entry.active) return true;
}
return false;
}