Commit 70d77e89 authored by Tukz's avatar Tukz

Add power prediction to player.

parent 1a8018b6
......@@ -76,6 +76,15 @@ function TukuiUnitFrames:Player()
if (C.UnitFrames.Smooth) then
Power.Smooth = true
end
Power.Prediction = CreateFrame("StatusBar", nil, Power)
Power.Prediction:SetReverseFill(true)
Power.Prediction:SetPoint("TOP")
Power.Prediction:SetPoint("BOTTOM")
Power.Prediction:SetPoint("RIGHT", Power:GetStatusBarTexture(), "RIGHT")
Power.Prediction:SetWidth(C.UnitFrames.Portrait and 214 or 250)
Power.Prediction:SetStatusBarTexture(PowerTexture)
Power.Prediction:SetStatusBarColor(1, 1, 1, .3)
Power.PostUpdate = TukuiUnitFrames.PostUpdatePower
......@@ -274,6 +283,8 @@ function TukuiUnitFrames:Player()
self.LeaderIndicator = Leader
self.MasterLooterIndicator = MasterLooter
self.RaidTargetIndicator = RaidIcon
self.PowerPrediction = {}
self.PowerPrediction.mainBar = Power.Prediction
-- Classes
TukuiUnitFrames.AddClassFeatures[Class](self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment