HaxeFlixel / HaxeFlixel/flixel
Adjust FlxMEM object order
Nobody has claimed this yet.
- Dominant language
- Haxe
- Stars
- 2.2k
- Forks
- 522
- Avg merge
- 34m
- Merged PRs (30d)
- 1
Description
I think there should be a way to adjust the mouse event order in FlxMEM at any time besides reorder().
Current issue in HaxeUI is that the event order depends on the order that core adds events, which can't be relied on it seems, as opposed to the draw order. I can't use reorder since there's no guarantee that the component is actually on the screen, and reorder would delete the register if it's not. Maybe a function that takes a group or sprite group and adjusts the order of its children's registers (basically reorder on a specific container)? Not really sure.
GitHub is helpfully reminding me that this is related to #1237, #1252, #2102, and #2104, aka the "how does FlxSpriteGroup work with mouse events?" issues.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading FlxMEM and its reorder() behavior, then review the related issues #1237, #1252, #2102, and #2104. Determine how mouse-event registration order relates to FlxSpriteGroup or sprite-group children. Done would mean a defined way to adjust that order without removing registrations when a component is not on screen.
Written by the indexing model from the issue text.
Assessment
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100