Mercurial > wow > askmrrobot
comparison ui/FontString.lua @ 17:e77e01abce98
Warlords of Draenor pre-patch
author | Adam tegen <adam.tegen@gmail.com> |
---|---|
date | Mon, 13 Oct 2014 21:28:32 -0500 |
parents | ece9167c0d1c |
children |
comparison
equal
deleted
inserted
replaced
16:9793e8b683d2 | 17:e77e01abce98 |
---|---|
21 function AskMrRobot.FontString:SetFontSize(fontSize) | 21 function AskMrRobot.FontString:SetFontSize(fontSize) |
22 local file, _, flags = self:GetFont() | 22 local file, _, flags = self:GetFont() |
23 self:SetFont(file, fontSize, flags) | 23 self:SetFont(file, fontSize, flags) |
24 end | 24 end |
25 | 25 |
26 function AskMrRobot.FontString:IncreaseFontSize(add) | |
27 local file, fontSize, flags = self:GetFont() | |
28 self:SetFont(file, fontSize + add, flags) | |
29 end | |
30 | |
26 function AskMrRobot.SetFontSize(fontString, fontSize) | 31 function AskMrRobot.SetFontSize(fontString, fontSize) |
27 local file, _, flags = fontString:GetFont() | 32 local file, _, flags = fontString:GetFont() |
28 fontString:SetFont(file, fontSize, flags) | 33 fontString:SetFont(file, fontSize, flags) |
29 end | 34 end |