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

Add disabled status to FlxButton #3087

Merged
merged 4 commits into from
Mar 18, 2024
Merged

Conversation

itulau
Copy link
Contributor

@itulau itulau commented Mar 16, 2024

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.
demo

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.

@Geokureli
Copy link
Member

Can you check flixel-ui and see if things that extend FlxButton don't break with normal use?

@Geokureli Geokureli added this to the 5.7.0 milestone Mar 18, 2024
@Geokureli
Copy link
Member

Geokureli commented Mar 18, 2024

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

HaxeFlixel/flixel-ui#271

@Geokureli Geokureli merged commit 6cd83e7 into HaxeFlixel:dev Mar 18, 2024
1 of 16 checks passed
@itulau
Copy link
Contributor Author

itulau commented Mar 18, 2024

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

itulau/flixel-ui@601bf1f

@Geokureli
Copy link
Member

Geokureli commented Mar 18, 2024

HaxeFlixel/flixel-ui@e0ac95a

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

@itulau
Copy link
Contributor Author

itulau commented Mar 18, 2024

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?

@Geokureli
Copy link
Member

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

@Geokureli
Copy link
Member

Geokureli commented Mar 18, 2024

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

itulau/flixel-ui@601bf1f

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

@itulau
Copy link
Contributor Author

itulau commented Mar 18, 2024

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

itulau/flixel-ui@601bf1f

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.

charlesisfeline added a commit to VsFoxaDevs/flixel that referenced this pull request Apr 6, 2024
charlesisfeline added a commit to VsFoxaDevs/flixel that referenced this pull request Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add disabled status to FlxButton
2 participants