Skip to content

Commit

Permalink
Add frame scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
greven committed Oct 18, 2020
1 parent 924fc32 commit 72765a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local cfg, oUF = ns.cfg, ns.oUF

-- Examples
-- cfg.fontsize = 14 -- The Global Font Size
-- cfg.scale = 1.25 -- The elements Scale
-- cfg.scale = 1.1 -- The elements Scale

-- Compact UI
-- cfg.frames.main.margin = 10
Expand Down
2 changes: 2 additions & 0 deletions oUF_lumen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ function lum:globalStyle(self, type)
self:SetScript("OnEnter", OnEnter)
self:SetScript("OnLeave", OnLeave)

self:SetScale(cfg.scale)

-- HP Bar
self.Health = CreateFrame("StatusBar", nil, self)
self.Health:SetHeight(self.cfg.height - cfg.frames[type].health.margin - self.cfg.power.height)
Expand Down

0 comments on commit 72765a4

Please sign in to comment.