some svn keywords
This commit is contained in:
+17
-17
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user