WoWInterface SVN Aloft

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /branches/preview/Aloft/AloftIsTargetData
    from Rev 1822 to Rev 1885
    Reverse comparison

Rev 1822 → Rev 1885

AloftIsTargetData.lua
145,7 → 145,8
 
-- re-acquire target if its nameplate re-appears
function AloftIsTargetData:DoNameplateShow(aloftData)
if targetExists and aloftData.nameplateFrame:GetAlpha() == 1 then
local nameplateFrame = aloftData and aloftData.nameplateFrame
if nameplateFrame and aloftData:IsTarget() then -- need to actually go to the underlying alpha here, we are setting the isTarget flag
lastTarget = aloftData
lastTarget.isTarget = true
-- ChatFrame7:AddMessage("IsTargetData:DoNameplateShow(): firing Aloft:OnIsTargetDataChanged, gaining target " .. tostring(aloftData.name))
156,7 → 157,7
-----------------------------------------------------------------------------
 
function AloftIsTargetData:UpdateData(aloftData)
aloftData.isTarget = aloftData:IsTarget()
aloftData.isTarget = aloftData:IsTarget() -- need to actually go to the underlying alpha here, we need to check the isTarget flag
-- ChatFrame7:AddMessage("IsTargetData:UpdateData(): new target is " .. aloftData.name .. "/" .. tostring(aloftData.isTarget))
 
if aloftData.isTarget then
170,9 → 171,10
 
function AloftIsTargetData:Update()
if targetExists then
lastTarget = Aloft:GetTargetNameplate()
-- ChatFrame7:AddMessage("AloftIsTargetData:Update(): target exists " .. tostring(targetExists) .. "/" .. tostring(lastTarget and lastTarget.name))
lastTarget = Aloft:GetTargetNameplate() -- need to actually go to the underlying alpha here, we are setting the isTarget flag
if lastTarget then
-- ChatFrame7:AddMessage("AloftIsTargetData:Update(): last target " .. tostring(targetExists) .. "/" .. tostring(lastTarget and lastTarget.name))
lastTarget.isTarget = true
-- ChatFrame7:AddMessage("IsTargetData:Update(): firing Aloft:OnIsTargetDataChanged, gaining target " .. tostring(lastTarget.name))
self:SendMessage("Aloft:OnIsTargetDataChanged", lastTarget)