Several tooltips now has thicker lines, bigger icons and smooth rounded corners

This commit is contained in:
Tercio Jose
2024-03-07 21:20:08 -03:00
parent c4ee7e89ea
commit c1e1191c07
9 changed files with 191 additions and 138 deletions
+5 -8
View File
@@ -1586,10 +1586,10 @@
GameCooltip:SetOption("TextColorRight", Details.tooltip.fontcolor_right)
GameCooltip:SetOption("TextShadow", Details.tooltip.fontshadow and "OUTLINE")
GameCooltip:SetOption("LeftBorderSize", -5)
GameCooltip:SetOption("RightBorderSize", 5)
GameCooltip:SetOption("RightTextMargin", 0)
GameCooltip:SetOption("VerticalOffset", 9)
GameCooltip:SetOption("LeftBorderSize", -2) --offset between the left border and the left icon, default: 10 + offset
GameCooltip:SetOption("RightBorderSize", 2) --offset between the right border and the right icon, default: -10 + offset
GameCooltip:SetOption("VerticalOffset", 5) --amount of space to leave between the top border and the first line of the tooltip, default: 0
GameCooltip:SetOption("RightTextMargin", 0) --offset between the right text to the right icon, default: -3
GameCooltip:SetOption("AlignAsBlizzTooltip", true)
GameCooltip:SetOption("AlignAsBlizzTooltipFrameHeightOffset", -8)
GameCooltip:SetOption("LineHeightSizeOffset", 4)
@@ -1670,6 +1670,7 @@
end
end
GameCooltip:ShowRoundedCorner()
GameCooltip:ShowCooltip()
end
end
@@ -1843,12 +1844,8 @@
if (not panel) then
panel = CreateFrame("frame", "DetailsEraseDataConfirmation", UIParent, "BackdropTemplate")
panel:SetSize(400, 85)
--panel:SetBackdrop({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16,
--edgeFile = [[Interface\AddOns\Details\images\border_2]], edgeSize = 12})
--panel:SetBackdropColor(0, 0, 0, 0.4)
panel:SetPoint("center", UIParent)
--DetailsFramework:ApplyStandardBackdrop(panel)
DetailsFramework:AddRoundedCornersToFrame(panel, Details.PlayerBreakdown.RoundedCornerPreset)
local LibWindow = LibStub("LibWindow-1.1")