Commit b5d7d519 authored by Tukz's avatar Tukz
Browse files

UnitFrames background texture matching current texture used.

parent c10f138e
......@@ -25,7 +25,7 @@ function TukuiUnitFrames:Party()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -54,7 +54,7 @@ function TukuiUnitFrames:Party()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -29,7 +29,7 @@ function TukuiUnitFrames:Raid()
end
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -56,7 +56,7 @@ function TukuiUnitFrames:Raid()
Power:Point("TOPRIGHT", Health, "BOTTOMRIGHT", 0, -1)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -26,7 +26,7 @@ function TukuiUnitFrames:Nameplates()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -53,7 +53,7 @@ function TukuiUnitFrames:Nameplates()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -28,7 +28,7 @@ function TukuiUnitFrames:Pet()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -58,7 +58,7 @@ function TukuiUnitFrames:Pet()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -34,7 +34,7 @@ function TukuiUnitFrames:Player()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -63,7 +63,7 @@ function TukuiUnitFrames:Player()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -33,7 +33,7 @@ function TukuiUnitFrames:Target()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......@@ -62,7 +62,7 @@ function TukuiUnitFrames:Target()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetTexture(PowerTexture)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
......@@ -28,7 +28,7 @@ function TukuiUnitFrames:TargetOfTarget()
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetTexture(HealthTexture)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
......
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