Commit b756f6fc authored by Blazeflack's avatar Blazeflack

Added the "Show Empty Buttons" option which I recently added to ElvUI

parent 9c044937
......@@ -16,6 +16,8 @@ P['actionbar']['bar7'] = {
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['inheritGlobalFade'] = false,
['showGrid'] = true,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
}
......@@ -33,6 +35,8 @@ P['actionbar']['bar8'] = {
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['inheritGlobalFade'] = false,
['showGrid'] = true,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
}
......@@ -50,6 +54,8 @@ P['actionbar']['bar9'] = {
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['inheritGlobalFade'] = false,
['showGrid'] = true,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
}
......@@ -67,6 +73,8 @@ P['actionbar']['bar10'] = {
['buttonspacing'] = 4,
["backdropSpacing"] = 4,
['alpha'] = 1,
['inheritGlobalFade'] = false,
['showGrid'] = true,
['paging'] = {},
['visibility'] = '[vehicleui] hide; [overridebar] hide; [petbattle] hide; show',
}
......@@ -138,27 +146,33 @@ function EAB:InsertOptions()
name = L['Backdrop'],
desc = L['Toggles the display of the actionbars backdrop.'],
},
mouseover = {
showGrid = {
type = 'toggle',
name = L["Show Empty Buttons"],
order = 6,
set = function(info, value) E.db.actionbar['bar'..i][ info[#info] ] = value; AB:UpdateButtonSettingsForBar('bar'..i) end,
},
mouseover = {
order = 7,
name = L['Mouse Over'],
desc = L['The frame is not shown unless you mouse over the frame.'],
type = 'toggle',
},
inheritGlobalFade = {
order = 7,
order = 8,
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,
order = 9,
type = 'range',
name = L['Buttons'],
desc = L['The amount of buttons to display.'],
min = 1, max = NUM_ACTIONBAR_BUTTONS, step = 1,
},
buttonsPerRow = {
order = 9,
order = 10,
type = 'range',
name = L['Buttons Per Row'],
desc = L['The amount of buttons to display per row.'],
......@@ -169,7 +183,7 @@ function EAB:InsertOptions()
name = L['Button Size'],
desc = L['The size of the action buttons.'],
min = 15, max = 60, step = 1,
order = 10,
order = 11,
disabled = function() return not E.private.actionbar.enable end,
},
buttonspacing = {
......@@ -177,7 +191,7 @@ function EAB:InsertOptions()
name = L['Button Spacing'],
desc = L['The spacing between buttons.'],
min = 1, max = 10, step = 1,
order = 11,
order = 12,
disabled = function() return not E.private.actionbar.enable end,
},
backdropSpacing = {
......@@ -185,25 +199,25 @@ function EAB:InsertOptions()
name = L["Backdrop Spacing"],
desc = L["The spacing between the backdrop and the buttons."],
min = 0, max = 10, step = 1,
order = 12,
order = 13,
disabled = function() return not E.private.actionbar.enable end,
},
heightMult = {
order = 13,
order = 14,
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,
},
widthMult = {
order = 14,
order = 15,
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,
},
alpha = {
order = 15,
order = 16,
type = 'range',
name = L['Alpha'],
isPercent = true,
......@@ -211,7 +225,7 @@ function EAB:InsertOptions()
},
paging = {
type = 'input',
order = 16,
order = 17,
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',
......@@ -228,7 +242,7 @@ function EAB:InsertOptions()
},
visibility = {
type = 'input',
order = 17,
order = 18,
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',
......
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