@@ -618,7 +618,11 @@ function ClassicCastbars:SkinPlayerCastbar()
618
618
self :SetCastbarFonts (CastingBarFrame , db )
619
619
620
620
if not isRetail then
621
- hooksecurefunc (" CastingBarFrame_OnLoad" , ColorPlayerCastbar )
621
+ if not CastingBarFrame .CC_ColorIsHooked then
622
+ hooksecurefunc (" CastingBarFrame_OnLoad" , ColorPlayerCastbar )
623
+ CastingBarFrame .CC_ColorIsHooked = true
624
+ end
625
+
622
626
C_Timer .After (GetTickTime (), ColorPlayerCastbar )
623
627
else
624
628
if PlayerCastingBarFrame .isTesting then
@@ -632,22 +636,27 @@ end
632
636
if isRetail then
633
637
-- Modified code from Classic Frames, some parts might be redundant for us.
634
638
-- This is mostly just quick *hacks* to get the player castbar customizations working for retail after patch 10.0.0.
639
+ -- Once 'player-castbar-v2' branch is done this will all be removed.
635
640
hooksecurefunc (PlayerCastingBarFrame , ' UpdateShownState' , function (self )
636
641
local db = ClassicCastbars .db and ClassicCastbars .db .player
637
642
if not db or not db .enabled then return end
638
643
639
- if self .barType ~= " empowered" then
644
+ -- if self.barType ~= "empowered" then
640
645
self :SetStatusBarTexture (" Interface\\ TargetingFrame\\ UI-StatusBar" )
646
+ if self .barType == " empowered" then
647
+ self .Spark :SetAtlas (nil )
648
+ end
641
649
self .Spark :SetTexture (" Interface\\ CastingBar\\ UI-CastingBar-Spark" )
642
650
self .Spark :SetSize (32 , 32 )
643
651
self .Spark :ClearAllPoints ()
644
- self .Spark :SetPoint (" CENTER" , 0 , 2 )
652
+ self .Spark :SetPoint (" CENTER" , self , " LEFT" , 0 , 0 )
653
+ self .Spark .offsetY = 0
645
654
self .Spark :SetBlendMode (" ADD" )
646
- if self .channeling then
655
+ if self .channeling and self . barType ~= " empowered " then
647
656
self .Spark :Hide ()
648
657
end
649
658
ClassicCastbars :SkinPlayerCastbar ()
650
- end
659
+ -- end
651
660
end )
652
661
653
662
hooksecurefunc (PlayerCastingBarFrame , " FinishSpell" , function (self )
0 commit comments