WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/preview/Aloft/AloftCastBar
    from Rev 1905 to Rev 1906
    Reverse comparison

Rev 1905 → Rev 1906

AloftSpellNameText.lua
125,13 → 125,28
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
158,6 → 173,8
spellNameTextRegion:ClearAllPoints()
spellNameTextRegion:SetPoint("TOPLEFT", castFrame, "TOPLEFT", self.db.profile.offsets.left, self.db.profile.offsets.vertical)
spellNameTextRegion:SetPoint("BOTTOMRIGHT", castFrame, "BOTTOMRIGHT", self.db.profile.offsets.right, self.db.profile.offsets.vertical)
 
-- if Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()) then ChatFrame7:AddMessage("AloftSpellNameText:OnCastFrameShow(): config " .. tostring(aloftData.name)) end
end
end