feat: increase icon limit to 10, add customizable icon size, and remove obsolete code

This commit is contained in:
Bluewhale1337
2026-08-09 12:11:29 +02:00
parent 048970d1b7
commit f7443fcdf0
8 changed files with 77 additions and 18 deletions
+4 -1
View File
@@ -251,11 +251,14 @@ function HealBot_Action_EnableButton(button)
bar.txt:SetFont(fontName, fontHeight, "")
end
for i = 1, 5 do
local iconSize = HealBot_Config.biconsize[HealBot_Config.Current_Skin] or 12
for i = 1, 10 do
local icon = getglobal(button:GetName() .. "BarIcon" .. i)
if icon then
if HealBot_UnitIcons and HealBot_UnitIcons[unit] and HealBot_UnitIcons[unit][i] then
icon:SetTexture(HealBot_UnitIcons[unit][i])
icon:SetWidth(iconSize)
icon:SetHeight(iconSize)
icon:Show()
else
icon:Hide()