recentlyDamagedIconRegion:SetTexture("Interface\\CharacterFrame\\UI-StateIcon") |
recentlyDamagedIconRegion:SetTexCoord(0.5, 1, 0, 0.5) |
|
-- this is done in aloftData:CreateTexture() |
-- recentlyDamagedIconRegion:SetDrawLayer("OVERLAY") |
-- recentlyDamagedIconRegion:SetBlendMode("BLEND") |
|
layoutFrame.recentlyDamagedIconRegion = recentlyDamagedIconRegion |
end |
|
-- ChatFrame7:AddMessage("AloftRecentlyDamagedIcon:SetupFrame(): " .. tostring(layoutFrame.aloftData and layoutFrame.aloftData.name) .. "/" .. tostring(self.db.profile.point) .. "/" .. tostring(self.db.profile.relativeToPoint) .. "/" .. tostring(self.db.profile.offsetX) .. "/" .. tostring(self.db.profile.offsetY) .. "/" .. tostring(self.db.profile.size)) |
self:PlaceFrame(recentlyDamagedIconRegion, layoutFrame, self.db.profile) |
|
if Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()) then |
recentlyDamagedIconRegion:Show() |
aloftData.configMode = true |
elseif aloftData.configMode then |
recentlyDamagedIconRegion:Hide() |
end |
|
return recentlyDamagedIconRegion |
end |
|
function AloftRecentlyDamagedIcon:Update(aloftData) |
local recentlyDamagedIconRegion = self:SetupFrame("AloftRecentlyDamagedIcon:Update", aloftData) |
|
if recentlyDamagedIconRegion and aloftData.recentlyDamaged then |
if recentlyDamagedIconRegion and (aloftData.recentlyDamaged or (Aloft:IsConfigModeEnabled() and (aloftData.isTarget or aloftData:IsTarget()))) then |
recentlyDamagedIconRegion:Show() |
else |
self:OnNameplateHide("AloftRecentlyDamagedIcon:Update", aloftData) |