@@ -7,20 +7,26 @@ SimplePointDisplay.Types = {
77 name = " General" ,
88 points = {
99 [1 ] = {name = " Combo Points" , id = " cp" , barcount = 5 },
10- },
10+ }
1111 },
1212 [" PALADIN" ] = {
1313 name = " Paladin" ,
1414 points = {
1515 [1 ] = {name = " Holy Power" , id = " hp" , barcount = 5 },
16- },
16+ }
1717 },
1818 [" WARLOCK" ] = {
1919 name = " Warlock" ,
2020 points = {
2121 [1 ] = {name = " Soul Shards" , id = " ss" , barcount = 5 },
22- },
22+ }
2323 },
24+ [" MAGE" ] = {
25+ name = " Mage" ,
26+ points = {
27+ [1 ] = {name = " Arcane Charges" , id = " ac" , barcount = 4 }
28+ }
29+ }
2430}
2531local Types = SimplePointDisplay .Types
2632
@@ -514,6 +520,12 @@ function SimplePointDisplay:GetPoints(CurClass, CurType)
514520 if CurType == " ss" then
515521 NewPoints = UnitPower (" player" , SPELL_POWER_SOUL_SHARDS )
516522 end
523+ -- Mage
524+ elseif CurClass == " MAGE" and PlayerSpec == SPEC_MAGE_ARCANE then
525+ -- Arcane Charges
526+ if CurType == " ac" then
527+ NewPoints = UnitPower (" player" , SPELL_POWER_ARCANE_CHARGES )
528+ end
517529 end
518530 Points [CurType ] = NewPoints
519531end
@@ -962,6 +974,14 @@ function SimplePointDisplay:HideUIElements()
962974 SSF :SetScript (" OnShow" , function (self ) self :Hide () end )
963975 end
964976 end
977+
978+ if db [" MAGE" ].types [" ac" ].enabled and db [" MAGE" ].types [" ac" ].general .hideui then
979+ local APF = _G [" ArcaneChargesFrame" ]
980+ if APF then
981+ APF :Hide ()
982+ APF :SetScript (" OnShow" , function (self ) self :Hide () end )
983+ end
984+ end
965985end
966986
967987function SimplePointDisplay :UpdateSpec ()
@@ -1016,6 +1036,9 @@ function SimplePointDisplay:PLAYER_LOGIN()
10161036 tinsert (EventList , " UNIT_POWER" )
10171037 tinsert (EventList , " UNIT_DISPLAYPOWER" )
10181038 end
1039+ if (PlayerClass == " MAGE" ) then
1040+ tinsert (EventList , " UNIT_POWER" )
1041+ end
10191042 local UpdateSpeed = (1 / db .updatespeed )
10201043 self :RegisterBucketEvent (EventList , UpdateSpeed , " UpdatePoints" )
10211044 -- Instant Events
0 commit comments