|
----------------------------------------------------------------------------- |
|
-- separates the name (and realm?) components of the raw unit name from the combat log |
function Aloft:ParseUnitName(rawUnitName, wantRealm) |
if rawUnitName then |
local loc = rawUnitName:find("-") |
if loc and loc > 1 then |
return rawUnitName:sub(1, loc - 1), (wantRealm and rawUnitName:sub(loc + 1)) or nil |
end |
end |
return rawUnitName, nil |
end |
|
----------------------------------------------------------------------------- |
|
function Aloft:AcquireLayoutFrame(aloftData) |
local nameplateFrame = aloftData.nameplateFrame |
|