- add keyring and onebag option to bagbar

- fix some random stuff in the options tables
This commit is contained in:
Hendrik Leppkes
2008-05-31 19:48:47 +00:00
parent ee13a40b9d
commit d9e1bb2bb6
4 changed files with 46 additions and 10 deletions
+7 -1
View File
@@ -57,10 +57,11 @@ function StanceBarMod:OnDisable()
self:ToggleOptions()
end
local button_count = 10
function StanceBarMod:SetupOptions()
if not self.options then
self.optionobject = Bartender4.ButtonBar.prototype:GetOptionObject()
self.optionobject.table.general.args.rows.max = button_count
local enabled = {
type = "toggle",
order = 1,
@@ -251,6 +252,11 @@ function StanceBar:UpdateStanceButtons()
buttons[i]:Hide()
end
button_count = num_stances
if StanceBarMod.optionobject then
StanceBarMod.optionobject.table.general.args.rows.max = num_stances
end
self.buttons = buttons
self:UpdateButtonLayout()