centenond
centenond

Reputation: 1198

Libgdx change TextButton bg alpha

I have this textbuttons where the user can change the colors, now I want the user to be able to change the alpha too.

When I change the alpha of the font textbutton it only affect the font alpha which is great. button.getStyle ().fontColor = newColorWithLowAlpha

But when I change the alpha of the button it affects the font alpha too.button.setColor(newColorWithLowAlpha)

Is there a way to change the button alpha without changing the alpha of the text? Thanks

Upvotes: 1

Views: 406

Answers (0)

Related Questions