@@ -570,7 +570,7 @@ function cPointDisplay:GetPoints(CurClass, CurType)
570
570
end
571
571
end
572
572
-- Paladin
573
- elseif CurClass == " PALADIN" and PlayerSpec == 3 then -- hp is only for retribution
573
+ elseif CurClass == " PALADIN" then
574
574
-- Holy Power
575
575
if CurType == " hp" then
576
576
NewPoints = UnitPower (" player" , Enum .PowerType .HolyPower )
@@ -935,12 +935,12 @@ local function CreateFrames()
935
935
936
936
-- BG Panel
937
937
local FrameName = " cPointDisplay_Frames_" .. tid
938
- Frames [ic ][tid ].bgpanel .frame = CreateFrame (" Frame" , FrameName , UIParent )
938
+ Frames [ic ][tid ].bgpanel .frame = CreateFrame (" Frame" , FrameName , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
939
939
940
940
Frames [ic ][tid ].bgpanel .bg = Frames [ic ][tid ].bgpanel .frame :CreateTexture (nil , " ARTWORK" )
941
941
Frames [ic ][tid ].bgpanel .bg :SetAllPoints (Frames [ic ][tid ].bgpanel .frame )
942
942
943
- Frames [ic ][tid ].bgpanel .border = CreateFrame (" Frame" , nil , UIParent )
943
+ Frames [ic ][tid ].bgpanel .border = CreateFrame (" Frame" , nil , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
944
944
Frames [ic ][tid ].bgpanel .border :SetParent (Frames [ic ][tid ].bgpanel .frame )
945
945
Frames [ic ][tid ].bgpanel .border :ClearAllPoints ()
946
946
Frames [ic ][tid ].bgpanel .border :SetPoint (" CENTER" , Frames [ic ][tid ].bgpanel .frame , " CENTER" , 0 , 0 )
@@ -949,18 +949,18 @@ local function CreateFrames()
949
949
950
950
-- Anchor Panel
951
951
local AnchorFrameName = " cPointDisplay_Frames_" .. tid .. " _avAanchor"
952
- Frames [ic ][tid ].anchor .frame = CreateFrame (" Frame" , AnchorFrameName , UIParent )
952
+ Frames [ic ][tid ].anchor .frame = CreateFrame (" Frame" , AnchorFrameName , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
953
953
954
954
-- Point bars
955
955
for i = 1 , Types [ic ].points [it ].barcount do
956
956
local BarFrameName = " cPointDisplay_Frames_" .. tid .. " _bar" .. tostring (i )
957
957
958
- Frames [ic ][tid ].bars [i ].frame = CreateFrame (" Frame" , BarFrameName , UIParent )
958
+ Frames [ic ][tid ].bars [i ].frame = CreateFrame (" Frame" , BarFrameName , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
959
959
960
960
Frames [ic ][tid ].bars [i ].bg = Frames [ic ][tid ].bars [i ].frame :CreateTexture (nil , " ARTWORK" )
961
961
Frames [ic ][tid ].bars [i ].bg :SetAllPoints (Frames [ic ][tid ].bars [i ].frame )
962
962
963
- Frames [ic ][tid ].bars [i ].border = CreateFrame (" Frame" , nil , UIParent )
963
+ Frames [ic ][tid ].bars [i ].border = CreateFrame (" Frame" , nil , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
964
964
Frames [ic ][tid ].bars [i ].border :SetParent (Frames [ic ][tid ].bars [i ].frame )
965
965
Frames [ic ][tid ].bars [i ].border :ClearAllPoints ()
966
966
Frames [ic ][tid ].bars [i ].border :SetPoint (" CENTER" , Frames [ic ][tid ].bars [i ].frame , " CENTER" , 0 , 0 )
@@ -971,7 +971,7 @@ local function CreateFrames()
971
971
local SubBarSubFrameName = " cPointDisplay_Frames_" .. tid .. " _bar" .. tostring (i ).. " _sub" .. tostring (j )
972
972
Frames [ic ][tid ].bars [i ].subbars [j ] = {frame = nil , bg = nil }
973
973
974
- Frames [ic ][tid ].bars [i ].subbars [j ].frame = CreateFrame (" Frame" , SubBarSubFrameName , UIParent )
974
+ Frames [ic ][tid ].bars [i ].subbars [j ].frame = CreateFrame (" Frame" , SubBarSubFrameName , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
975
975
976
976
Frames [ic ][tid ].bars [i ].subbars [j ].bg = Frames [ic ][tid ].bars [i ].subbars [j ].frame :CreateTexture (nil , " ARTWORK" )
977
977
Frames [ic ][tid ].bars [i ].subbars [j ].bg :SetAllPoints (Frames [ic ][tid ].bars [i ].subbars [j ].frame )
@@ -981,7 +981,7 @@ local function CreateFrames()
981
981
end
982
982
983
983
-- Spark
984
- Frames [ic ][tid ].bars [i ].spark .frame = CreateFrame (" Frame" , nil , UIParent )
984
+ Frames [ic ][tid ].bars [i ].spark .frame = CreateFrame (" Frame" , nil , UIParent , BackdropTemplateMixin and " BackdropTemplate " )
985
985
986
986
Frames [ic ][tid ].bars [i ].spark .bg = Frames [ic ][tid ].bars [i ].spark .frame :CreateTexture (nil , " ARTWORK" )
987
987
Frames [ic ][tid ].bars [i ].spark .bg :SetAllPoints (Frames [ic ][tid ].bars [i ].spark .frame )
0 commit comments