- add keyring and onebag option to bagbar
- fix some random stuff in the options tables
This commit is contained in:
+7
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user