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

Fix for incorrect handling of CLICK_EVENT in FlxUIPopup #259

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

UncertainProd
Copy link

@UncertainProd UncertainProd commented Nov 28, 2023

It looks like FlxUIPopup was expecting one of the event paramters in getEvent to be either "affirm", "cancel" or "alt" but that never happens (even the default_popup.xml file never mentions "affirm", "cancel" or "alt" https://github.com/HaxeFlixel/flixel-ui/blob/dev/assets/xml/default_popup.xml ). This should remove references to that and only uses the buttonAmount parameter when handling click events for FlxUIPopup. This should also fix HaxeFlixel/flixel-demos#267

@Geokureli
Copy link
Member

Can you do me a favor and merge the dev branch back into your branch. I made changes to the github actions

@UncertainProd
Copy link
Author

Done

@Geokureli
Copy link
Member

Geokureli commented Dec 4, 2023

I'm trying out the demo locally, without this change, and I can't reproduce any specific error on html5 with any of the popups. What are the steps to reproduce?

@UncertainProd
Copy link
Author

In the RPG Interface demo, if you click Default asset test -> Popup then you will be stuck on the popup screen and will be unable to get back to the main menu (basically HaxeFlixel/flixel-demos#267 )

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

Successfully merging this pull request may close these issues.

RPGInterface demo: trapped in popup
2 participants