Skip to content

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Sep 18, 2025

Fixes #2258

Adds a scrollRect to the game to ensure that game filters are the expected size. Also adds public filteredContainer, inputContainer and cameraContainer fields to FlxGame while deprecating the old private _inputContainer field. This is both to show the debugger above the game filters and organize things better so that the dev can simply add filters to FlxG.game.cameraContainer directly.

I tested this with the ScaleModes demo and it seems to work for every mode.

TODO: figure out why resizing the window messes this up even though the rect values are as expected

@Geokureli
Copy link
Member Author

@ACrazyTown originally I wasn't going to add the new containers, but this didn't work without it, specifically with FixedScaleMode, which cut off the debugger, because it's positioned at a negative x/y.

@:allow(flixel.FlxG)
@:allow(flixel.system.frontEnds.CameraFrontEnd)
var _inputContainer:Sprite;
@:deprecated("_inputContainer is deprecated, use")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it say use inputContainer instead of just use?That way users would know the new variable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol yep

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.

Game filters: wrong size?
2 participants