Commit 2ca103a0 authored by Simpy's avatar Simpy 🐹
Browse files

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

This reverts commit f59433c4.
~ this actually appears to only work for the Player which means it doesn't work with other units sadly. there's no proper way to get the casting target (not via CLEU or UNIT_SPELLCAST_SENT so therefore we aren't going to have it on other unitframes)
parent 2f9e78fe
......@@ -1543,7 +1543,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 42,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -1870,7 +1869,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2121,7 +2119,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 26,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2320,7 +2317,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2448,7 +2444,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......@@ -2624,7 +2619,6 @@ P['unitframe'] = {
['icon'] = true,
['format'] = 'REMAINING',
['spark'] = true,
['displayTarget'] = false,
['iconSize'] = 32,
['iconAttached'] = true,
['insideInfoPanel'] = true,
......
......@@ -826,12 +826,6 @@ 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",
......@@ -948,6 +942,12 @@ 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