actually apply settings when the addon loads
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
--[[ $Id: Bartender4.lua 56386 2007-12-01 14:21:40Z nevcairiel $ ]]
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local Bar = Bartender4.Bar.prototype
|
||||
local ActionBar = setmetatable({}, {__index = Bar})
|
||||
@@ -60,6 +60,12 @@ function ActionBar:UpdateButtons(numbuttons)
|
||||
self:UpdateButtonLayout()
|
||||
end
|
||||
|
||||
ActionBar.SetButtons = ActionBar.UpdateButtons
|
||||
|
||||
function ActionBar:GetButtons()
|
||||
return self.config.Buttons
|
||||
end
|
||||
|
||||
-- align the buttons and correct the size of the bar overlay frame
|
||||
function ActionBar:UpdateButtonLayout()
|
||||
local numbuttons = self.config.Buttons
|
||||
|
||||
@@ -153,6 +153,7 @@ local getBar, optGetter, optSetter, optionMap, callFunc
|
||||
do
|
||||
optionMap = {
|
||||
padding = "Padding",
|
||||
buttons = "Buttons",
|
||||
}
|
||||
|
||||
function getBar(id)
|
||||
|
||||
@@ -171,6 +171,8 @@ function Bar:ApplyConfig(config)
|
||||
end
|
||||
self:Lock()
|
||||
self:LoadPosition()
|
||||
self:SetConfigScale()
|
||||
self:SetConfigAlpha()
|
||||
end
|
||||
|
||||
function Bar:Unlock()
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
Action Button Template
|
||||
]]
|
||||
|
||||
--[[ $Id: Bar.lua 56326 2007-11-30 15:11:00Z nevcairiel $ ]]
|
||||
--[[ $Id$ ]]
|
||||
|
||||
local Button = CreateFrame("CheckButton")
|
||||
local Button_MT = {__index = Button}
|
||||
|
||||
Reference in New Issue
Block a user