Skip to content

Commit

Permalink
Show Role Icons option
Browse files Browse the repository at this point in the history
  • Loading branch information
Luckyone961 committed Jan 6, 2025
1 parent 99b1bf4 commit f25b7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ElvUI_Options/Core/UnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ local function GetOptionsTable_RaidIcon(updateFunc, groupName, numUnits, subGrou
end

local function GetOptionsTable_RoleIcons(updateFunc, groupName, numGroup)
local config = ACH:Group(L["Role Icon"], nil, nil, nil, function(info) return E.db.unitframe.units[groupName].roleIcon[info[#info]] end, function(info, value) E.db.unitframe.units[groupName].roleIcon[info[#info]] = value updateFunc(UF, groupName, numGroup) end, nil, E.Classic)
local config = ACH:Group(L["Role Icon"], nil, nil, nil, function(info) return E.db.unitframe.units[groupName].roleIcon[info[#info]] end, function(info, value) E.db.unitframe.units[groupName].roleIcon[info[#info]] = value updateFunc(UF, groupName, numGroup) end, nil, not E.allowRoles)
config.args.enable = ACH:Toggle(L["Enable"], nil, 0)
config.args.options = ACH:MultiSelect(' ', nil, 1, { tank = L["Show For Tanks"], healer = L["Show For Healers"], damager = L["Show For DPS"], combatHide = L["Hide In Combat"] }, nil, nil, function(_, key) return E.db.unitframe.units[groupName].roleIcon[key] end, function(_, key, value) E.db.unitframe.units[groupName].roleIcon[key] = value updateFunc(UF, groupName, numGroup) end)
config.args.position = ACH:Select(L["Position"], nil, 2, C.Values.AllPoints)
Expand Down

0 comments on commit f25b7bf

Please sign in to comment.