some svn keywords

This commit is contained in:
Hendrik Leppkes
2008-05-03 11:13:27 +00:00
parent d458a13d11
commit 2f1a47d56d
3 changed files with 19 additions and 19 deletions
+17 -17
View File
@@ -148,23 +148,6 @@ function BT4ActionBars:UpdateButtons(force)
end
end
function BT4ActionBars:GetAll()
return pairs(self.actionbars)
end
function BT4ActionBars:ForAll(method, ...)
for _, bar in self:GetAll() do
local func = bar[method]
if func then
func(bar, ...)
end
end
end
function BT4ActionBars:ForAllButtons(...)
self:ForAll("ForAll", ...)
end
function BT4ActionBars:CreateBarOption(id, options)
if not self.options then return end
@@ -242,3 +225,20 @@ function BT4ActionBars:EnableBar(id)
bar:Unlock()
end
end
function BT4ActionBars:GetAll()
return pairs(self.actionbars)
end
function BT4ActionBars:ForAll(method, ...)
for _, bar in self:GetAll() do
local func = bar[method]
if func then
func(bar, ...)
end
end
end
function BT4ActionBars:ForAllButtons(...)
self:ForAll("ForAll", ...)
end