Scripts "Health Potion & Stone" and "Potion Used" updated

This commit is contained in:
Tercio Jose
2023-01-17 19:11:36 -03:00
parent 764b779813
commit 8025165398
18 changed files with 944 additions and 848 deletions
+6 -4
View File
@@ -1631,14 +1631,16 @@
-- /run local a,b=Details.tooltip.header_statusbar,0.3;a[1]=b;a[2]=b;a[3]=b;a[4]=0.8;
function Details:AddTooltipSpellHeaderText (headerText, headerColor, amount, iconTexture, L, R, T, B, separator)
function Details:AddTooltipSpellHeaderText (headerText, headerColor, amount, iconTexture, L, R, T, B, separator, iconSize)
if (separator and separator == true) then
GameCooltip:AddLine ("", "", nil, nil, 1, 1, 1, 1, 8)
return
end
if (type(iconSize) ~= "number") then
iconSize = 14
end
if (Details.tooltip.show_amount) then
GameCooltip:AddLine (headerText, "x" .. amount .. "", nil, headerColor, 1, 1, 1, .4, Details.tooltip.fontsize_title)
else
@@ -1646,7 +1648,7 @@
end
if (iconTexture) then
GameCooltip:AddIcon (iconTexture, 1, 1, 14, 14, L or 0, R or 1, T or 0, B or 1)
GameCooltip:AddIcon (iconTexture, 1, 1, iconSize, iconSize, L or 0, R or 1, T or 0, B or 1)
end
end