Skip to content

Commit

Permalink
forgot these spark setpoint calls for commit 5a62ba8
Browse files Browse the repository at this point in the history
  • Loading branch information
wardz committed Apr 5, 2024
1 parent 5a62ba8 commit 7ab20e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ClassicCastbars/ClassicCastbars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ ClassicCastbars:SetScript("OnUpdate", function(self, elapsed)
castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value)

local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth())
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0)
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0)

-- Check if cast is complete
if (castbar.isChanneled and castbar.value <= 0) or (not castbar.isChanneled and castbar.value >= castbar.maxValue) then
Expand Down
2 changes: 1 addition & 1 deletion ClassicCastbars_Options/TestMode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function TestMode:SetCastbarMovable(unitID, parent)
castbar.Timer:SetFormattedText("%.1f", castbar.isChanneled and castbar.value or not castbar.isChanneled and castbar.maxValue - castbar.value)

local sparkPosition = (castbar.value / castbar.maxValue) * (castbar.currWidth or castbar:GetWidth())
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, 0)
castbar.Spark:SetPoint("CENTER", castbar, "LEFT", sparkPosition, castbar.BorderShield:IsShown() and 3 or 0)

if IsModifierKeyDown() or (IsMetaKeyDown and IsMetaKeyDown()) then
castbar.isUninterruptible = true
Expand Down

0 comments on commit 7ab20e3

Please sign in to comment.