Skip to content

Commit

Permalink
fixed progress icon's CD frame hiding the icon, if duration is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
d87 committed Sep 23, 2019
1 parent 77f3c7f commit bbd627b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions Aptechka.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ local next = next
Aptechka.helpers = helpers
local utf8sub = helpers.utf8sub
local reverse = helpers.Reverse
AptechkaDB = {}
local AptechkaDB = AptechkaDB
local AptechkaDB
local LibSpellLocks
local LibAuraTypes
local LibTargetedCasts
Expand Down
9 changes: 6 additions & 3 deletions frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ local CreateIcon = function(parent,w,h,alpha,point,frame,to,x,y)
icon:SetWidth(w); icon:SetHeight(h)
icon:SetPoint(point,frame,to,x,y)
local icontex = icon:CreateTexture(nil,"ARTWORK")
icontex:SetTexCoord(.1, .9, .1, .9)
icontex:SetTexCoord(0.05, 0.95, 0.05, 0.95)
icon:SetFrameLevel(6)
icontex:SetPoint("TOPLEFT",icon, "TOPLEFT",0,0)
icontex:SetPoint("BOTTOMRIGHT",icon, "BOTTOMRIGHT",0,0)
Expand Down Expand Up @@ -801,9 +801,12 @@ local CreateProgressIcon = function(parent, width, height, alpha, point, frame,
self:GetParent():Hide()
end)

local iconSubFrame = CreateFrame("Frame", nil, icon)
iconSubFrame:SetAllPoints(icon)
iconSubFrame:SetFrameLevel(8)
local icontex = icon.texture
icontex:SetParent(cdf)
icontex:SetDrawLayer("ARTWORK", 3)
icontex:SetParent(iconSubFrame)
icontex:SetDrawLayer("ARTWORK", 5)

icon.SetJob = SetJob_ProgressIcon

Expand Down

0 comments on commit bbd627b

Please sign in to comment.