Commit 28e72f7e authored by Darth Predator's avatar Darth Predator

Toggle movers

parent f73301e2
......@@ -8,7 +8,7 @@ E.Options.args.unitframe.args.player.args.aurabar.args.detach = {
type = "toggle",
name = '|cff30ee30'..L['Detach From Frame']..'|r',
get = function(info) return E.db.abm.player end,
set = function(info, value) E.db.abm.player = value; UF:CreateAndUpdateUF('player') end,
set = function(info, value) E.db.abm.player = value; UF:CreateAndUpdateUF('player'); ABM:MoverToggle() end,
}
E.Options.args.unitframe.args.player.args.aurabar.args.width = {
......@@ -34,7 +34,7 @@ E.Options.args.unitframe.args.target.args.aurabar.args.detach = {
type = "toggle",
name = '|cff30ee30'..L['Detach From Frame']..'|r',
get = function(info) return E.db.abm.target end,
set = function(info, value) E.db.abm.target = value; UF:CreateAndUpdateUF('target') end,
set = function(info, value) E.db.abm.target = value; UF:CreateAndUpdateUF('target'); ABM:MoverToggle() end,
}
E.Options.args.unitframe.args.target.args.aurabar.args.width = {
......@@ -60,7 +60,7 @@ E.Options.args.unitframe.args.focus.args.aurabar.args.detach = {
type = "toggle",
name = '|cff30ee30'..L['Detach From Frame']..'|r',
get = function(info) return E.db.abm.focus end,
set = function(info, value) E.db.abm.focus = value; UF:CreateAndUpdateUF('focus') end,
set = function(info, value) E.db.abm.focus = value; UF:CreateAndUpdateUF('focus'); ABM:MoverToggle() end,
}
E.Options.args.unitframe.args.focus.args.aurabar.args.width = {
......
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