Skip to content

Commit

Permalink
allow styling font strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Allez committed Feb 20, 2012
1 parent dedcf18 commit 340455f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/core.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

SlashCmdList["RELOADUI"] = function() ReloadUI() end
SLASH_RELOADUI1 = "/rl"

Expand Down Expand Up @@ -171,8 +170,8 @@ CreateBG = function(parent, noparent)
return bg
end

CreateFS = function(frame, fsize, fstyle, font)
local fstring = frame:CreateFontString(nil, 'OVERLAY')
CreateFS = function(frame, fsize, fstyle, font, fstring)
local fstring = fstring or frame:CreateFontString(nil, 'OVERLAY')
fstring:SetFont(font or UIConfig.general.fonts.font, fsize or UIConfig.general.fonts.size, fstyle or UIConfig.general.fonts.style)
fstring:SetShadowColor(0, 0, 0, 1)
if UIConfig.general.fonts.shadow then
Expand Down

0 comments on commit 340455f

Please sign in to comment.