end |
|
function AloftSpellNameText:UpdateText(message, aloftData) |
local displayName, _ = AloftCastBar:GetTargetSpellInfo() |
local name = nil |
local rank = nil |
if Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()) then |
name = "Spell Name (Rank)" |
else |
name, rank, _ = AloftCastBar:GetTargetSpellInfo() |
end |
|
if displayName then |
if name then |
local displayName = nil |
if rank and rank ~= "" then |
displayName = name .. " (" .. rank .. ")" |
else |
displayName = name |
end |
|
-- AloftSpellNameText:OnCastFrameShow(message, aloftData) |
spellNameTextRegion:SetText(displayName) |
spellNameTextRegion:Show() |
|
-- ChatFrame7:AddMessage("AloftSpellNameText:UpdateText(): " .. tostring(aloftData.name) .. "/" .. tostring(spellNameTextRegion:GetText())) |
-- if Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()) then ChatFrame7:AddMessage("AloftSpellNameText:UpdateText(): config " .. tostring(aloftData.name)) end |
|
return |
end |