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

Button hover effect stops working #52

Open
Digital-Odyssey opened this issue Nov 23, 2017 · 2 comments
Open

Button hover effect stops working #52

Digital-Odyssey opened this issue Nov 23, 2017 · 2 comments
Assignees
Labels

Comments

@Digital-Odyssey
Copy link

Hi,

Anyone alive on these forums?

Just wanted to point out that the button hover effect stops working when you set interact to false and then set it back it to true. If you could fix this that would be great.

Also, a feature to set an active down state would be great. Im currently building an options menu for my game which has an Audio toggle button - i would like the audio button to remain in the down state when i turn the audio off and then revert back to the up state when i turn the audio back on.

Thanks.

@kittykatattack kittykatattack self-assigned this Dec 7, 2017
@kittykatattack
Copy link
Owner

kittykatattack commented Dec 7, 2017

Thanks for alerting me to this!
The first issue is definitely a bug, and the second is an excellent feature request.

Just for context: I actually only use HTML UI elements in my own games.
(I create a HTML layer above the Pixi canvas and display HTML buttons/sliders etc. on it.)
For a few reasons: UI programming is very complex and the HTML UI components are very easy to use and can be styled in any way. Also for accessibility - All the work I do is required to meet the WC3 accessibly standards up to level 2 (https://www.w3.org/WAI/intro/wcag), and using HTML UI elements is the only way to do that.

@Digital-Odyssey
Copy link
Author

If you could fix the bug that would be great - as for the active state option i mentioned i found a temporary workaround by simply swapping out the button with an active state button but this approach is a bit of a pain to be honest. If you could integrate this feature that would be great.

Thanks for getting back to me.

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

No branches or pull requests

2 participants