-
Notifications
You must be signed in to change notification settings - Fork 450
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
Add disabled status to FlxButton #3087
Conversation
Can you check flixel-ui and see if things that extend FlxButton don't break with normal use? |
I tested this with Flixel-ui on a couple demos, no issues, I added FlxButtonState, which will cause some deprecation warnings on flixel-ui and flixel-addons, I have changes prepared on those repos to fix this CI is gonna fail, until the change to flixel-ui is merged and vice versa, so don't worry about that |
uh oh, ok! I was checking flixel-ui myself and I've noticed a few things that needed to change to accomodate for this new status, but I didn't have the time to test them out |
these are still valid changes, you'll just have to wait for a couple PRs. Also, we'll need to make sure that 4 button graphics in flixel-ui work with older flixel versions, which should be pretty easy |
Ok, ping me when I can I open a PR to merge such changes. Or you prefer I open it right now and we handle it from there? |
Flixel-ui is ready, be sure to backmerge dev into your branch |
Also @itulau be sure to use feature branches rather than your itulau/dev branch, this makes things a little easier for me when I'm inspecting contributions |
Yes, don't worry. I pushed the changes to my dev branch by mistake in a rush, but I'll be sure to use a feature branch like this PR. |
This reverts commit 6cd83e7.
This reverts commit 8cceda1.
Implements a DISABLED status for FlxButton. When a FlxButton is in this state mouse and input overlap will be ignored.
Small demo on which I tested this feature
demo-disabled-flxbutton.zip
Tested on HTML5 and Linux, which are the only platforms I currently got working Flixel in general.
Closes #3083
Note: sprite "highlighted" status looks different for some reason in the preview, but compared side by side in Aseprite and they are the same.