Mercurial > wow > askmrrobot
diff ui/Components.lua @ 11:ece9167c0d1c v1.2.14.0
Localization support, combat log features (wipe command, aura/pet tracking, and realm detection).
author | yellowfive |
---|---|
date | Thu, 10 Jul 2014 12:24:59 -0700 |
parents | ec731d2fe6ba |
children | e77e01abce98 |
line wrap: on
line diff
--- a/ui/Components.lua Wed May 21 00:01:02 2014 -0500 +++ b/ui/Components.lua Thu Jul 10 12:24:59 2014 -0700 @@ -8,7 +8,7 @@ -- The following lines are equivalent to the SimpleClass example: -- Create the table and metatable representing the class. - local new_class = {} + local new_class = { } -- Note that this function uses class_mt as an upvalue, so every instance -- of the class will share the same metatable. @@ -130,33 +130,4 @@ AskMrRobot.sortedSlots[slotNum] = i i = i + 1 end -end - - --- initialize the Frame class (inherit from a dummy frame) -AskMrRobot.FontString = AskMrRobot.inheritsFrom(AskMrRobot.Frame:new():CreateFontString(nil, "ARTWORK", "GameFontNormal")) - --- Frame contructor -function AskMrRobot.FontString:new(parentFrame, name, layer, style, fontSize) - - local o = parentFrame:CreateFontString(name, layer, style) -- create a new frame (if one isn't supplied) - - -- use the fontstring class - setmetatable(o, { __index = AskMrRobot.FontString }) - - if fontSize then - o:SetFontSize(fontSize) - end - - return o -end - -function AskMrRobot.FontString:SetFontSize(fontSize) - local file, _, flags = self:GetFont() - self:SetFont(file, fontSize, flags) -end - -function AskMrRobot.SetFontSize(fontString, fontSize) - local file, _, flags = fontString:GetFont() - fontString:SetFont(file, fontSize, flags) -end +end \ No newline at end of file