Skip to content

Commit

Permalink
Added possibility to choose between account name or character name in…
Browse files Browse the repository at this point in the history
… ultimates window
  • Loading branch information
memus committed Nov 19, 2017
1 parent 7c50396 commit 6c4ff82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions RaidNotifier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,9 @@ do ----------------------

function RaidNotifier.OnUltimateReceived(unitTag, ultimateCurrent, ultimateCost) --, ultimateGroupId, isSelf)
local self = RaidNotifier
local userName = GetUnitDisplayName(unitTag)
ultimates[userName] =
ultimates[unitTag] =
{
userName = userName,
unitTag = unitTag,
name = GetUnitName(unitTag),
roles = {GetGroupMemberRoles(unitTag)},
current = ultimateCurrent,
Expand Down
6 changes: 4 additions & 2 deletions UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@ do --------------------

local settings = self.Vars.ultimate

local GetName = settings.useDisplayName and GetUnitDisplayName or GetUnitName

if sortedUlti then
local text = "Ultimates:" --TODO: grab text from abilityId??
for i, data in ipairs(sortedUlti) do
local name = data.userName
local name = GetName(data.unitTag)
local c1,c2 = "",""
if settings.useColor then
if data.percent >= 100 then
Expand Down Expand Up @@ -576,4 +578,4 @@ do -----------------
end
end

end
end

0 comments on commit 6c4ff82

Please sign in to comment.