Skip to content

Commit

Permalink
feat(tooltip, gui): add option to adjust the scaling value of tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Mar 13, 2023
1 parent b22e4f8 commit 5567f04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gui/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ C.CharacterSettings = {
},
Tooltip = {
Enable = true,
Scale = 1,
BackdropAlpha = 0.65,
FollowCursor = false,
Icon = true,
Expand Down
7 changes: 7 additions & 0 deletions src/gui/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,14 @@ GUI.OptionsList = {
'Tooltip',
'HideInCombat',
L['Hide in Combat'],
},
{
3,
'Tooltip',
'Scale',
L['Scale'],
true,
{ 0.5, 2, 0.1 },
},
{},
{ 1, 'Tooltip', 'ShowId', L['Show IDs'] },
Expand Down
2 changes: 1 addition & 1 deletion src/modules/tooltip/style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function TOOLTIP:ReskinTooltip()
return
end

self:SetScale(_G.UIParent:GetScale())
self:SetScale(C.DB.Tooltip.Scale)

if not self.tipStyled then
self:HideBackdrop()
Expand Down

0 comments on commit 5567f04

Please sign in to comment.