Commit 9c044937 authored by Blazeflack's avatar Blazeflack

Release v2.27

[CHG] Added missing "Inherit Global Fade" and "Backdrop Spacing" options.
parent d53f29fd
**2.27, March 18th 2016**
* [CHG] Added missing "Inherit Global Fade" and "Backdrop Spacing" options.
\\ \\
**2.26, July 14th 2015**
* Update ToC for patch 6.2.
......
## Interface: 60200
## Author: Blazeflack
## Version: 2.26
## Version: 2.27
## Title: |cff1784d1ElvUI|r ExtraActionBars
## Notes: Adds 4 extra actionbars to ElvUI.
## RequiredDeps: ElvUI
......
......@@ -14,6 +14,7 @@ P['actionbar']['bar7'] = {
['widthMult'] = 1,
['buttonsize'] = 30,
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
......@@ -30,6 +31,7 @@ P['actionbar']['bar8'] = {
['widthMult'] = 1,
['buttonsize'] = 30,
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
......@@ -46,6 +48,7 @@ P['actionbar']['bar9'] = {
['widthMult'] = 1,
['buttonsize'] = 30,
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
......@@ -62,6 +65,7 @@ P['actionbar']['bar10'] = {
['widthMult'] = 1,
['buttonsize'] = 30,
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
......@@ -76,14 +80,14 @@ function EAB:InsertOptions()
args = {},
}
end
local points = {
['TOPLEFT'] = 'TOPLEFT',
['TOPRIGHT'] = 'TOPRIGHT',
['BOTTOMLEFT'] = 'BOTTOMLEFT',
['BOTTOMRIGHT'] = 'BOTTOMRIGHT',
}
E.Options.args.blazeplugins.args.EAB = {
order = 40,
type = 'group',
......@@ -92,7 +96,7 @@ function EAB:InsertOptions()
childGroups = 'tab',
args = {},
}
local group = E.Options.args.blazeplugins.args.EAB.args
for i = 7, 10 do
local name = L['Bar ']..i
......@@ -120,72 +124,86 @@ function EAB:InsertOptions()
name = L['Restore Bar'],
desc = L['Restore the actionbars default settings'],
func = function() E:CopyTable(E.db.actionbar['bar'..i], P.actionbar['bar'..i]); E:ResetMovers('Bar '..i); AB:PositionAndSizeBar('bar'..i) end,
},
},
point = {
order = 4,
type = 'select',
name = L['Anchor Point'],
desc = L['The first button anchors itself to this point on the bar.'],
values = points,
},
},
backdrop = {
order = 5,
type = 'toggle',
name = L['Backdrop'],
desc = L['Toggles the display of the actionbars backdrop.'],
},
},
mouseover = {
order = 6,
name = L['Mouse Over'],
desc = L['The frame is not shown unless you mouse over the frame.'],
type = 'toggle',
},
buttons = {
inheritGlobalFade = {
order = 7,
type = 'toggle',
name = L["Inherit Global Fade"],
desc = L["Inherit the global fade, mousing over, targetting, setting focus, losing health, entering combat will set the remove transparency. Otherwise it will use the transparency level in the general actionbar settings for global fade alpha."],
},
buttons = {
order = 8,
type = 'range',
name = L['Buttons'],
desc = L['The amount of buttons to display.'],
min = 1, max = NUM_ACTIONBAR_BUTTONS, step = 1,
min = 1, max = NUM_ACTIONBAR_BUTTONS, step = 1,
},
buttonsPerRow = {
order = 8,
order = 9,
type = 'range',
name = L['Buttons Per Row'],
desc = L['The amount of buttons to display per row.'],
min = 1, max = NUM_ACTIONBAR_BUTTONS, step = 1,
min = 1, max = NUM_ACTIONBAR_BUTTONS, step = 1,
},
buttonsize = {
type = 'range',
name = L['Button Size'],
desc = L['The size of the action buttons.'],
min = 15, max = 60, step = 1,
order = 9,
order = 10,
disabled = function() return not E.private.actionbar.enable end,
},
buttonspacing = {
type = 'range',
name = L['Button Spacing'],
desc = L['The spacing between buttons.'],
min = 1, max = 10, step = 1,
order = 10,
min = 1, max = 10, step = 1,
order = 11,
disabled = function() return not E.private.actionbar.enable end,
},
},
backdropSpacing = {
type = 'range',
name = L["Backdrop Spacing"],
desc = L["The spacing between the backdrop and the buttons."],
min = 0, max = 10, step = 1,
order = 12,
disabled = function() return not E.private.actionbar.enable end,
},
heightMult = {
order = 11,
order = 13,
type = 'range',
name = L['Height Multiplier'],
desc = L['Multiply the backdrops height or width by this value. This is usefull if you wish to have more than one bar behind a backdrop.'],
min = 1, max = 5, step = 1,
min = 1, max = 5, step = 1,
},
widthMult = {
order = 12,
order = 14,
type = 'range',
name = L['Width Multiplier'],
desc = L['Multiply the backdrops height or width by this value. This is usefull if you wish to have more than one bar behind a backdrop.'],
min = 1, max = 5, step = 1,
min = 1, max = 5, step = 1,
},
alpha = {
order = 13,
order = 15,
type = 'range',
name = L['Alpha'],
isPercent = true,
......@@ -193,30 +211,30 @@ function EAB:InsertOptions()
},
paging = {
type = 'input',
order = 14,
order = 16,
name = L['Action Paging'],
desc = L["This works like a macro, you can run different situations to get the actionbar to page differently.\n Example: '[combat] 2;'"],
width = 'full',
multiline = true,
get = function(info) return E.db.actionbar['bar'..i]['paging'][E.myclass] end,
set = function(info, value)
set = function(info, value)
if not E.db.actionbar['bar'..i]['paging'][E.myclass] then
E.db.actionbar['bar'..i]['paging'][E.myclass] = {}
end
E.db.actionbar['bar'..i]['paging'][E.myclass] = value
AB:UpdateButtonSettings()
AB:UpdateButtonSettings()
end,
},
visibility = {
type = 'input',
order = 15,
order = 17,
name = L['Visibility State'],
desc = L["This works like a macro, you can run different situations to get the actionbar to show/hide differently.\n Example: '[combat] show;hide'"],
width = 'full',
multiline = true,
set = function(info, value)
E.db.actionbar['bar'..i]['visibility'] = value;
set = function(info, value)
E.db.actionbar['bar'..i]['visibility'] = value;
AB:UpdateButtonSettings()
end,
},
......
......@@ -52,11 +52,11 @@ function EAB:CreateBars()
for i = 7, 10 do
AB:CreateBar(i)
end
for b, _ in pairs(AB['handledbuttons']) do
AB:RegisterButton(b, true);
end
-- Force updates so ElvUI recognizes the extra bars.
AB:UpdateButtonSettings()
E:UpdateCooldownSettings()
......@@ -74,12 +74,12 @@ end
function EAB:PLAYER_ENTERING_WORLD()
self:UnregisterEvent('PLAYER_ENTERING_WORLD')
--Warn about incompatible addon
if IsAddOnLoaded('ElvUI_OneExtraActionBar') then
E:StaticPopup_Show('EAB_Incompatible')
end
if InCombatLockdown() then self:RegisterEvent('PLAYER_REGEN_ENABLED'); return; end
--Create Bars
EAB:CreateBars()
......@@ -88,9 +88,9 @@ end
function EAB:OnInitialize()
-- Register callback with LibElvUIPlugin
EP:RegisterPlugin(addon, EAB.InsertOptions)
--ElvUI ActionBars are not enabled, stop right here!
if E.private.actionbar.enable ~= true then return; end
self:RegisterEvent('PLAYER_ENTERING_WORLD')
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment