- Added support for changing the outline/shadowing of all non-DogTag strings on all modules.

This commit is contained in:
Parnic
2012-09-01 04:22:50 +00:00
parent d18c5465da
commit d2aa315b8d
2 changed files with 36 additions and 2 deletions

View File

@ -382,13 +382,23 @@ function IceElement.prototype:FontFactory(size, frame, font, flags)
fontString = font
end
if not flags then
if self.settings.TextDecoration == "Outline" then
flags = "OUTLINE"
elseif self.settings.TextDecoration == "ThickOutline" then
flags = "THICKOUTLINE"
end
end
if not fontString:SetFont(SML:Fetch('font', self.settings.fontFamily), size, flags) then
fontString:SetFont("Fonts\\FRIZQT__.TTF", size, flags)
end
if not (flags) then
fontString:SetShadowColor(0, 0, 0, 1)
fontString:SetShadowOffset(1, -1)
if self.settings.TextDecoration == "Shadow" then
fontString:SetShadowColor(0, 0, 0, 1)
fontString:SetShadowOffset(1, -1)
end
end
return fontString