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 contexts for hotkey validation #19900

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

dragunoff
Copy link
Contributor

This implements the logic for hotkey contexts. It adds a Contexts field to hotkeys which is used for validation (i.e. hotkeys that share a context cannot overlap). The Types field is now used solely for grouping in the settings panel.

The code changes here are fairly simple, the bulk of the diff is yaml and I used the opportunity to review whether hotkeys are added to the relevant contexts. I pondered at adding a "Replay" context (because of the replay speed keys) but I decided to keep it simple and just use the "Spectator" context.

This is the first part of #19898. The other (and trickier part) is to implement a UI for the settings panel that displays the contexts to the user.

abcdefg30
abcdefg30 previously approved these changes Jan 25, 2022
@Mailaender
Copy link
Member

Needs a rebase.

@dragunoff
Copy link
Contributor Author

Rebased.

Copy link
Member

@Mailaender Mailaender left a comment

Choose a reason for hiding this comment

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

I think this already makes sense on its own. Buttons still work.

@Mailaender Mailaender merged commit 1813edc into OpenRA:bleed Feb 4, 2022
@Mailaender
Copy link
Member

Changelog

@dragunoff dragunoff deleted the feature/hotkey-contexts-logic branch February 4, 2022 17:56
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.

None yet

3 participants