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 multiple Control-Node focusing. #1911

Closed
boruok opened this issue Nov 30, 2020 · 4 comments
Closed

Add multiple Control-Node focusing. #1911

boruok opened this issue Nov 30, 2020 · 4 comments

Comments

@boruok
Copy link

boruok commented Nov 30, 2020

Describe the project you are working on

Android platformer with touchscreen buttons.

Describe the problem or limitation you are having in your project

TextureButton doesn't support multiple touch. So you can't do multiple actions with it, example: run to side while jumping.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

I've worked on touchscreen buttons with Control node and found issues:

  1. Only one Control-Node can grab click focus.
  2. TouchScreenButton-Node is more placeholder for Control-Button with multitouch support because it inherits from Node2D (there is no anchors and margins adapting its position and size relative to its parent)

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

i recommend this issue 2017 -> godotengine/godot#10755

@Calinou
Copy link
Member

Calinou commented Nov 30, 2020

Only one Control-Node can grab click focus.

This is expected, as Controls are meant to be used for menu navigation only, not gameplay.

TouchScreenButton-Node is more placeholder for Control-Button with multitouch support because it inherits from Node2D (there is no anchors and margins adapting its position and size relative to its parent)

You can add TouchScreenButtons as children of Control nodes to benefit from tne anchor & margin workflow. See also godotengine/godot#15039.

@boruok
Copy link
Author

boruok commented Dec 1, 2020

oh, that make sense. I'm closing this proposal.

@boruok boruok closed this as completed Dec 1, 2020
@SleepingRobot
Copy link

I am working on a game with Local Co-op, multiple Control nodes being able to be focused at once would be very helpful for this use case. I.e., each connected player in the player selection screen being able to navigate their own character customization UI and ready up / leave buttons

@Calinou
Copy link
Member

Calinou commented Jan 15, 2023

There's already a propsoal tracking this: #4295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants