#Update broke my fury bar

13 messages · Page 1 of 1 (latest)

dark meteor
#

hey with the new update my afenar weakaura package fury bar is always colored in, even when i have no fury. does anyone know how to fix that? was fine before updating D:

#

its supposed to just be dark if theres 0 fury, but its fully colored as if i have all fury D:

twin tusk
#

there is code in Actions on Init that looks like this probably:

-- r, g, b, a --
local c1, c2 = CreateColor(1,1,0,1), CreateColor(0,1,1,1)
---------------------------------------

if not aura_env.region.bar.gradient then
    aura_env.region.bar.gradient = aura_env.region.bar:CreateTexture()
    aura_env.region.bar.mask = aura_env.region.bar:CreateMaskTexture()
end

local bar = aura_env.region.bar
local gradient = bar.gradient
local mask = bar.mask

gradient:SetTexture(bar:GetTexture())
gradient:SetAllPoints(bar.bg)
gradient:SetGradient("HORIZONTAL",c1,c2)

mask:SetTexture([[Interface\AddOns\WeakAuras\Media\Textures\Square_FullWhite]], "CLAMPTOBLACKADDITIVE", "CLAMPTOBLACKADDITIVE", "NEAREST")
mask:SetAllPoints(bar.fg)

bar.fg:SetAlpha(0)
gradient:AddMaskTexture(mask)```

remove it... you can now set a gradient with built in settings
dark meteor
#

it seems like the background is the same color as the actual resource power color? how could i change the color of just the background

twin tusk
#

in the display settings

dark meteor
#

yeah i tried making it black and its still the same gradient color

twin tusk
#

maybe afenar did update his pack already

#

but it should look different if you enable gradient here

dark meteor
#

still nothin D:

twin tusk
#

are you sure you deleted the gradient in on init? because that thing still got a gradient xD

dark meteor
twin tusk