Commit c10f138e authored by Tukz's avatar Tukz
Browse files

Add request #328

parent bf6476cf
......@@ -2237,6 +2237,7 @@ local UnitFrames = function(self)
Window:CreateSwitch("UnitFrames", "AurasBelow", "Move auras below unitframes")
Window:CreateSection("Styling")
Window:CreateSlider("UnitFrames", "StatusBarBackgroundMultiplier", "Health and Power background opacity", 0, 100, 1)
Window:CreateSwitch("UnitFrames", "UnlinkCastBar", "Unlink cast bars from unitframes")
Window:CreateSwitch("UnitFrames", "CastBarIcon", "Display castbar spell icon")
Window:CreateSwitch("UnitFrames", "CastBarLatency", "Display castbar latency")
......
......@@ -197,6 +197,7 @@ C["UnitFrames"] = {
["ScrollingCombatText"] = false,
["ScrollingCombatTextFontSize"] = 32,
["ScrollingCombatTextFont"] = "Tukui Damage",
["StatusBarBackgroundMultiplier"] = 20,
["PowerTick"] = true,
["Portrait2D"] = true,
["OOCNameLevel"] = false,
......
......@@ -24,9 +24,10 @@ function TukuiUnitFrames:Party()
Health:Height(self:GetHeight() - 5)
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:SetAllPoints()
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
if C.Party.ShowHealthText then
Health.Value = Health:CreateFontString(nil, "OVERLAY")
......@@ -53,9 +54,9 @@ function TukuiUnitFrames:Party()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background:SetColorTexture(.4, .4, .4)
Power.Background.multiplier = 0.3
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
if C.Party.ShowManaText then
Power.Value = Power:CreateFontString(nil, "OVERLAY")
......
......@@ -28,9 +28,10 @@ function TukuiUnitFrames:Raid()
Health:SetOrientation("VERTICAL")
end
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:SetAllPoints()
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.Value = Health:CreateFontString(nil, "OVERLAY")
Health.Value:SetFontObject(HealthFont)
......@@ -55,9 +56,9 @@ function TukuiUnitFrames:Raid()
Power:Point("TOPRIGHT", Health, "BOTTOMRIGHT", 0, -1)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background:SetColorTexture(.4, .4, .4)
Power.Background.multiplier = 0.3
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Power:SetStatusBarTexture(PowerTexture)
......
......@@ -25,9 +25,10 @@ function TukuiUnitFrames:Nameplates()
Health:SetWidth(self:GetWidth())
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:SetAllPoints()
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.colorTapping = true
Health.colorReaction = true
......@@ -52,8 +53,9 @@ function TukuiUnitFrames:Nameplates()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetAllPoints()
Power.Background:SetColorTexture(.1, .1, .1)
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Power.IsHidden = false
Power.frequentUpdates = true
......
......@@ -27,10 +27,10 @@ function TukuiUnitFrames:Pet()
Health:SetPoint("TOPRIGHT")
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:Point("TOPLEFT", Health, -1, 1)
Health.Background:Point("BOTTOMRIGHT", Health, 1, -1)
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.Value = Panel:CreateFontString(nil, "OVERLAY")
Health.Value:SetFontObject(Font)
......@@ -58,10 +58,9 @@ function TukuiUnitFrames:Pet()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:Point("TOPLEFT", Power, -1, 1)
Power.Background:Point("BOTTOMRIGHT", Power, 1, -1)
Power.Background:SetColorTexture(.4, .4, .4)
Power.Background.multiplier = 0.3
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Power.Value = Panel:CreateFontString(nil, "OVERLAY")
Power.Value:SetFontObject(Font)
......
......@@ -32,10 +32,11 @@ function TukuiUnitFrames:Player()
Health:SetPoint("TOPLEFT")
Health:SetPoint("TOPRIGHT")
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetAllPoints()
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.Value = Health:CreateFontString(nil, "OVERLAY")
Health.Value:SetFontObject(Font)
......@@ -62,9 +63,9 @@ function TukuiUnitFrames:Player()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetAllPoints()
Power.Background:SetColorTexture(.4, .4, .4)
Power.Background.multiplier = 0.3
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Power.Value = Power:CreateFontString(nil, "OVERLAY")
Power.Value:SetFontObject(Font)
......
......@@ -32,9 +32,10 @@ function TukuiUnitFrames:Target()
Health:SetPoint("TOPRIGHT")
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:SetAllPoints()
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.Value = Health:CreateFontString(nil, "OVERLAY")
Health.Value:SetFontObject(Font)
......@@ -61,9 +62,9 @@ function TukuiUnitFrames:Target()
Power:SetStatusBarTexture(PowerTexture)
Power.Background = Power:CreateTexture(nil, "BORDER")
Power.Background:SetAllPoints()
Power.Background:SetColorTexture(.4, .4, .4)
Power.Background.multiplier = 0.3
Power.Background:SetTexture(C.Medias.Blank)
Power.Background:SetAllPoints(Power)
Power.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
if C.UnitFrames.ShowTargetManaText then
Power.Value = Power:CreateFontString(nil, "OVERLAY")
......
......@@ -27,10 +27,10 @@ function TukuiUnitFrames:TargetOfTarget()
Health:SetPoint("TOPRIGHT")
Health:SetStatusBarTexture(HealthTexture)
Health.Background = Health:CreateTexture(nil, "BORDER")
Health.Background:Point("TOPLEFT", Health, -1, 1)
Health.Background:Point("BOTTOMRIGHT", Health, 1, -1)
Health.Background:SetColorTexture(.1, .1, .1)
Health.Background = Health:CreateTexture(nil, "BACKGROUND")
Health.Background:SetTexture(C.Medias.Blank)
Health.Background:SetAllPoints(Health)
Health.Background.multiplier = C.UnitFrames.StatusBarBackgroundMultiplier / 100
Health.frequentUpdates = true
Health.colorDisconnected = true
......
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