-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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 UI focus groups #10755
Comments
I'm not sure about the proposed implementation, but the feature is desired. |
@groud can you elaborate a bit more? |
More like, in control.cpp:
and:
And this will also need an id affected to input events, to check from which player they come from. |
I would like to use this feature for my selection system. There is a list of buttons in a scroll container that the user can click on to select. My problem is that when they want to use tab to go to the options like "Play", "Edit", etc. the button loses focus, which deselects the button. I can work around this, but this feature would make it a ton easier for me. |
Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine. The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker. If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance! |
@Faless did you posted this issue to proposals tracker? |
No |
Supporting split screen multiplayer is right now quite tricky when it comes to the UI.
As of the current way focus works, only one element can be focused at any given time (so player specific UI in split screen is nearly impossible).
My proposal it the following:
ui_*
) will handle[GROUP]ui_*
(eg.p1_ui_up
) instead, which means when assigning new focus groups you will have to add the appropriate UI actions to theInputMap
.I have implemented this method in
2.1
(see screenshot) but before doing more work to ready it for PR (onmaster
) I'd like to hear opinions on this proposal (especially @reduz @akien-mga and other devs).I thought about separating
focus_group
andui_action_group
but I'm not sure it makes sense. Additionally we might add a functionInputMap.add_group_ui_actions(String focus_group)
to add all the[GROUP]ui_*
actions in bulk.Thoughts? Suggestions?
The text was updated successfully, but these errors were encountered: