Skip to content

Commit

Permalink
castbar: Don't force using frames for pips
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Apr 10, 2024
1 parent c872822 commit ed98efb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ local function UpdatePips(element, numStages)
pip:Show()

if(isHoriz) then
pip:RotateTextures(0)
if(pip.RotateTextures) then
pip:RotateTextures(0)
end

if(element:GetReverseFill()) then
pip:SetPoint('TOP', element, 'TOPRIGHT', -offset, 0)
Expand All @@ -172,7 +174,9 @@ local function UpdatePips(element, numStages)
pip:SetPoint('BOTTOM', element, 'BOTTOMLEFT', offset, 0)
end
else
pip:RotateTextures(1.5708)
if(pip.RotateTextures) then
pip:RotateTextures(1.5708)
end

if(element:GetReverseFill()) then
pip:SetPoint('LEFT', element, 'TOPLEFT', 0, -offset)
Expand Down

0 comments on commit ed98efb

Please sign in to comment.