comparison Overlay.lua @ 286:77609bfa804e stable

Merge 1.1 beta 8 to stable
author Flick
date Sat, 11 Jun 2011 10:57:00 -0700
parents 36a29870bf34
children
comparison
equal deleted inserted replaced
272:71d1a5e47e72 286:77609bfa804e
1 local addonName, addonTable = ... 1 local _, ns = ...
2 local ReAction = addonTable.ReAction 2 local ReAction = ns.ReAction
3 local L = ReAction.L 3 local L = ReAction.L
4 local LKB = ReAction.LKB 4 local LKB = ReAction.LKB
5 local CreateFrame = CreateFrame 5 local CreateFrame = CreateFrame
6 local InCombatLockdown = InCombatLockdown 6 local InCombatLockdown = InCombatLockdown
7 local floor = math.floor 7 local floor = math.floor
721 end 721 end
722 722
723 723
724 -- export methods to the Bar prototype 724 -- export methods to the Bar prototype
725 Bar.Overlay = { } 725 Bar.Overlay = { }
726 local proto = {__index = Bar.Overlay}
727
726 function Bar.Overlay:New( bar ) 728 function Bar.Overlay:New( bar )
727 return setmetatable( {frame = CreateControls(bar)}, {__index=self} ) 729 return setmetatable( {frame = CreateControls(bar)}, proto )
728 end 730 end
729 731
730 function Bar.Overlay:SetLabel(name) 732 function Bar.Overlay:SetLabel(name)
731 self.frame.labelName = name 733 self.frame.labelName = name
732 UpdateLabelString(self.frame) 734 UpdateLabelString(self.frame)