Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add an option to change the color and remove the texture please? #3

Open
siferati opened this issue Sep 24, 2019 · 1 comment

Comments

@siferati
Copy link

I'd like to change the energy bar to something with a solid color like this.

@Flanger-dev
Copy link

I'd like to change the energy bar to something with a solid color like this.

Before this gets implemented, you can achieve desired result by editing ...\AddOns\SimpleEnergyBar\SimpleEnergyBar.lua file.

Find string:
statusbar:SetStatusBarTexture("Interface\\TARGETINGFRAME\\UI-StatusBar")
and change it to
statusbar:SetStatusBarTexture("Interface\\Tooltips\\UI-Tooltip-Background")

To alter the color, change values in the string:
statusbar:SetStatusBarColor

Seems like it uses default RGB coloring scheme, but the RGB scale is only from 0 to 1, so just use division by 255.

Example color
statusbar:SetStatusBarColor(140/255, 200/255, 37/255)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants