From 2863bd7e854e719d873e4063bb491d2ccc07c94d Mon Sep 17 00:00:00 2001 From: Florian Berthold Date: Sun, 24 May 2026 19:52:28 +0200 Subject: [PATCH] fix(minimap-icon): ship BLP, point icon at .blp not .tga MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WoW's texture engine only loads .blp — `SetTexture` (and LibDBIcon) strips any extension and looks for foo.blp. The addon previously passed `minimapicon.tga` and only shipped a .tga, so the engine fell back to the green placeholder icon on the minimap button. Convert assets/minimapicon.tga to a DXT3/BLP2 (alpha-encoding 1, the format proven to decode on the CoA 3.3.5 client — DXT5 doesn't), ship it alongside the .tga, and update the LibDBIcon NewDataObject 'icon' field to reference the .blp. Also normalises the path casing (Interface\\AddOns\\… instead of \\addons\\…) to match every other path in the file. --- Leatrix_Plus.lua | 2 +- assets/minimapicon.blp | Bin 0 -> 2564 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 assets/minimapicon.blp diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 5b553bb..96538b9 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -11384,7 +11384,7 @@ function LeaPlusLC:Player() local miniButton = LibStub("LibDataBroker-1.1"):NewDataObject("Leatrix_Plus", { type = "data source", text = "Leatrix Plus", - icon = "Interface\\addons\\Leatrix_Plus\\assets\\minimapicon.tga", + icon = "Interface\\AddOns\\Leatrix_Plus\\assets\\minimapicon.blp", OnClick = function(self, btn) MiniBtnClickFunc(btn) end, diff --git a/assets/minimapicon.blp b/assets/minimapicon.blp new file mode 100644 index 0000000000000000000000000000000000000000..b0686216f46d9842d627bf7d4d19b877f24ef8be GIT binary patch literal 2564 zcmeHJ-)mcS6hHYPVOLg0<4kmkUu7WW}|!{(h%KTCa2+n z9Vl?1z<~nKq`<~90NdL`Jy;e0ar6{|e{Ftx3{HJmL$dPEg&jQ}ND;$cDhZ0{ellh`+o0z$M zvO)P*k2-Zgm(AkTTXf8Ufq(sDeQ7p>%)no7e3bxyp02^$Bkeol(T1MC z;5{MjhHOLcWv(ae*0J_V0OmT9t_u`jw6*H|N!JO-5y!-Y4(KvRe-3s@?g^|K2qg*zb!=zR1p?_VkQH}wurnM#cMnp&KV z@Ac07fBW_J^iV+W*Dz-J7rD~C?Ut$GQ18CS*y|&`V{)VaPj@TA!$!S`yq^Z@SR;n8 zO7+v{(w{=8PzA6f-aD+&_UgO6URx3K0+UKlvDT+@ec(NY&Q%Ln#N+L8#i&6$D?ed{ zk}iK-2(GtSY&jd97&*ibhR^t