57a5cdabdf
Imported from /srv/add01/wow-ascension/Interface/AddOns/Bartender4 — the build Ascension's WotLK 3.3.5 client ships. Single vendored drop: Ascension's build process bundles their custom patches with the standard CurseForge packager output (embedded libs), and the individual patches aren't published separately. Net delta vs Nevcairiel 4.4.2, excluding bundled libs and CRLF normalization: 21 files, 2213+/52- — the Ascension-specific adaptations for WotLK 3.3.5 hero classes / custom action systems. License: All rights reserved (per .toc).
50 lines
1.3 KiB
Lua
50 lines
1.3 KiB
Lua
--[[
|
|
Copyright (c) 2009, Hendrik "Nevcairiel" Leppkes < h.leppkes at gmail dot com >
|
|
All rights reserved.
|
|
]]
|
|
local L = LibStub("AceLocale-3.0"):GetLocale("Bartender4")
|
|
|
|
local VehicleBarMod = Bartender4:GetModule("Vehicle")
|
|
|
|
-- fetch upvalues
|
|
local ButtonBar = Bartender4.ButtonBar.prototype
|
|
|
|
function VehicleBarMod:SetupOptions()
|
|
if not self.options then
|
|
self.optionobject = ButtonBar:GetOptionObject()
|
|
self.optionobject.table.general.args.rows.max = self.button_count
|
|
local enabled = {
|
|
type = "toggle",
|
|
order = 1,
|
|
name = L["Enabled"],
|
|
desc = L["Enable the Vehicle Bar"],
|
|
get = function() return self.db.profile.enabled end,
|
|
set = "ToggleModule",
|
|
handler = self,
|
|
}
|
|
self.optionobject:AddElement("general", "enabled", enabled)
|
|
|
|
self.disabledoptions = {
|
|
general = {
|
|
type = "group",
|
|
name = L["General Settings"],
|
|
cmdInline = true,
|
|
order = 1,
|
|
args = {
|
|
enabled = enabled,
|
|
}
|
|
}
|
|
}
|
|
self.options = {
|
|
order = 30,
|
|
type = "group",
|
|
name = L["VehicleBar"],
|
|
desc = L["Configure the VehicleBar"],
|
|
childGroups = "tab",
|
|
}
|
|
self.optionobject.table.general.args.padding.min = -30
|
|
Bartender4:RegisterBarOptions("Vehicle", self.options)
|
|
end
|
|
self.options.args = self:IsEnabled() and self.optionobject.table or self.disabledoptions
|
|
end
|