WoWInterface SVN Aloft

Compare Revisions

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

Rev 1822 → Rev 1902

AloftBossIcon.lua
46,6 → 46,7
self:RegisterMessage("Aloft:SetupFrame", "SetupFrame")
self:RegisterMessage("Aloft:OnNameplateShow", "OnNameplateShow")
self:RegisterMessage("Aloft:OnIsTargetDataChanged", "OnIsTargetDataChanged")
self:RegisterMessage("Aloft:OnConfigModeChanged", "OnConfigModeChanged")
self:UpdateAll()
end
 
76,6 → 77,13
self:PlaceFrame(bossIconRegion, layoutFrame, self.db.profile, 0, 0)
bossIconRegion:SetDrawLayer("OVERLAY")
bossIconRegion:SetBlendMode("BLEND")
 
if Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()) and not bossIconRegion:IsVisible() then
bossIconRegion:Show()
aloftData.configMode = true
elseif aloftData.configMode then
bossIconRegion:Hide()
end
end
end
 
90,4 → 98,11
self:ScheduleTimer(function(aloftData) AloftBossIcon:SetupFrame("AloftBossIcon:OnIsTargetDataChanged", aloftData) end, 0.0, aloftData) -- next frame
end
 
function AloftBossIcon:OnConfigModeChanged(message)
local aloftData = Aloft:GetTargetNameplate()
if aloftData then
self:SetupFrame("AloftBossIcon:OnIsTargetDataChanged", aloftData)
end
end
 
-----------------------------------------------------------------------------