Commit f59433c4 authored by Simpy's avatar Simpy 🐹
Browse files

unitframes: allow "Display Target" on any unitframe castbar (closes #400)

parent 204d0a1a
......@@ -1513,6 +1513,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 42,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -1830,6 +1831,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2056,6 +2058,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 26,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2246,6 +2249,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2366,6 +2370,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2534,6 +2539,7 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......
......@@ -825,6 +825,12 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
type = "toggle",
disabled = function() return not E.db.unitframe.units[groupName].infoPanel or not E.db.unitframe.units[groupName].infoPanel.enable end,
},
displayTarget = {
order = 12,
type = 'toggle',
name = L["Display Target"],
desc = L["Display the target of your current cast. Useful for mouseover casts."],
},
iconSettings = {
order = 13,
type = "group",
......@@ -897,12 +903,6 @@ local function GetOptionsTable_Castbar(hasTicks, updateFunc, groupName, numUnits
if hasTicks then
config.args.displayTarget = {
order = 11,
type = 'toggle',
name = L["Display Target"],
desc = L["Display the target of your current cast. Useful for mouseover casts."],
}
config.args.ticks = {
order = 12,
type = "group",
......
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