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

A way to capture input when the Balloon parent node is a SubViewportContainer #560

Closed
sysl-dev opened this issue May 5, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@sysl-dev
Copy link

sysl-dev commented May 5, 2024

Is your feature request related to a problem? Please describe.
Yes, when you create a balloon that has a parent of a SubViewportContainer, then you use a SubViewport to ensure all the UI is scaled pixel perfect, menu input no longer works. Since you've wrapped it in a viewport, self.get_viewport().set_input_as_handled() fails and it only will accept mouse input.

Describe the solution you'd like
A guide on how to work around this, or an example that works around the issue.

Describe alternatives you've considered
I've made my buttons look flat to ensure they look pixel perfect and I'm considering modifying the response creation script to use a patchnine behind the items.

I could also give up on having dynamic layers and just use int scale. But this gives mess less control. I want to be able to have a pixel world and a higher res layer (just not the textbox/choices)

Additional context
image

@sysl-dev sysl-dev added the enhancement New feature or request label May 5, 2024
@nathanhoad
Copy link
Owner

Can you provide a small project with this kind of setup and I'll have a look.

@sysl-dev
Copy link
Author

sysl-dev commented May 7, 2024

Sure, please give me until this Sunday.

@sysl-dev
Copy link
Author

Did some more work because I did not want to bother you with looking into this if I could work around it.

I can work around it, so this can be closed.

Thank you for responding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants